diff --git a/.github/workflows/diff-spec.yml b/.github/workflows/diff-spec.yml index 15049fe..943d8e2 100644 --- a/.github/workflows/diff-spec.yml +++ b/.github/workflows/diff-spec.yml @@ -23,10 +23,10 @@ jobs: run: rm -rf generated && vendor/bin/jane-openapi generate --config-file=.jane-openapi.php - name: Rector - run: vendor/bin/rector + run: tools/bin/rector - name: Code style - run: ./vendor/bin/php-cs-fixer fix + run: ./tools/bin/php-cs-fixer fix - name: Create Pull Request uses: peter-evans/create-pull-request@v8 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 01a66a2..df28310 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -/vendor -composer.lock +vendor +/composer.lock .php-cs-fixer.cache phpunit.xml .phpunit.result.cache \ No newline at end of file diff --git a/.jane-openapi.php b/.jane-openapi.php index 1638b14..58e4d58 100644 --- a/.jane-openapi.php +++ b/.jane-openapi.php @@ -1,7 +1,7 @@ 'https://developers.yousign.com/openapi/6797ad02b552bd002410c61a', + 'openapi-file' => 'https://developers.youtrust.com/openapi/public-api-v3.json', 'namespace' => 'Qdequippe\Yousign\Api', 'directory' => __DIR__ . '/generated/', 'reference' => true, @@ -9,4 +9,5 @@ 'clean-generated' => true, 'use-fixer' => true, 'fixer-config-file' => __DIR__ . '/.php-cs-fixer.php', + 'allow-external-refs' => true, ]; diff --git a/Makefile b/Makefile deleted file mode 100644 index 3a15320..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -rector: ## Run rector (dry run) - ./vendor/bin/rector process --dry-run --verbose - -rectify: ## Run rector - ./vendor/bin/rector process - -cs: ## Fix code style (PHP CS Fixer) - ./vendor/bin/php-cs-fixer fix - -cs_check: ## Check code style - ./vendor/bin/php-cs-fixer check - -jane: ## Generate SDK - ./vendor/bin/jane-openapi generate --config-file=.jane-openapi.php - -.PHONY: help - -help: ## Display this help - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' - -.DEFAULT_GOAL := help \ No newline at end of file diff --git a/composer.json b/composer.json index d891dc1..4e49f62 100644 --- a/composer.json +++ b/composer.json @@ -15,13 +15,11 @@ } }, "require": { - "php": ">= 8.1", + "php": ">= 8.2", "jane-php/open-api-runtime": "^7.6" }, "require-dev": { - "jane-php/open-api-3": "^7.6", - "friendsofphp/php-cs-fixer": "^3.56", - "rector/rector": "^1.0 || ^2.0" + "jane-php/open-api-3": "^7.6" }, "config": { "allow-plugins": { @@ -32,5 +30,22 @@ "symfony": { "allow-contrib": "true" } + }, + "scripts": { + "generate": "jane open-api generate --config-file=jane-config.php", + "cs": "tools/bin/php-cs-fixer fix", + "rector": "tools/bin/rector", + "jane": "jane-openapi generate --config-file=.jane-openapi.php", + "build": [ + "@jane", + "@rector", + "@cs" + ] + }, + "scripts-descriptions": { + "cs": "Fix code style", + "rector": "Run Rector", + "jane": "Generate the SDK", + "build": "Generate the SDK, then run Rector and fix code style" } } diff --git a/generated/Client.php b/generated/Client.php index ee2ec98..8c3e31f 100644 --- a/generated/Client.php +++ b/generated/Client.php @@ -11,7 +11,11 @@ use Qdequippe\Yousign\Api\Endpoint\DeleteContactsContactId; use Qdequippe\Yousign\Api\Endpoint\DeleteCustomExperience; use Qdequippe\Yousign\Api\Endpoint\DeleteCustomExperienceLogo; +use Qdequippe\Yousign\Api\Endpoint\DeleteCustomPropertiesId; +use Qdequippe\Yousign\Api\Endpoint\DeleteElectronicSealDocumentsId; use Qdequippe\Yousign\Api\Endpoint\DeleteElectronicSealImage; +use Qdequippe\Yousign\Api\Endpoint\DeleteLabelsId; +use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsIdLabelsId; use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestId; use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdApproversApproverId; use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId; @@ -30,21 +34,32 @@ use Qdequippe\Yousign\Api\Endpoint\DownloadElectronicSealDocument; use Qdequippe\Yousign\Api\Endpoint\DownloadElectronicSealImage; use Qdequippe\Yousign\Api\Endpoint\GetArchivesArchivedFileIdDownload; -use Qdequippe\Yousign\Api\Endpoint\GetBankAccountVerificationsBankAccountVerificationId; use Qdequippe\Yousign\Api\Endpoint\GetConsumptionAddon; use Qdequippe\Yousign\Api\Endpoint\GetConsumptionDetail; use Qdequippe\Yousign\Api\Endpoint\GetConsumptions; use Qdequippe\Yousign\Api\Endpoint\GetConsumptionsExport; +use Qdequippe\Yousign\Api\Endpoint\GetConsumptionsRecordsElectronicSeals; +use Qdequippe\Yousign\Api\Endpoint\GetConsumptionsRecordsIdentifications; +use Qdequippe\Yousign\Api\Endpoint\GetConsumptionsRecordsInvitedSigners; use Qdequippe\Yousign\Api\Endpoint\GetContacts; use Qdequippe\Yousign\Api\Endpoint\GetContactsContactId; use Qdequippe\Yousign\Api\Endpoint\GetCustomExperiences; use Qdequippe\Yousign\Api\Endpoint\GetCustomExperiencesCustomExperienceId; +use Qdequippe\Yousign\Api\Endpoint\GetCustomProperties; +use Qdequippe\Yousign\Api\Endpoint\GetCustomPropertiesId; +use Qdequippe\Yousign\Api\Endpoint\GetDocumentAnalyses; +use Qdequippe\Yousign\Api\Endpoint\GetDocumentAnalysesId; use Qdequippe\Yousign\Api\Endpoint\GetElectronicSeal; use Qdequippe\Yousign\Api\Endpoint\GetElectronicSealAuditTrail; -use Qdequippe\Yousign\Api\Endpoint\GetIdDocumentVerification; -use Qdequippe\Yousign\Api\Endpoint\GetIdentityVerificationsIdentityVerificationId; use Qdequippe\Yousign\Api\Endpoint\GetInvitations; +use Qdequippe\Yousign\Api\Endpoint\GetLabels; +use Qdequippe\Yousign\Api\Endpoint\GetLabelsId; +use Qdequippe\Yousign\Api\Endpoint\GetMonitoringsNaturalPersons; use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequests; +use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsIdApprovers; +use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsIdEmbeddedPreparationLink; +use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsIdLabels; +use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownload; use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestId; use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdApproversApproverId; use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdAuditTrailsDownload; @@ -68,8 +83,29 @@ use Qdequippe\Yousign\Api\Endpoint\GetUsersInvitationInvitationId; use Qdequippe\Yousign\Api\Endpoint\GetUsersUserId; use Qdequippe\Yousign\Api\Endpoint\GetUsersUserIdInvitation; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsBankAccountLookups; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsBankAccountLookupsId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsBankAccounts; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsBankAccountsId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsCompanies; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsCompaniesId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsIdentityDocuments; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsIdentityDocumentsId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsIdentityVideos; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsIdentityVideosId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsProofsOfAddress; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsProofsOfAddressId; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsTypeIdAuditTrail; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsWatchlists; +use Qdequippe\Yousign\Api\Endpoint\GetVerificationsWatchlistsId; use Qdequippe\Yousign\Api\Endpoint\GetWebhooks; use Qdequippe\Yousign\Api\Endpoint\GetWebhooksWebhookId; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowSessions; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowSessionsId; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowSessionsIdApplicants; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowSessionsIdApplicantsId; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowSessionsIdLinks; +use Qdequippe\Yousign\Api\Endpoint\GetWorkflowTemplates; use Qdequippe\Yousign\Api\Endpoint\GetWorkspaces; use Qdequippe\Yousign\Api\Endpoint\GetWorkspacesDefault; use Qdequippe\Yousign\Api\Endpoint\GetWorkspacesWorkspaceId; @@ -77,6 +113,9 @@ use Qdequippe\Yousign\Api\Endpoint\PatchContactsContactId; use Qdequippe\Yousign\Api\Endpoint\PatchCustomExperienceLogo; use Qdequippe\Yousign\Api\Endpoint\PatchCustomExperiencesCustomExperienceId; +use Qdequippe\Yousign\Api\Endpoint\PatchCustomPropertiesId; +use Qdequippe\Yousign\Api\Endpoint\PatchLabelId; +use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsIdDocumentRequestsId; use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestId; use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdApproversApproverId; use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId; @@ -84,15 +123,24 @@ use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdSignersSignerId; use Qdequippe\Yousign\Api\Endpoint\PatchUsersUserId; use Qdequippe\Yousign\Api\Endpoint\PatchWebhooksWebhookId; +use Qdequippe\Yousign\Api\Endpoint\PatchWorkflowSessionsIdApplicantsId; use Qdequippe\Yousign\Api\Endpoint\PatchWorkspacesWorkspaceId; use Qdequippe\Yousign\Api\Endpoint\PostArchives; -use Qdequippe\Yousign\Api\Endpoint\PostBankAccountVerifications; use Qdequippe\Yousign\Api\Endpoint\PostContact; use Qdequippe\Yousign\Api\Endpoint\PostCustomExperience; +use Qdequippe\Yousign\Api\Endpoint\PostCustomProperties; +use Qdequippe\Yousign\Api\Endpoint\PostDocumentAnalyses; use Qdequippe\Yousign\Api\Endpoint\PostDocuments; +use Qdequippe\Yousign\Api\Endpoint\PostElectronicSealImagesPreview; use Qdequippe\Yousign\Api\Endpoint\PostElectronicSeals; -use Qdequippe\Yousign\Api\Endpoint\PostIdentityVerifications; +use Qdequippe\Yousign\Api\Endpoint\PostLabels; +use Qdequippe\Yousign\Api\Endpoint\PostMonitoringsNaturalPersons; +use Qdequippe\Yousign\Api\Endpoint\PostMonitoringsNaturalPersonsIdCancel; use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequests; +use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsIdPause; +use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsIdResume; +use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsIdSignersIdIdentityVerification; +use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsIdSignersIdUnblockIdentification; use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdActivate; use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdApprovers; use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder; @@ -110,47 +158,1353 @@ use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder; use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdSignersSignerIdSign; use Qdequippe\Yousign\Api\Endpoint\PostUsers; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsBankAccountLookups; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsBankAccounts; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsCompanies; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsIdentityDocuments; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsIdentityVideos; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsProofsOfAddress; +use Qdequippe\Yousign\Api\Endpoint\PostVerificationsWatchlists; use Qdequippe\Yousign\Api\Endpoint\PostWebhooksSubscriptions; +use Qdequippe\Yousign\Api\Endpoint\PostWorkflowSessions; +use Qdequippe\Yousign\Api\Endpoint\PostWorkflowSessionsIdApplicants; +use Qdequippe\Yousign\Api\Endpoint\PostWorkflowSessionsIdResolveAction; use Qdequippe\Yousign\Api\Endpoint\PostWorkspace; +use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsIdLabelsId; use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId; use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId; use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdMetadata; use Qdequippe\Yousign\Api\Endpoint\PutWorkspacesWorkspaceIdUsers; +use Qdequippe\Yousign\Api\Endpoint\SignatureRequestsIdDocumentsIdFieldsIdAnswer; use Qdequippe\Yousign\Api\Endpoint\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId; use Qdequippe\Yousign\Api\Endpoint\UploadElectronicSealDocument; -use Qdequippe\Yousign\Api\Model\CreateBankAccountVerification; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomPropertiesIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealDocumentsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteLabelsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsIdLabelsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailBadRequestException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailForbiddenException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailNotFoundException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentForbiddenException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentNotFoundException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageBadRequestException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageForbiddenException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageNotFoundException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsElectronicSealsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsIdentificationsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsRecordsInvitedSignersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetContactsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetContactsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetContactsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetContactsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetContactsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetContactsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetCustomPropertiesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetDocumentAnalysesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetLabelsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetLabelsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetLabelsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetLabelsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetLabelsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetLabelsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetMonitoringsNaturalPersonsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdApproversUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdLabelsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetUsersBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetUsersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetUsersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetUsersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountLookupsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsBankAccountsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsCompaniesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsIdentityVideosUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsProofsOfAddressUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsTypeIdAuditTrailUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetVerificationsWatchlistsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdApplicantsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdLinksUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowSessionsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkflowTemplatesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesBadRequestException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesForbiddenException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultBadRequestException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultForbiddenException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchCustomPropertiesIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchLabelIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchWorkflowSessionsIdApplicantsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostArchivesBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostArchivesForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostArchivesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostArchivesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostArchivesNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostArchivesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostArchivesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostArchivesUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostContactBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostContactForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostContactInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostContactMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostContactNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostContactTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostContactUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostCustomPropertiesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostDocumentAnalysesUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealImagesPreviewUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostLabelsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostLabelsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostLabelsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostLabelsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostLabelsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostLabelsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsIdCancelUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostMonitoringsNaturalPersonsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdPauseUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdResumeUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostUsersBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostUsersForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostUsersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostUsersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostUsersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountLookupsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsBankAccountsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsCompaniesUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityDocumentsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsIdentityVideosUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsProofsOfAddressUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostVerificationsWatchlistsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdApplicantsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsIdResolveActionUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostWorkflowSessionsUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceBadRequestException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceForbiddenException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceNotFoundException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsIdLabelsIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataBadRequestException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataForbiddenException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataNotFoundException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersBadRequestException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersForbiddenException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersNotFoundException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentBadRequestException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentForbiddenException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentNotFoundException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageBadRequestException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageForbiddenException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageTooManyRequestsException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageUnauthorizedException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageUnsupportedMediaTypeException; +use Qdequippe\Yousign\Api\Model\ActivateSignatureRequest; +use Qdequippe\Yousign\Api\Model\Approver; +use Qdequippe\Yousign\Api\Model\ArchivedFile; +use Qdequippe\Yousign\Api\Model\BankAccountFull; +use Qdequippe\Yousign\Api\Model\BankAccountLookupFull; +use Qdequippe\Yousign\Api\Model\CompanyFull; +use Qdequippe\Yousign\Api\Model\Consumption; +use Qdequippe\Yousign\Api\Model\Contact; +use Qdequippe\Yousign\Api\Model\CreateApprover; use Qdequippe\Yousign\Api\Model\CreateContact; use Qdequippe\Yousign\Api\Model\CreateCustomExperience; +use Qdequippe\Yousign\Api\Model\CreateCustomProperty; +use Qdequippe\Yousign\Api\Model\CreateDocumentFromJson; use Qdequippe\Yousign\Api\Model\CreateDocumentFromMultipart; +use Qdequippe\Yousign\Api\Model\CreateElectronicSealDocument; +use Qdequippe\Yousign\Api\Model\CreateElectronicSealImagePreviewPayload; use Qdequippe\Yousign\Api\Model\CreateElectronicSealPayload; -use Qdequippe\Yousign\Api\Model\CreateIdDocumentVerification; -use Qdequippe\Yousign\Api\Model\CreateSignatureRequest; +use Qdequippe\Yousign\Api\Model\CreateFollowersInner; +use Qdequippe\Yousign\Api\Model\CreateLabel; use Qdequippe\Yousign\Api\Model\CreateSignerConsentRequest; use Qdequippe\Yousign\Api\Model\CreateSignerDocumentRequest; use Qdequippe\Yousign\Api\Model\CreateUser; -use Qdequippe\Yousign\Api\Model\CreateVideoIdentityVerification; use Qdequippe\Yousign\Api\Model\CreateWebhookSubscription; +use Qdequippe\Yousign\Api\Model\CreateWorkflowSession; use Qdequippe\Yousign\Api\Model\CreateWorkspace; +use Qdequippe\Yousign\Api\Model\CustomExperience; +use Qdequippe\Yousign\Api\Model\CustomProperty; +use Qdequippe\Yousign\Api\Model\CustomPropertyList; use Qdequippe\Yousign\Api\Model\DeleteWorkspace; +use Qdequippe\Yousign\Api\Model\Document; +use Qdequippe\Yousign\Api\Model\ElectronicSeal; +use Qdequippe\Yousign\Api\Model\ElectronicSealAuditTrail; +use Qdequippe\Yousign\Api\Model\ElectronicSealDocument; +use Qdequippe\Yousign\Api\Model\ElectronicSealImage; +use Qdequippe\Yousign\Api\Model\EmbeddedPreparationLink; +use Qdequippe\Yousign\Api\Model\FieldAnswer; +use Qdequippe\Yousign\Api\Model\Follower; +use Qdequippe\Yousign\Api\Model\GetConsumptionAddon200Response; +use Qdequippe\Yousign\Api\Model\GetConsumptionDetail200Response; +use Qdequippe\Yousign\Api\Model\GetConsumptionsRecordsElectronicSeals200Response; +use Qdequippe\Yousign\Api\Model\GetConsumptionsRecordsIdentifications200Response; +use Qdequippe\Yousign\Api\Model\GetConsumptionsRecordsInvitedSigners200Response; +use Qdequippe\Yousign\Api\Model\GetContacts200Response; +use Qdequippe\Yousign\Api\Model\GetCustomExperiences200Response; +use Qdequippe\Yousign\Api\Model\GetDocumentAnalyses200Response; +use Qdequippe\Yousign\Api\Model\GetInvitations200Response; +use Qdequippe\Yousign\Api\Model\GetLabels200Response; +use Qdequippe\Yousign\Api\Model\GetMonitoringsNaturalPersons200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequests200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsIdLabels200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdFollowers200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response; +use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments200Response; +use Qdequippe\Yousign\Api\Model\GetTemplates200Response; +use Qdequippe\Yousign\Api\Model\GetUsers200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsBankAccountLookups200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsBankAccounts200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsCompanies200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsIdentityDocuments200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsIdentityVideos200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsProofsOfAddress200Response; +use Qdequippe\Yousign\Api\Model\GetVerificationsWatchlists200Response; +use Qdequippe\Yousign\Api\Model\GetWorkflowSessions200Response; +use Qdequippe\Yousign\Api\Model\GetWorkflowSessionsIdApplicants200Response; +use Qdequippe\Yousign\Api\Model\GetWorkflowTemplates200Response; +use Qdequippe\Yousign\Api\Model\GetWorkspaces200Response; +use Qdequippe\Yousign\Api\Model\IdentityDocumentFull; +use Qdequippe\Yousign\Api\Model\IdentityVideoFull; +use Qdequippe\Yousign\Api\Model\InitiateBankAccountFromApplicant; +use Qdequippe\Yousign\Api\Model\InitiateCompanyFromFile; +use Qdequippe\Yousign\Api\Model\InitiateDocumentAnalysisFromApplicant; +use Qdequippe\Yousign\Api\Model\InitiateIdentityDocumentFromApplicant; +use Qdequippe\Yousign\Api\Model\InitiateIdentityVideo; +use Qdequippe\Yousign\Api\Model\InitiateNaturalPersonMonitoring; +use Qdequippe\Yousign\Api\Model\InitiateProofOfAddress; +use Qdequippe\Yousign\Api\Model\InitiateProofOfAddressFromApplicant; +use Qdequippe\Yousign\Api\Model\InitiateWatchlist; +use Qdequippe\Yousign\Api\Model\Label; +use Qdequippe\Yousign\Api\Model\ListElectronicSealImages200Response; use Qdequippe\Yousign\Api\Model\MarkWorkspaceAsDefault; use Qdequippe\Yousign\Api\Model\Metadata; +use Qdequippe\Yousign\Api\Model\NaturalPersonMonitoringFull; use Qdequippe\Yousign\Api\Model\PatchCustomExperienceLogoRequest; -use Qdequippe\Yousign\Api\Model\PatchSignatureRequestsSignatureRequestIdApproversApproverIdRequest; +use Qdequippe\Yousign\Api\Model\PostSignatureRequestsIdPause201Response; +use Qdequippe\Yousign\Api\Model\PostSignatureRequestsIdResume201Response; +use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdCancel201Response; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdCancelRequest; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceRequest; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdReactivateRequest; +use Qdequippe\Yousign\Api\Model\ProofOfAddressVerificationFull; +use Qdequippe\Yousign\Api\Model\ResolveWorkflowSessionAction; +use Qdequippe\Yousign\Api\Model\SignatureRequest; +use Qdequippe\Yousign\Api\Model\SignatureRequestActivated; +use Qdequippe\Yousign\Api\Model\Signer; +use Qdequippe\Yousign\Api\Model\SignerAuditTrail; +use Qdequippe\Yousign\Api\Model\SignerConsentRequest; +use Qdequippe\Yousign\Api\Model\SignerDocumentRequest; +use Qdequippe\Yousign\Api\Model\SignerIdentityVerification; +use Qdequippe\Yousign\Api\Model\SignerSign; +use Qdequippe\Yousign\Api\Model\SignerSignWithUploadedSignatureImage; +use Qdequippe\Yousign\Api\Model\UpdateApprover; use Qdequippe\Yousign\Api\Model\UpdateContact; use Qdequippe\Yousign\Api\Model\UpdateCustomExperience; +use Qdequippe\Yousign\Api\Model\UpdateCustomProperty; use Qdequippe\Yousign\Api\Model\UpdateDocument; +use Qdequippe\Yousign\Api\Model\UpdateLabel; use Qdequippe\Yousign\Api\Model\UpdateSignatureRequest; use Qdequippe\Yousign\Api\Model\UpdateSigner; use Qdequippe\Yousign\Api\Model\UpdateSignerConsentRequest; +use Qdequippe\Yousign\Api\Model\UpdateSignerDocumentRequest; use Qdequippe\Yousign\Api\Model\UpdateUser; use Qdequippe\Yousign\Api\Model\UpdateWebhookSubscription; +use Qdequippe\Yousign\Api\Model\UpdateWorkflowSessionApplicant; use Qdequippe\Yousign\Api\Model\UpdateWorkspace; use Qdequippe\Yousign\Api\Model\UploadArchivedFile; use Qdequippe\Yousign\Api\Model\UploadElectronicSealImage; +use Qdequippe\Yousign\Api\Model\User; +use Qdequippe\Yousign\Api\Model\UserInvitation; +use Qdequippe\Yousign\Api\Model\WatchlistFull; +use Qdequippe\Yousign\Api\Model\WebhookSubscription; +use Qdequippe\Yousign\Api\Model\WorkflowSession; +use Qdequippe\Yousign\Api\Model\WorkflowSessionLinks; +use Qdequippe\Yousign\Api\Model\Workspace; use Qdequippe\Yousign\Api\Normalizer\JaneObjectNormalizer; +use Qdequippe\Yousign\Api\Runtime\Client\FormEncoder; use Symfony\Component\Serializer\Encoder\JsonDecode; use Symfony\Component\Serializer\Encoder\JsonEncode; use Symfony\Component\Serializer\Encoder\JsonEncoder; @@ -164,15 +1518,16 @@ class Client extends Runtime\Client\Client * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ArchivedFile|ResponseInterface|null + * @return ($fetch is 'object' ? ArchivedFile|null : ResponseInterface) * - * @throws Exception\PostArchivesBadRequestException - * @throws Exception\PostArchivesUnauthorizedException - * @throws Exception\PostArchivesForbiddenException - * @throws Exception\PostArchivesNotFoundException - * @throws Exception\PostArchivesUnsupportedMediaTypeException - * @throws Exception\PostArchivesTooManyRequestsException - * @throws Exception\PostArchivesInternalServerErrorException + * @throws PostArchivesBadRequestException + * @throws PostArchivesUnauthorizedException + * @throws PostArchivesForbiddenException + * @throws PostArchivesNotFoundException + * @throws PostArchivesMethodNotAllowedException + * @throws PostArchivesUnsupportedMediaTypeException + * @throws PostArchivesTooManyRequestsException + * @throws PostArchivesInternalServerErrorException */ public function postArchives(?UploadArchivedFile $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -183,17 +1538,18 @@ public function postArchives(?UploadArchivedFile $requestBody = null, string $fe * Download the archived file using the ArchivedFileId. * * @param string $archivedFileId ArchivedFileId - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/octet-stream|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetArchivesArchivedFileIdDownloadBadRequestException - * @throws Exception\GetArchivesArchivedFileIdDownloadUnauthorizedException - * @throws Exception\GetArchivesArchivedFileIdDownloadForbiddenException - * @throws Exception\GetArchivesArchivedFileIdDownloadNotFoundException - * @throws Exception\GetArchivesArchivedFileIdDownloadTooManyRequestsException - * @throws Exception\GetArchivesArchivedFileIdDownloadInternalServerErrorException + * @throws GetArchivesArchivedFileIdDownloadBadRequestException + * @throws GetArchivesArchivedFileIdDownloadUnauthorizedException + * @throws GetArchivesArchivedFileIdDownloadForbiddenException + * @throws GetArchivesArchivedFileIdDownloadNotFoundException + * @throws GetArchivesArchivedFileIdDownloadMethodNotAllowedException + * @throws GetArchivesArchivedFileIdDownloadTooManyRequestsException + * @throws GetArchivesArchivedFileIdDownloadInternalServerErrorException */ public function getArchivesArchivedFileIdDownload(string $archivedFileId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -201,167 +1557,210 @@ public function getArchivesArchivedFileIdDownload(string $archivedFileId, string } /** - * Creates a new Bank Account Verification resource. + * Get signatures Consumption by source. * + * @param array{ + * "from": string, //The "from" date must not be more than 1 year in the past + * "to": string, //The "to" date must be more recent than the "from" date + * "authentication_key"?: string, //The API authentication key to use to retrieve the data + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\BankAccountVerificationCreated|ResponseInterface|null + * @return ($fetch is 'object' ? Consumption|null : ResponseInterface) * - * @throws Exception\PostBankAccountVerificationsBadRequestException - * @throws Exception\PostBankAccountVerificationsUnauthorizedException - * @throws Exception\PostBankAccountVerificationsForbiddenException - * @throws Exception\PostBankAccountVerificationsUnsupportedMediaTypeException - * @throws Exception\PostBankAccountVerificationsTooManyRequestsException - * @throws Exception\PostBankAccountVerificationsInternalServerErrorException + * @throws GetConsumptionsBadRequestException + * @throws GetConsumptionsUnauthorizedException + * @throws GetConsumptionsForbiddenException + * @throws GetConsumptionsNotFoundException + * @throws GetConsumptionsMethodNotAllowedException + * @throws GetConsumptionsTooManyRequestsException + * @throws GetConsumptionsInternalServerErrorException */ - public function postBankAccountVerifications(?CreateBankAccountVerification $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getConsumptions(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new PostBankAccountVerifications($requestBody), $fetch); + return $this->executeEndpoint(new GetConsumptions($queryParameters), $fetch); } /** - * Get the detailed results of a bank account verification. + * Retrieves detailed addon consumption for the current subscription period. * - * @param string $bankAccountVerificationId The bank account verification ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array{ + * "addons"?: array, //A list of add-ons to filter the results on. + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\BankAccountVerification|ResponseInterface|null + * @return ($fetch is 'object' ? GetConsumptionAddon200Response|null : ResponseInterface) * - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdBadRequestException - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdForbiddenException - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdNotFoundException - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException - * @throws Exception\GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException + * @throws GetConsumptionAddonBadRequestException + * @throws GetConsumptionAddonUnauthorizedException + * @throws GetConsumptionAddonForbiddenException + * @throws GetConsumptionAddonNotFoundException + * @throws GetConsumptionAddonMethodNotAllowedException + * @throws GetConsumptionAddonTooManyRequestsException + * @throws GetConsumptionAddonInternalServerErrorException */ - public function getBankAccountVerificationsBankAccountVerificationId(string $bankAccountVerificationId, string $fetch = self::FETCH_OBJECT) + public function getConsumptionAddon(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetBankAccountVerificationsBankAccountVerificationId($bankAccountVerificationId), $fetch); + return $this->executeEndpoint(new GetConsumptionAddon($queryParameters), $fetch); } /** - * Get signatures Consumption by source. - * - * @param array $queryParameters { - * - * @var string $from The "from" date must not be more than 1 year in the past - * @var string $to The "to" date must be more recent than the "from" date - * @var string $authentication_key The API authentication key to use to retrieve the data - * } + * Returns the consumption of your organization over a specified period. * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "from": string, //The starting date for data retrieval. + * "to": string, //The end date for data retrieval. The `to` date must be later than the `from` date and within one year of the `from` date. + * "breakdown_type"?: string, //Specifies how data is grouped. By default, it returns the total consumption for the entire organization. If set to `workspace`, the data will be grouped by Workspace. + * "workspace_ids"?: array, //A list of Workspace IDs to filter the results. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Consumption|ResponseInterface|null + * @return ($fetch is 'object' ? GetConsumptionDetail200Response|null : ResponseInterface) * - * @throws Exception\GetConsumptionsBadRequestException - * @throws Exception\GetConsumptionsUnauthorizedException - * @throws Exception\GetConsumptionsForbiddenException - * @throws Exception\GetConsumptionsNotFoundException - * @throws Exception\GetConsumptionsTooManyRequestsException - * @throws Exception\GetConsumptionsInternalServerErrorException + * @throws GetConsumptionDetailBadRequestException + * @throws GetConsumptionDetailUnauthorizedException + * @throws GetConsumptionDetailForbiddenException + * @throws GetConsumptionDetailMethodNotAllowedException + * @throws GetConsumptionDetailTooManyRequestsException + * @throws GetConsumptionDetailInternalServerErrorException */ - public function getConsumptions(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getConsumptionDetail(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetConsumptions($queryParameters), $fetch); + return $this->executeEndpoint(new GetConsumptionDetail($queryParameters), $fetch); } /** - * Retrieves detailed addon consumption for the current subscription period. + * Get a binary .csv file containing all the Consumption data of the underlying signatures. * - * @param array $queryParameters { + * @param array{ + * "from": string, //The "from" date must not be more than 1 year in the past + * "to": string, //The "to" date must be more recent than the "from" date + * "authentication_key"?: string, //The API authentication key to use to retrieve the data + * } $queryParameters + * @param array $accept Accept content header text/csv|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @var array $addons A list of add-ons to filter the results on. - * } + * @return ($fetch is 'object' ? null : ResponseInterface) * + * @throws GetConsumptionsExportBadRequestException + * @throws GetConsumptionsExportUnauthorizedException + * @throws GetConsumptionsExportForbiddenException + * @throws GetConsumptionsExportNotFoundException + * @throws GetConsumptionsExportMethodNotAllowedException + * @throws GetConsumptionsExportTooManyRequestsException + * @throws GetConsumptionsExportInternalServerErrorException + */ + public function getConsumptionsExport(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new GetConsumptionsExport($queryParameters, $accept), $fetch); + } + + /** + * Returns the list of Electronic Seal consumption records. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "created_at"?: array, //Filter by `created_at`. Allowed operators: `between`, `before`, `after`. + * Format: `yyyy-mm-dd` + * Examples: + * - `created_at[between]=2025-03-02,2025-03-04` + * - `created_at[after]=2025-03-02` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetConsumptionAddon200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetConsumptionsRecordsElectronicSeals200Response|null : ResponseInterface) * - * @throws Exception\GetConsumptionAddonBadRequestException - * @throws Exception\GetConsumptionAddonUnauthorizedException - * @throws Exception\GetConsumptionAddonForbiddenException - * @throws Exception\GetConsumptionAddonNotFoundException - * @throws Exception\GetConsumptionAddonTooManyRequestsException - * @throws Exception\GetConsumptionAddonInternalServerErrorException + * @throws GetConsumptionsRecordsElectronicSealsBadRequestException + * @throws GetConsumptionsRecordsElectronicSealsUnauthorizedException + * @throws GetConsumptionsRecordsElectronicSealsForbiddenException + * @throws GetConsumptionsRecordsElectronicSealsNotFoundException + * @throws GetConsumptionsRecordsElectronicSealsMethodNotAllowedException + * @throws GetConsumptionsRecordsElectronicSealsTooManyRequestsException + * @throws GetConsumptionsRecordsElectronicSealsInternalServerErrorException */ - public function getConsumptionAddon(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getConsumptionsRecordsElectronicSeals(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetConsumptionAddon($queryParameters), $fetch); + return $this->executeEndpoint(new GetConsumptionsRecordsElectronicSeals($queryParameters), $fetch); } /** - * Returns the consumption of your organization over a specified period. - * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $from the starting date for data retrieval - * @var string $to The end date for data retrieval. The `to` date must be later than the `from` date and within one year of the `from` date. - * @var string $breakdown_type Specifies how data is grouped. By default, it returns the total consumption for the entire organization. If set to `workspace`, the data will be grouped by Workspace. - * @var array $workspace_ids A list of Workspace IDs to filter the results. - * } - * + * Returns the list of Identifications consumption records. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "created_at"?: array, //Filter by `created_at`. Allowed operators: `between`, `before`, `after`. + * Format: `yyyy-mm-dd` + * Examples: + * - `created_at[between]=2025-03-02,2025-03-04` + * - `created_at[after]=2025-03-02` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetConsumptionDetail200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetConsumptionsRecordsIdentifications200Response|null : ResponseInterface) * - * @throws Exception\GetConsumptionDetailBadRequestException - * @throws Exception\GetConsumptionDetailUnauthorizedException - * @throws Exception\GetConsumptionDetailForbiddenException - * @throws Exception\GetConsumptionDetailTooManyRequestsException - * @throws Exception\GetConsumptionDetailInternalServerErrorException + * @throws GetConsumptionsRecordsIdentificationsBadRequestException + * @throws GetConsumptionsRecordsIdentificationsUnauthorizedException + * @throws GetConsumptionsRecordsIdentificationsForbiddenException + * @throws GetConsumptionsRecordsIdentificationsNotFoundException + * @throws GetConsumptionsRecordsIdentificationsMethodNotAllowedException + * @throws GetConsumptionsRecordsIdentificationsTooManyRequestsException + * @throws GetConsumptionsRecordsIdentificationsInternalServerErrorException */ - public function getConsumptionDetail(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getConsumptionsRecordsIdentifications(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetConsumptionDetail($queryParameters), $fetch); + return $this->executeEndpoint(new GetConsumptionsRecordsIdentifications($queryParameters), $fetch); } /** - * Get a binary .csv file containing all the Consumption data of the underlying signatures. - * - * @param array $queryParameters { - * - * @var string $from The "from" date must not be more than 1 year in the past - * @var string $to The "to" date must be more recent than the "from" date - * @var string $authentication_key The API authentication key to use to retrieve the data - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header text/csv|application/json + * Returns the list of Invited signers consumption records. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "created_at"?: array, //Filter by `created_at`. Allowed operators: `between`, `before`, `after`. + * Format: `yyyy-mm-dd` + * Examples: + * - `created_at[between]=2025-03-02,2025-03-04` + * - `created_at[after]=2025-03-02` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? GetConsumptionsRecordsInvitedSigners200Response|null : ResponseInterface) * - * @throws Exception\GetConsumptionsExportBadRequestException - * @throws Exception\GetConsumptionsExportUnauthorizedException - * @throws Exception\GetConsumptionsExportForbiddenException - * @throws Exception\GetConsumptionsExportNotFoundException - * @throws Exception\GetConsumptionsExportTooManyRequestsException - * @throws Exception\GetConsumptionsExportInternalServerErrorException + * @throws GetConsumptionsRecordsInvitedSignersBadRequestException + * @throws GetConsumptionsRecordsInvitedSignersUnauthorizedException + * @throws GetConsumptionsRecordsInvitedSignersForbiddenException + * @throws GetConsumptionsRecordsInvitedSignersNotFoundException + * @throws GetConsumptionsRecordsInvitedSignersMethodNotAllowedException + * @throws GetConsumptionsRecordsInvitedSignersTooManyRequestsException + * @throws GetConsumptionsRecordsInvitedSignersInternalServerErrorException */ - public function getConsumptionsExport(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getConsumptionsRecordsInvitedSigners(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetConsumptionsExport($queryParameters, $accept), $fetch); + return $this->executeEndpoint(new GetConsumptionsRecordsInvitedSigners($queryParameters), $fetch); } /** * Returns the list of all the Contacts within your organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetContacts200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetContacts200Response|null : ResponseInterface) * - * @throws Exception\GetContactsBadRequestException - * @throws Exception\GetContactsUnauthorizedException - * @throws Exception\GetContactsForbiddenException - * @throws Exception\GetContactsTooManyRequestsException - * @throws Exception\GetContactsInternalServerErrorException + * @throws GetContactsBadRequestException + * @throws GetContactsUnauthorizedException + * @throws GetContactsForbiddenException + * @throws GetContactsMethodNotAllowedException + * @throws GetContactsTooManyRequestsException + * @throws GetContactsInternalServerErrorException */ public function getContacts(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -373,14 +1772,15 @@ public function getContacts(array $queryParameters = [], string $fetch = self::F * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Contact|ResponseInterface|null + * @return ($fetch is 'object' ? Contact|null : ResponseInterface) * - * @throws Exception\PostContactBadRequestException - * @throws Exception\PostContactUnauthorizedException - * @throws Exception\PostContactForbiddenException - * @throws Exception\PostContactNotFoundException - * @throws Exception\PostContactTooManyRequestsException - * @throws Exception\PostContactInternalServerErrorException + * @throws PostContactBadRequestException + * @throws PostContactUnauthorizedException + * @throws PostContactForbiddenException + * @throws PostContactNotFoundException + * @throws PostContactMethodNotAllowedException + * @throws PostContactTooManyRequestsException + * @throws PostContactInternalServerErrorException */ public function postContact(?CreateContact $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -393,13 +1793,14 @@ public function postContact(?CreateContact $requestBody = null, string $fetch = * @param string $contactId Contact Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteContactsContactIdUnauthorizedException - * @throws Exception\DeleteContactsContactIdForbiddenException - * @throws Exception\DeleteContactsContactIdNotFoundException - * @throws Exception\DeleteContactsContactIdTooManyRequestsException - * @throws Exception\DeleteContactsContactIdInternalServerErrorException + * @throws DeleteContactsContactIdUnauthorizedException + * @throws DeleteContactsContactIdForbiddenException + * @throws DeleteContactsContactIdNotFoundException + * @throws DeleteContactsContactIdMethodNotAllowedException + * @throws DeleteContactsContactIdTooManyRequestsException + * @throws DeleteContactsContactIdInternalServerErrorException */ public function deleteContactsContactId(string $contactId, string $fetch = self::FETCH_OBJECT) { @@ -412,12 +1813,14 @@ public function deleteContactsContactId(string $contactId, string $fetch = self: * @param string $contactId Contact Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Contact|ResponseInterface|null + * @return ($fetch is 'object' ? Contact|null : ResponseInterface) * - * @throws Exception\GetContactsContactIdUnauthorizedException - * @throws Exception\GetContactsContactIdNotFoundException - * @throws Exception\GetContactsContactIdTooManyRequestsException - * @throws Exception\GetContactsContactIdInternalServerErrorException + * @throws GetContactsContactIdUnauthorizedException + * @throws GetContactsContactIdForbiddenException + * @throws GetContactsContactIdNotFoundException + * @throws GetContactsContactIdMethodNotAllowedException + * @throws GetContactsContactIdTooManyRequestsException + * @throws GetContactsContactIdInternalServerErrorException */ public function getContactsContactId(string $contactId, string $fetch = self::FETCH_OBJECT) { @@ -431,15 +1834,16 @@ public function getContactsContactId(string $contactId, string $fetch = self::FE * @param string $contactId Contact Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Contact|ResponseInterface|null + * @return ($fetch is 'object' ? Contact|null : ResponseInterface) * - * @throws Exception\PatchContactsContactIdBadRequestException - * @throws Exception\PatchContactsContactIdUnauthorizedException - * @throws Exception\PatchContactsContactIdForbiddenException - * @throws Exception\PatchContactsContactIdNotFoundException - * @throws Exception\PatchContactsContactIdUnsupportedMediaTypeException - * @throws Exception\PatchContactsContactIdTooManyRequestsException - * @throws Exception\PatchContactsContactIdInternalServerErrorException + * @throws PatchContactsContactIdBadRequestException + * @throws PatchContactsContactIdUnauthorizedException + * @throws PatchContactsContactIdForbiddenException + * @throws PatchContactsContactIdNotFoundException + * @throws PatchContactsContactIdMethodNotAllowedException + * @throws PatchContactsContactIdUnsupportedMediaTypeException + * @throws PatchContactsContactIdTooManyRequestsException + * @throws PatchContactsContactIdInternalServerErrorException */ public function patchContactsContactId(string $contactId, ?UpdateContact $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -450,21 +1854,20 @@ public function patchContactsContactId(string $contactId, ?UpdateContact $reques * Returns the list of all Custom Experiences in your Organization. * You can limit the number of items returned by using pagination. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetCustomExperiences200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetCustomExperiences200Response|null : ResponseInterface) * - * @throws Exception\GetCustomExperiencesBadRequestException - * @throws Exception\GetCustomExperiencesUnauthorizedException - * @throws Exception\GetCustomExperiencesForbiddenException - * @throws Exception\GetCustomExperiencesTooManyRequestsException - * @throws Exception\GetCustomExperiencesInternalServerErrorException + * @throws GetCustomExperiencesBadRequestException + * @throws GetCustomExperiencesUnauthorizedException + * @throws GetCustomExperiencesForbiddenException + * @throws GetCustomExperiencesMethodNotAllowedException + * @throws GetCustomExperiencesTooManyRequestsException + * @throws GetCustomExperiencesInternalServerErrorException */ public function getCustomExperiences(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -476,14 +1879,16 @@ public function getCustomExperiences(array $queryParameters = [], string $fetch * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CustomExperience|ResponseInterface|null + * @return ($fetch is 'object' ? CustomExperience|null : ResponseInterface) * - * @throws Exception\PostCustomExperienceBadRequestException - * @throws Exception\PostCustomExperienceUnauthorizedException - * @throws Exception\PostCustomExperienceForbiddenException - * @throws Exception\PostCustomExperienceUnsupportedMediaTypeException - * @throws Exception\PostCustomExperienceTooManyRequestsException - * @throws Exception\PostCustomExperienceInternalServerErrorException + * @throws PostCustomExperienceBadRequestException + * @throws PostCustomExperienceUnauthorizedException + * @throws PostCustomExperienceForbiddenException + * @throws PostCustomExperienceNotFoundException + * @throws PostCustomExperienceMethodNotAllowedException + * @throws PostCustomExperienceUnsupportedMediaTypeException + * @throws PostCustomExperienceTooManyRequestsException + * @throws PostCustomExperienceInternalServerErrorException */ public function postCustomExperience(?CreateCustomExperience $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -496,14 +1901,15 @@ public function postCustomExperience(?CreateCustomExperience $requestBody = null * @param string $customExperienceId Custom Experience Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteCustomExperienceBadRequestException - * @throws Exception\DeleteCustomExperienceUnauthorizedException - * @throws Exception\DeleteCustomExperienceForbiddenException - * @throws Exception\DeleteCustomExperienceNotFoundException - * @throws Exception\DeleteCustomExperienceTooManyRequestsException - * @throws Exception\DeleteCustomExperienceInternalServerErrorException + * @throws DeleteCustomExperienceBadRequestException + * @throws DeleteCustomExperienceUnauthorizedException + * @throws DeleteCustomExperienceForbiddenException + * @throws DeleteCustomExperienceNotFoundException + * @throws DeleteCustomExperienceMethodNotAllowedException + * @throws DeleteCustomExperienceTooManyRequestsException + * @throws DeleteCustomExperienceInternalServerErrorException */ public function deleteCustomExperience(string $customExperienceId, string $fetch = self::FETCH_OBJECT) { @@ -516,14 +1922,15 @@ public function deleteCustomExperience(string $customExperienceId, string $fetch * @param string $customExperienceId Custom Experience Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CustomExperience|ResponseInterface|null + * @return ($fetch is 'object' ? CustomExperience|null : ResponseInterface) * - * @throws Exception\GetCustomExperiencesCustomExperienceIdBadRequestException - * @throws Exception\GetCustomExperiencesCustomExperienceIdUnauthorizedException - * @throws Exception\GetCustomExperiencesCustomExperienceIdForbiddenException - * @throws Exception\GetCustomExperiencesCustomExperienceIdNotFoundException - * @throws Exception\GetCustomExperiencesCustomExperienceIdTooManyRequestsException - * @throws Exception\GetCustomExperiencesCustomExperienceIdInternalServerErrorException + * @throws GetCustomExperiencesCustomExperienceIdBadRequestException + * @throws GetCustomExperiencesCustomExperienceIdUnauthorizedException + * @throws GetCustomExperiencesCustomExperienceIdForbiddenException + * @throws GetCustomExperiencesCustomExperienceIdNotFoundException + * @throws GetCustomExperiencesCustomExperienceIdMethodNotAllowedException + * @throws GetCustomExperiencesCustomExperienceIdTooManyRequestsException + * @throws GetCustomExperiencesCustomExperienceIdInternalServerErrorException */ public function getCustomExperiencesCustomExperienceId(string $customExperienceId, string $fetch = self::FETCH_OBJECT) { @@ -537,15 +1944,16 @@ public function getCustomExperiencesCustomExperienceId(string $customExperienceI * @param string $customExperienceId Custom Experience Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CustomExperience|ResponseInterface|null + * @return ($fetch is 'object' ? CustomExperience|null : ResponseInterface) * - * @throws Exception\PatchCustomExperiencesCustomExperienceIdBadRequestException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdUnauthorizedException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdForbiddenException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdNotFoundException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdUnsupportedMediaTypeException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdTooManyRequestsException - * @throws Exception\PatchCustomExperiencesCustomExperienceIdInternalServerErrorException + * @throws PatchCustomExperiencesCustomExperienceIdBadRequestException + * @throws PatchCustomExperiencesCustomExperienceIdUnauthorizedException + * @throws PatchCustomExperiencesCustomExperienceIdForbiddenException + * @throws PatchCustomExperiencesCustomExperienceIdNotFoundException + * @throws PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException + * @throws PatchCustomExperiencesCustomExperienceIdUnsupportedMediaTypeException + * @throws PatchCustomExperiencesCustomExperienceIdTooManyRequestsException + * @throws PatchCustomExperiencesCustomExperienceIdInternalServerErrorException */ public function patchCustomExperiencesCustomExperienceId(string $customExperienceId, ?UpdateCustomExperience $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -558,14 +1966,15 @@ public function patchCustomExperiencesCustomExperienceId(string $customExperienc * @param string $customExperienceId Custom Experience Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteCustomExperienceLogoBadRequestException - * @throws Exception\DeleteCustomExperienceLogoUnauthorizedException - * @throws Exception\DeleteCustomExperienceLogoForbiddenException - * @throws Exception\DeleteCustomExperienceLogoNotFoundException - * @throws Exception\DeleteCustomExperienceLogoTooManyRequestsException - * @throws Exception\DeleteCustomExperienceLogoInternalServerErrorException + * @throws DeleteCustomExperienceLogoBadRequestException + * @throws DeleteCustomExperienceLogoUnauthorizedException + * @throws DeleteCustomExperienceLogoForbiddenException + * @throws DeleteCustomExperienceLogoNotFoundException + * @throws DeleteCustomExperienceLogoMethodNotAllowedException + * @throws DeleteCustomExperienceLogoTooManyRequestsException + * @throws DeleteCustomExperienceLogoInternalServerErrorException */ public function deleteCustomExperienceLogo(string $customExperienceId, string $fetch = self::FETCH_OBJECT) { @@ -578,33 +1987,259 @@ public function deleteCustomExperienceLogo(string $customExperienceId, string $f * @param string $customExperienceId Custom Experience Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CustomExperience|ResponseInterface|null + * @return ($fetch is 'object' ? CustomExperience|null : ResponseInterface) * - * @throws Exception\PatchCustomExperienceLogoBadRequestException - * @throws Exception\PatchCustomExperienceLogoUnauthorizedException - * @throws Exception\PatchCustomExperienceLogoForbiddenException - * @throws Exception\PatchCustomExperienceLogoUnsupportedMediaTypeException - * @throws Exception\PatchCustomExperienceLogoTooManyRequestsException - * @throws Exception\PatchCustomExperienceLogoInternalServerErrorException + * @throws PatchCustomExperienceLogoBadRequestException + * @throws PatchCustomExperienceLogoUnauthorizedException + * @throws PatchCustomExperienceLogoForbiddenException + * @throws PatchCustomExperienceLogoMethodNotAllowedException + * @throws PatchCustomExperienceLogoUnsupportedMediaTypeException + * @throws PatchCustomExperienceLogoTooManyRequestsException + * @throws PatchCustomExperienceLogoInternalServerErrorException */ public function patchCustomExperienceLogo(string $customExperienceId, ?PatchCustomExperienceLogoRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PatchCustomExperienceLogo($customExperienceId, $requestBody), $fetch); } + /** + * Returns all custom properties for the organization. + * Results are paginated using cursor-based pagination. + * Supports filtering by workspace and type. + * + * @param array{ + * "workspace_id"?: string, //Filter properties applicable to a specific workspace. + * Returns org-wide properties plus properties scoped to the specified workspace. + * "type"?: string, //Filter by field type. + * "limit"?: int, //The limit of items count to retrieve. + * "after"?: string, //After cursor (pagination) + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? CustomPropertyList|null : ResponseInterface) + * + * @throws GetCustomPropertiesBadRequestException + * @throws GetCustomPropertiesUnauthorizedException + * @throws GetCustomPropertiesForbiddenException + * @throws GetCustomPropertiesMethodNotAllowedException + * @throws GetCustomPropertiesTooManyRequestsException + * @throws GetCustomPropertiesInternalServerErrorException + */ + public function getCustomProperties(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetCustomProperties($queryParameters), $fetch); + } + + /** + * Creates a new custom property for the organization. + * The property type (text or list) cannot be changed after creation. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? CustomProperty|null : ResponseInterface) + * + * @throws PostCustomPropertiesBadRequestException + * @throws PostCustomPropertiesUnauthorizedException + * @throws PostCustomPropertiesForbiddenException + * @throws PostCustomPropertiesNotFoundException + * @throws PostCustomPropertiesMethodNotAllowedException + * @throws PostCustomPropertiesTooManyRequestsException + * @throws PostCustomPropertiesInternalServerErrorException + */ + public function postCustomProperties(?CreateCustomProperty $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostCustomProperties($requestBody), $fetch); + } + + /** + * Deletes a given Custom Property. + * + * @param string $customPropertyId Custom Property Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws DeleteCustomPropertiesIdBadRequestException + * @throws DeleteCustomPropertiesIdUnauthorizedException + * @throws DeleteCustomPropertiesIdForbiddenException + * @throws DeleteCustomPropertiesIdNotFoundException + * @throws DeleteCustomPropertiesIdMethodNotAllowedException + * @throws DeleteCustomPropertiesIdTooManyRequestsException + * @throws DeleteCustomPropertiesIdInternalServerErrorException + */ + public function deleteCustomPropertiesId(string $customPropertyId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new DeleteCustomPropertiesId($customPropertyId), $fetch); + } + + /** + * Retrieves a specific custom property by its ID. + * Returns the complete property definition including all options for list types. + * + * @param string $customPropertyId Custom Property Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? CustomProperty|null : ResponseInterface) + * + * @throws GetCustomPropertiesIdBadRequestException + * @throws GetCustomPropertiesIdUnauthorizedException + * @throws GetCustomPropertiesIdForbiddenException + * @throws GetCustomPropertiesIdNotFoundException + * @throws GetCustomPropertiesIdMethodNotAllowedException + * @throws GetCustomPropertiesIdTooManyRequestsException + * @throws GetCustomPropertiesIdInternalServerErrorException + */ + public function getCustomPropertiesId(string $customPropertyId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetCustomPropertiesId($customPropertyId), $fetch); + } + + /** + * Updates a given custom property. Any parameters not provided are left unchanged. + * The property type cannot be changed after creation. + * For list properties, the options array must be sent in full to replace all options. + * + * @param string $customPropertyId Custom Property Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? CustomProperty|null : ResponseInterface) + * + * @throws PatchCustomPropertiesIdBadRequestException + * @throws PatchCustomPropertiesIdUnauthorizedException + * @throws PatchCustomPropertiesIdForbiddenException + * @throws PatchCustomPropertiesIdNotFoundException + * @throws PatchCustomPropertiesIdMethodNotAllowedException + * @throws PatchCustomPropertiesIdTooManyRequestsException + * @throws PatchCustomPropertiesIdInternalServerErrorException + */ + public function patchCustomPropertiesId(string $customPropertyId, ?UpdateCustomProperty $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PatchCustomPropertiesId($customPropertyId, $requestBody), $fetch); + } + + /** + * Returns the list of all Document Trust Analyses within your organization. + * You can limit the number of items returned by using filters and pagination. + * Consult our [guide](https://developers.youtrust.com/docs/document-analysis) for more details and examples. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Document Analysis or Document Trust Advanced` + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=done` + * "type"?: array, //Filter by `type`. Allowed operators: `eq`. + * Example: `type[eq]=social_security` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * "workflow_session_id"?: array, //Filter by `workflow_session_id`. Allowed operators: `eq`. + * Example: `workflow_session_id[eq]=18a5e211-ff33-48e2-810c-a0397b558611` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetDocumentAnalyses200Response|null : ResponseInterface) + * + * @throws GetDocumentAnalysesBadRequestException + * @throws GetDocumentAnalysesUnauthorizedException + * @throws GetDocumentAnalysesForbiddenException + * @throws GetDocumentAnalysesMethodNotAllowedException + * @throws GetDocumentAnalysesTooManyRequestsException + * @throws GetDocumentAnalysesInternalServerErrorException + */ + public function getDocumentAnalyses(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetDocumentAnalyses($queryParameters), $fetch); + } + + /** + * Initiate a new Document Trust Analysis to extract data from a given document type. + * + * Related guide: [Document Trust Analysis](https://developers.youtrust.com/docs/document-analysis) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file containing the document to analyse. + * - 📝 `application/json` — reference an existing Workflow Session Applicant by ID. + * + * **🔎 Analysis type (`analysis_type`)** + * - `extraction: true` (default): data is extracted from the document. A document `type` is **required**. Optionally set `fraud_level` (`standard` or `advanced`) to also run fraud detection (not supported for `tax_notice`). + * - `extraction: false` (fraud-only): no data extraction. Only available with `multipart/form-data` (direct file upload): `type` must be omitted and `fraud_level` must be `standard` or `advanced`. Not supported with the `application/json` (Applicant) variant, where a document `type` is always required. + * + * On `multipart/form-data`, `analysis_type` is sent as form fields (`analysis_type[extraction]`, `analysis_type[fraud_level]`) and `extraction` is a string (`"true"`/`"false"`). + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): + * - For extraction only `Document Analysis` + * - For Fraud Detection with `fraud_level` set to `standard` and Extraction `Document Trust Standard` + * - For Fraud Detection with `fraud_level` set to `advanced` and Extraction `Document Trust Advanced` + * + * @param InitiateDocumentAnalysisFromApplicant|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PostDocumentAnalysesBadRequestException + * @throws PostDocumentAnalysesUnauthorizedException + * @throws PostDocumentAnalysesForbiddenException + * @throws PostDocumentAnalysesNotFoundException + * @throws PostDocumentAnalysesMethodNotAllowedException + * @throws PostDocumentAnalysesUnsupportedMediaTypeException + * @throws PostDocumentAnalysesTooManyRequestsException + * @throws PostDocumentAnalysesInternalServerErrorException + */ + public function postDocumentAnalyses($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostDocumentAnalyses($requestBody), $fetch); + } + + /** + * Get the detailed results of a Document Trust Analysis. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Document Analysis or Document Trust Advanced` + * + * @param string $documentAnalysisId Document Trust Analysis Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws GetDocumentAnalysesIdBadRequestException + * @throws GetDocumentAnalysesIdUnauthorizedException + * @throws GetDocumentAnalysesIdForbiddenException + * @throws GetDocumentAnalysesIdNotFoundException + * @throws GetDocumentAnalysesIdMethodNotAllowedException + * @throws GetDocumentAnalysesIdTooManyRequestsException + * @throws GetDocumentAnalysesIdInternalServerErrorException + */ + public function getDocumentAnalysesId(string $documentAnalysisId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetDocumentAnalysesId($documentAnalysisId), $fetch); + } + /** * Deprecated endpoint, do not use. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Document|ResponseInterface|null + * @return ($fetch is 'object' ? Document|null : ResponseInterface) * - * @throws Exception\PostDocumentsBadRequestException - * @throws Exception\PostDocumentsUnauthorizedException - * @throws Exception\PostDocumentsForbiddenException - * @throws Exception\PostDocumentsUnsupportedMediaTypeException - * @throws Exception\PostDocumentsTooManyRequestsException - * @throws Exception\PostDocumentsInternalServerErrorException + * @throws PostDocumentsBadRequestException + * @throws PostDocumentsUnauthorizedException + * @throws PostDocumentsForbiddenException + * @throws PostDocumentsMethodNotAllowedException + * @throws PostDocumentsUnsupportedMediaTypeException + * @throws PostDocumentsTooManyRequestsException + * @throws PostDocumentsInternalServerErrorException */ public function postDocuments(?CreateDocumentFromMultipart $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -612,39 +2247,73 @@ public function postDocuments(?CreateDocumentFromMultipart $requestBody = null, } /** - * Create an Electronic Seal Document from an other one. + * Create an Electronic Seal Document. + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file. + * - 📝 `application/json` — create from a JSON payload referencing a previously sealed source document. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Electronic Seal` or `Advanced Electronic Seal` or `Qualified Electronic Seal` + * + * @param CreateElectronicSealDocument|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? ElectronicSealDocument|null : ResponseInterface) + * + * @throws UploadElectronicSealDocumentBadRequestException + * @throws UploadElectronicSealDocumentUnauthorizedException + * @throws UploadElectronicSealDocumentForbiddenException + * @throws UploadElectronicSealDocumentNotFoundException + * @throws UploadElectronicSealDocumentMethodNotAllowedException + * @throws UploadElectronicSealDocumentUnsupportedMediaTypeException + * @throws UploadElectronicSealDocumentTooManyRequestsException + * @throws UploadElectronicSealDocumentInternalServerErrorException + */ + public function uploadElectronicSealDocument($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new UploadElectronicSealDocument($requestBody), $fetch); + } + + /** + * Permanently deletes an Electronic Seal Document attached to an Electronic Seal. This action is only possible when the eSeal is in done or error status. Not applicable to documents sealed with a Qualified eSeal. Warning: this operation is irreversible: once deleted, the document cannot be retrieved. The customer assumes full responsibility for this action. * - * @param Model\CreateElectronicSealDocument|Model\CreateElectronicSealDocumentFromJson|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $electronicSealDocumentId Electronic Seal Document Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ElectronicSealDocument|ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\UploadElectronicSealDocumentBadRequestException - * @throws Exception\UploadElectronicSealDocumentUnauthorizedException - * @throws Exception\UploadElectronicSealDocumentForbiddenException - * @throws Exception\UploadElectronicSealDocumentNotFoundException - * @throws Exception\UploadElectronicSealDocumentUnsupportedMediaTypeException - * @throws Exception\UploadElectronicSealDocumentTooManyRequestsException - * @throws Exception\UploadElectronicSealDocumentInternalServerErrorException + * @throws DeleteElectronicSealDocumentsIdBadRequestException + * @throws DeleteElectronicSealDocumentsIdUnauthorizedException + * @throws DeleteElectronicSealDocumentsIdForbiddenException + * @throws DeleteElectronicSealDocumentsIdNotFoundException + * @throws DeleteElectronicSealDocumentsIdMethodNotAllowedException + * @throws DeleteElectronicSealDocumentsIdTooManyRequestsException + * @throws DeleteElectronicSealDocumentsIdInternalServerErrorException */ - public function uploadElectronicSealDocument($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function deleteElectronicSealDocumentsId(string $electronicSealDocumentId, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new UploadElectronicSealDocument($requestBody), $fetch); + return $this->executeEndpoint(new DeleteElectronicSealDocumentsId($electronicSealDocumentId), $fetch); } /** * Download a given Electronic Seal Document. * - * @param string $electronicSealDocumentId Electronic Seal Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $electronicSealDocumentId Electronic Seal Document Id * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DownloadElectronicSealDocumentUnauthorizedException - * @throws Exception\DownloadElectronicSealDocumentNotFoundException - * @throws Exception\DownloadElectronicSealDocumentTooManyRequestsException - * @throws Exception\DownloadElectronicSealDocumentInternalServerErrorException + * @throws DownloadElectronicSealDocumentUnauthorizedException + * @throws DownloadElectronicSealDocumentForbiddenException + * @throws DownloadElectronicSealDocumentNotFoundException + * @throws DownloadElectronicSealDocumentMethodNotAllowedException + * @throws DownloadElectronicSealDocumentTooManyRequestsException + * @throws DownloadElectronicSealDocumentInternalServerErrorException */ public function downloadElectronicSealDocument(string $electronicSealDocumentId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -655,21 +2324,20 @@ public function downloadElectronicSealDocument(string $electronicSealDocumentId, * Lists Electronic Seal Images. * The list is paginated and can be filtered by the `after` cursor. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ListElectronicSealImages200Response|ResponseInterface|null + * @return ($fetch is 'object' ? ListElectronicSealImages200Response|null : ResponseInterface) * - * @throws Exception\ListElectronicSealImagesBadRequestException - * @throws Exception\ListElectronicSealImagesUnauthorizedException - * @throws Exception\ListElectronicSealImagesForbiddenException - * @throws Exception\ListElectronicSealImagesTooManyRequestsException - * @throws Exception\ListElectronicSealImagesInternalServerErrorException + * @throws ListElectronicSealImagesBadRequestException + * @throws ListElectronicSealImagesUnauthorizedException + * @throws ListElectronicSealImagesForbiddenException + * @throws ListElectronicSealImagesMethodNotAllowedException + * @throws ListElectronicSealImagesTooManyRequestsException + * @throws ListElectronicSealImagesInternalServerErrorException */ public function listElectronicSealImages(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -681,33 +2349,60 @@ public function listElectronicSealImages(array $queryParameters = [], string $fe * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ElectronicSealImage|ResponseInterface|null + * @return ($fetch is 'object' ? ElectronicSealImage|null : ResponseInterface) * - * @throws Exception\UploadElectronicSealImageBadRequestException - * @throws Exception\UploadElectronicSealImageUnauthorizedException - * @throws Exception\UploadElectronicSealImageForbiddenException - * @throws Exception\UploadElectronicSealImageUnsupportedMediaTypeException - * @throws Exception\UploadElectronicSealImageTooManyRequestsException - * @throws Exception\UploadElectronicSealImageInternalServerErrorException + * @throws UploadElectronicSealImageBadRequestException + * @throws UploadElectronicSealImageUnauthorizedException + * @throws UploadElectronicSealImageForbiddenException + * @throws UploadElectronicSealImageMethodNotAllowedException + * @throws UploadElectronicSealImageUnsupportedMediaTypeException + * @throws UploadElectronicSealImageTooManyRequestsException + * @throws UploadElectronicSealImageInternalServerErrorException */ public function uploadElectronicSealImage(?UploadElectronicSealImage $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new Endpoint\UploadElectronicSealImage($requestBody), $fetch); } + /** + * Generate a PNG preview of an Electronic Seal Image based on the given field dimensions, + * an optional uploaded image, and an optional caption. + * This allows integrators to visualize the seal rendering before creating an Electronic Seal. + * + * **This endpoint is only available in Sandbox environment.** + * + * @param array $accept Accept content header image/png|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PostElectronicSealImagesPreviewBadRequestException + * @throws PostElectronicSealImagesPreviewUnauthorizedException + * @throws PostElectronicSealImagesPreviewForbiddenException + * @throws PostElectronicSealImagesPreviewNotFoundException + * @throws PostElectronicSealImagesPreviewMethodNotAllowedException + * @throws PostElectronicSealImagesPreviewTooManyRequestsException + * @throws PostElectronicSealImagesPreviewInternalServerErrorException + */ + public function postElectronicSealImagesPreview(?CreateElectronicSealImagePreviewPayload $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new PostElectronicSealImagesPreview($requestBody, $accept), $fetch); + } + /** * Deletes a given Electronic Seal Image. * * @param string $electronicSealImageId Electronic Seal Image Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteElectronicSealImageUnauthorizedException - * @throws Exception\DeleteElectronicSealImageForbiddenException - * @throws Exception\DeleteElectronicSealImageNotFoundException - * @throws Exception\DeleteElectronicSealImageTooManyRequestsException - * @throws Exception\DeleteElectronicSealImageInternalServerErrorException + * @throws DeleteElectronicSealImageUnauthorizedException + * @throws DeleteElectronicSealImageForbiddenException + * @throws DeleteElectronicSealImageNotFoundException + * @throws DeleteElectronicSealImageMethodNotAllowedException + * @throws DeleteElectronicSealImageTooManyRequestsException + * @throws DeleteElectronicSealImageInternalServerErrorException */ public function deleteElectronicSealImage(string $electronicSealImageId, string $fetch = self::FETCH_OBJECT) { @@ -718,15 +2413,18 @@ public function deleteElectronicSealImage(string $electronicSealImageId, string * Download a given Electronic Seal Image. * * @param string $electronicSealImageId Electronic Seal Image Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header image/png|image/jpg|image/gif|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DownloadElectronicSealImageUnauthorizedException - * @throws Exception\DownloadElectronicSealImageNotFoundException - * @throws Exception\DownloadElectronicSealImageTooManyRequestsException - * @throws Exception\DownloadElectronicSealImageInternalServerErrorException + * @throws DownloadElectronicSealImageBadRequestException + * @throws DownloadElectronicSealImageUnauthorizedException + * @throws DownloadElectronicSealImageForbiddenException + * @throws DownloadElectronicSealImageNotFoundException + * @throws DownloadElectronicSealImageMethodNotAllowedException + * @throws DownloadElectronicSealImageTooManyRequestsException + * @throws DownloadElectronicSealImageInternalServerErrorException */ public function downloadElectronicSealImage(string $electronicSealImageId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -738,14 +2436,15 @@ public function downloadElectronicSealImage(string $electronicSealImageId, strin * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ElectronicSeal|ResponseInterface|null + * @return ($fetch is 'object' ? ElectronicSeal|null : ResponseInterface) * - * @throws Exception\PostElectronicSealsBadRequestException - * @throws Exception\PostElectronicSealsUnauthorizedException - * @throws Exception\PostElectronicSealsForbiddenException - * @throws Exception\PostElectronicSealsUnsupportedMediaTypeException - * @throws Exception\PostElectronicSealsTooManyRequestsException - * @throws Exception\PostElectronicSealsInternalServerErrorException + * @throws PostElectronicSealsBadRequestException + * @throws PostElectronicSealsUnauthorizedException + * @throws PostElectronicSealsForbiddenException + * @throws PostElectronicSealsMethodNotAllowedException + * @throws PostElectronicSealsUnsupportedMediaTypeException + * @throws PostElectronicSealsTooManyRequestsException + * @throws PostElectronicSealsInternalServerErrorException */ public function postElectronicSeals(?CreateElectronicSealPayload $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -758,12 +2457,14 @@ public function postElectronicSeals(?CreateElectronicSealPayload $requestBody = * @param string $electronicSealId Electronic Seal Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ElectronicSeal|ResponseInterface|null + * @return ($fetch is 'object' ? ElectronicSeal|null : ResponseInterface) * - * @throws Exception\GetElectronicSealUnauthorizedException - * @throws Exception\GetElectronicSealNotFoundException - * @throws Exception\GetElectronicSealTooManyRequestsException - * @throws Exception\GetElectronicSealInternalServerErrorException + * @throws GetElectronicSealUnauthorizedException + * @throws GetElectronicSealForbiddenException + * @throws GetElectronicSealNotFoundException + * @throws GetElectronicSealMethodNotAllowedException + * @throws GetElectronicSealTooManyRequestsException + * @throws GetElectronicSealInternalServerErrorException */ public function getElectronicSeal(string $electronicSealId, string $fetch = self::FETCH_OBJECT) { @@ -776,14 +2477,15 @@ public function getElectronicSeal(string $electronicSealId, string $fetch = self * @param string $electronicSealId Electronic Seal Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ElectronicSealAuditTrail|ResponseInterface|null + * @return ($fetch is 'object' ? ElectronicSealAuditTrail|null : ResponseInterface) * - * @throws Exception\GetElectronicSealAuditTrailBadRequestException - * @throws Exception\GetElectronicSealAuditTrailUnauthorizedException - * @throws Exception\GetElectronicSealAuditTrailForbiddenException - * @throws Exception\GetElectronicSealAuditTrailNotFoundException - * @throws Exception\GetElectronicSealAuditTrailTooManyRequestsException - * @throws Exception\GetElectronicSealAuditTrailInternalServerErrorException + * @throws GetElectronicSealAuditTrailBadRequestException + * @throws GetElectronicSealAuditTrailUnauthorizedException + * @throws GetElectronicSealAuditTrailForbiddenException + * @throws GetElectronicSealAuditTrailNotFoundException + * @throws GetElectronicSealAuditTrailMethodNotAllowedException + * @throws GetElectronicSealAuditTrailTooManyRequestsException + * @throws GetElectronicSealAuditTrailInternalServerErrorException */ public function getElectronicSealAuditTrail(string $electronicSealId, string $fetch = self::FETCH_OBJECT) { @@ -794,17 +2496,18 @@ public function getElectronicSealAuditTrail(string $electronicSealId, string $fe * Electronic Seal Audit Trail is only available when the Electronic Seal is "done". * * @param string $electronicSealId Electronic Seal Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DownloadElectronicSealAuditTrailBadRequestException - * @throws Exception\DownloadElectronicSealAuditTrailUnauthorizedException - * @throws Exception\DownloadElectronicSealAuditTrailForbiddenException - * @throws Exception\DownloadElectronicSealAuditTrailNotFoundException - * @throws Exception\DownloadElectronicSealAuditTrailTooManyRequestsException - * @throws Exception\DownloadElectronicSealAuditTrailInternalServerErrorException + * @throws DownloadElectronicSealAuditTrailBadRequestException + * @throws DownloadElectronicSealAuditTrailUnauthorizedException + * @throws DownloadElectronicSealAuditTrailForbiddenException + * @throws DownloadElectronicSealAuditTrailNotFoundException + * @throws DownloadElectronicSealAuditTrailMethodNotAllowedException + * @throws DownloadElectronicSealAuditTrailTooManyRequestsException + * @throws DownloadElectronicSealAuditTrailInternalServerErrorException */ public function downloadElectronicSealAuditTrail(string $electronicSealId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -812,66 +2515,241 @@ public function downloadElectronicSealAuditTrail(string $electronicSealId, strin } /** - * Verify a person’s identity by sending the file containing their ID document (ID card, passport, residence permit or driving license). + * Returns the list of all the Labels within your organization. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "name"?: array, //Filter by `name`. Allowed operators: `eq`, `in`. + * Example: `name[eq]=Miscellaneous` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetLabels200Response|null : ResponseInterface) + * + * @throws GetLabelsBadRequestException + * @throws GetLabelsUnauthorizedException + * @throws GetLabelsMethodNotAllowedException + * @throws GetLabelsTooManyRequestsException + * @throws GetLabelsInternalServerErrorException + */ + public function getLabels(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetLabels($queryParameters), $fetch); + } + + /** + * Creates a new Label in the organization. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\IdDocumentVerificationCreated|ResponseInterface|null + * @return ($fetch is 'object' ? Label|null : ResponseInterface) * - * @throws Exception\CreateIdDocumentVerificationBadRequestException - * @throws Exception\CreateIdDocumentVerificationUnauthorizedException - * @throws Exception\CreateIdDocumentVerificationForbiddenException - * @throws Exception\CreateIdDocumentVerificationUnsupportedMediaTypeException - * @throws Exception\CreateIdDocumentVerificationTooManyRequestsException - * @throws Exception\CreateIdDocumentVerificationInternalServerErrorException + * @throws PostLabelsBadRequestException + * @throws PostLabelsUnauthorizedException + * @throws PostLabelsForbiddenException + * @throws PostLabelsMethodNotAllowedException + * @throws PostLabelsTooManyRequestsException + * @throws PostLabelsInternalServerErrorException */ - public function createIdDocumentVerification(?CreateIdDocumentVerification $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postLabels(?CreateLabel $requestBody = null, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\CreateIdDocumentVerification($requestBody), $fetch); + return $this->executeEndpoint(new PostLabels($requestBody), $fetch); } /** - * Get the detailed results of an ID document verification, including the status of the verification, the reasons in case of rejection and the data extracted from the ID document. + * Deletes a given Label. This will remove the Label from all Signature Requests it is associated with. * - * @param string $idDocumentVerificationId The ID document verification ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $labelId Label Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws DeleteLabelsIdBadRequestException + * @throws DeleteLabelsIdUnauthorizedException + * @throws DeleteLabelsIdForbiddenException + * @throws DeleteLabelsIdNotFoundException + * @throws DeleteLabelsIdMethodNotAllowedException + * @throws DeleteLabelsIdTooManyRequestsException + * @throws DeleteLabelsIdInternalServerErrorException + */ + public function deleteLabelsId(string $labelId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new DeleteLabelsId($labelId), $fetch); + } + + /** + * Retrieves a given Label within your organization. + * + * @param string $labelId Label Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? Label|null : ResponseInterface) + * + * @throws GetLabelsIdBadRequestException + * @throws GetLabelsIdUnauthorizedException + * @throws GetLabelsIdForbiddenException + * @throws GetLabelsIdNotFoundException + * @throws GetLabelsIdMethodNotAllowedException + * @throws GetLabelsIdTooManyRequestsException + * @throws GetLabelsIdInternalServerErrorException + */ + public function getLabelsId(string $labelId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetLabelsId($labelId), $fetch); + } + + /** + * Updates a given Label. + * Any parameters not provided are left unchanged. + * + * @param string $labelId Label Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? Label|null : ResponseInterface) + * + * @throws PatchLabelIdBadRequestException + * @throws PatchLabelIdUnauthorizedException + * @throws PatchLabelIdForbiddenException + * @throws PatchLabelIdNotFoundException + * @throws PatchLabelIdMethodNotAllowedException + * @throws PatchLabelIdUnsupportedMediaTypeException + * @throws PatchLabelIdTooManyRequestsException + * @throws PatchLabelIdInternalServerErrorException + */ + public function patchLabelId(string $labelId, ?UpdateLabel $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PatchLabelId($labelId, $requestBody), $fetch); + } + + /** + * Returns the list of all Natural Person Ongoing Monitorings within your organization. + * You can limit the number of items returned by using filters and pagination. + * Results are sorted by creation date, most recent first. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=active` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=08739e2d-35cf-4889-a323-bb103f068529` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetMonitoringsNaturalPersons200Response|null : ResponseInterface) + * + * @throws GetMonitoringsNaturalPersonsBadRequestException + * @throws GetMonitoringsNaturalPersonsUnauthorizedException + * @throws GetMonitoringsNaturalPersonsForbiddenException + * @throws GetMonitoringsNaturalPersonsMethodNotAllowedException + * @throws GetMonitoringsNaturalPersonsTooManyRequestsException + * @throws GetMonitoringsNaturalPersonsInternalServerErrorException + */ + public function getMonitoringsNaturalPersons(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetMonitoringsNaturalPersons($queryParameters), $fetch); + } + + /** + * Subscribe to Ongoing Monitoring for a natural person. + * Once the Ongoing Monitoring is active, you are notified through webhooks whenever a change is + * detected on that person, such as a new sanction, a new politically exposed position, or a change + * in the companies they are involved in. + * + * Activation is asynchronous: this endpoint returns an Ongoing Monitoring with the `pending` status, + * which is not watching the person yet. Do not assume the person is watched before you receive the + * `monitoring.natural_person.activated` webhook event. + * If the Ongoing Monitoring could not be started you receive `monitoring.natural_person.inconclusive` + * instead; that status is final, so initiate a new Ongoing Monitoring to try again. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\IdDocumentVerification|ResponseInterface|null + * @return ($fetch is 'object' ? NaturalPersonMonitoringFull|null : ResponseInterface) * - * @throws Exception\GetIdDocumentVerificationBadRequestException - * @throws Exception\GetIdDocumentVerificationUnauthorizedException - * @throws Exception\GetIdDocumentVerificationForbiddenException - * @throws Exception\GetIdDocumentVerificationNotFoundException - * @throws Exception\GetIdDocumentVerificationTooManyRequestsException - * @throws Exception\GetIdDocumentVerificationInternalServerErrorException + * @throws PostMonitoringsNaturalPersonsBadRequestException + * @throws PostMonitoringsNaturalPersonsUnauthorizedException + * @throws PostMonitoringsNaturalPersonsForbiddenException + * @throws PostMonitoringsNaturalPersonsMethodNotAllowedException + * @throws PostMonitoringsNaturalPersonsUnsupportedMediaTypeException + * @throws PostMonitoringsNaturalPersonsTooManyRequestsException + * @throws PostMonitoringsNaturalPersonsInternalServerErrorException */ - public function getIdDocumentVerification(string $idDocumentVerificationId, string $fetch = self::FETCH_OBJECT) + public function postMonitoringsNaturalPersons(?InitiateNaturalPersonMonitoring $requestBody = null, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetIdDocumentVerification($idDocumentVerificationId), $fetch); + return $this->executeEndpoint(new PostMonitoringsNaturalPersons($requestBody), $fetch); } /** - * Returns the list of all Signatures Requests in your organization. You can limit the number of items returned by using filters and pagination. + * Stop watching a natural person. Only an `active` Ongoing Monitoring can be canceled. + * A canceled Ongoing Monitoring emits no further event and cannot be resumed: + * to watch that person again, initiate a new Ongoing Monitoring. * - * @param array $queryParameters { + * @param string $naturalPersonMonitoringId Natural Person Ongoing Monitoring Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @var string $status Filter by status - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $external_id Filter by external_id - * @var array $source[] Filter by source - * @var string $q Search on name - * } + * @return ($fetch is 'object' ? NaturalPersonMonitoringFull|null : ResponseInterface) * + * @throws PostMonitoringsNaturalPersonsIdCancelBadRequestException + * @throws PostMonitoringsNaturalPersonsIdCancelUnauthorizedException + * @throws PostMonitoringsNaturalPersonsIdCancelForbiddenException + * @throws PostMonitoringsNaturalPersonsIdCancelNotFoundException + * @throws PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException + * @throws PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException + * @throws PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException + */ + public function postMonitoringsNaturalPersonsIdCancel(string $naturalPersonMonitoringId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostMonitoringsNaturalPersonsIdCancel($naturalPersonMonitoringId), $fetch); + } + + /** + * Returns the list of all Signatures Requests in your organization. You can limit the number of items returned by using filters and pagination. Consult our guide for more details and examples. + * + * @param array{ + * "after"?: string, //Cursor for pagination; pass the `meta.next_cursor` value from the previous response to fetch the next page. + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`, `in`. + * Example: `status[in]=draft,done` + * "created_at"?: array, //Filter by `created_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `created_at[between]=2025-03-02,2025-03-04` + * "activated_at"?: array, //Filter by `activated_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `activated_at[after]=2025-03-01` + * "completed_at"?: array, //Filter by `completed_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `completed_at[between]=2025-03-01,2025-03-31` + * "approved_at"?: array, //Filter by `approved_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `approved_at[after]=2025-03-01` + * "rejected_at"?: array, //Filter by `rejected_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `rejected_at[before]=2025-04-01` + * "declined_at"?: array, //Filter by `declined_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `declined_at[after]=2025-01-01` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * "external_id"?: array, //Filter by `external_id`. Allowed operators: `eq`. + * Example: `external_id[eq]=an-external-id` + * "source"?: array, //Filter by `source`. Allowed operators: `eq`, `in`. + * Default value: `source[eq]=public_api`. If not specified, only Signature Requests created via the Public API are returned. + * Example: `source[in]=public_api,app` + * "q"?: string, //Free-text search on the Signature Request name. + * "label.name"?: array, //Case-sensitive filter by Label name. Allowed operators: `eq`, `in`. + * Example: `label.name[in]=To Sign,Miscellaneous` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequests200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequests200Response|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsBadRequestException - * @throws Exception\GetSignatureRequestsUnauthorizedException - * @throws Exception\GetSignatureRequestsForbiddenException - * @throws Exception\GetSignatureRequestsTooManyRequestsException - * @throws Exception\GetSignatureRequestsInternalServerErrorException + * @throws GetSignatureRequestsBadRequestException + * @throws GetSignatureRequestsUnauthorizedException + * @throws GetSignatureRequestsForbiddenException + * @throws GetSignatureRequestsMethodNotAllowedException + * @throws GetSignatureRequestsTooManyRequestsException + * @throws GetSignatureRequestsInternalServerErrorException */ public function getSignatureRequests(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -883,17 +2761,18 @@ public function getSignatureRequests(array $queryParameters = [], string $fetch * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignatureRequest|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsBadRequestException - * @throws Exception\PostSignatureRequestsUnauthorizedException - * @throws Exception\PostSignatureRequestsForbiddenException - * @throws Exception\PostSignatureRequestsNotFoundException - * @throws Exception\PostSignatureRequestsUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsTooManyRequestsException - * @throws Exception\PostSignatureRequestsInternalServerErrorException + * @throws PostSignatureRequestsBadRequestException + * @throws PostSignatureRequestsUnauthorizedException + * @throws PostSignatureRequestsForbiddenException + * @throws PostSignatureRequestsNotFoundException + * @throws PostSignatureRequestsMethodNotAllowedException + * @throws PostSignatureRequestsUnsupportedMediaTypeException + * @throws PostSignatureRequestsTooManyRequestsException + * @throws PostSignatureRequestsInternalServerErrorException */ - public function postSignatureRequests(?CreateSignatureRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postSignatureRequests(?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PostSignatureRequests($requestBody), $fetch); } @@ -902,21 +2781,20 @@ public function postSignatureRequests(?CreateSignatureRequest $requestBody = nul * Deletes a given Signature Request, not possible if the Signature Request is in `approval` and `ongoing` status. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var bool $permanent_delete If true it will permanently delete the Signature Request. It will no longer be retrievable. - * } - * + * @param array{ + * "permanent_delete"?: bool, //If true it will permanently delete the Signature Request. It will no longer be retrievable. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestId(string $signatureRequestId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -929,14 +2807,15 @@ public function deleteSignatureRequestsSignatureRequestId(string $signatureReque * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignatureRequest|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdInternalServerErrorException */ public function getSignatureRequestsSignatureRequestId(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { @@ -949,15 +2828,16 @@ public function getSignatureRequestsSignatureRequestId(string $signatureRequestI * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignatureRequest|null : ResponseInterface) * - * @throws Exception\PatchSignatureRequestsSignatureRequestIdBadRequestException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdUnauthorizedException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdForbiddenException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdNotFoundException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdUnsupportedMediaTypeException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdTooManyRequestsException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdInternalServerErrorException + * @throws PatchSignatureRequestsSignatureRequestIdBadRequestException + * @throws PatchSignatureRequestsSignatureRequestIdUnauthorizedException + * @throws PatchSignatureRequestsSignatureRequestIdForbiddenException + * @throws PatchSignatureRequestsSignatureRequestIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException + * @throws PatchSignatureRequestsSignatureRequestIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsSignatureRequestIdTooManyRequestsException + * @throws PatchSignatureRequestsSignatureRequestIdInternalServerErrorException */ public function patchSignatureRequestsSignatureRequestId(string $signatureRequestId, ?UpdateSignatureRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -968,21 +2848,46 @@ public function patchSignatureRequestsSignatureRequestId(string $signatureReques * Activates a Signature request, so it is not in `draft` status anymore. * If the `delivery_mode` is not `null`, activating the Signature Request will trigger the notifications to Approvers/Followers/Signers. * + * When the Signature Request is set to be archived on Y (`archiving` is `archive_y`), activation fails with a `400` error of type `configuration.archive_y_identifier_required` if no archive Y identifier is configured on its workspace or, as a fallback, on its organization. + * + * @param string $signatureRequestId Signature Request Id + * @param ActivateSignatureRequest|mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? SignatureRequestActivated|null : ResponseInterface) + * + * @throws PostSignatureRequestsSignatureRequestIdActivateBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdActivateForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdActivateNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException + */ + public function postSignatureRequestsSignatureRequestIdActivate(string $signatureRequestId, $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdActivate($signatureRequestId, $requestBody), $fetch); + } + + /** + * Returns a list of Approvers for a given Signature Request. + * * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequestActivated|ResponseInterface|null + * @return ($fetch is 'object' ? Approver[]|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException + * @throws GetSignatureRequestsIdApproversBadRequestException + * @throws GetSignatureRequestsIdApproversUnauthorizedException + * @throws GetSignatureRequestsIdApproversForbiddenException + * @throws GetSignatureRequestsIdApproversNotFoundException + * @throws GetSignatureRequestsIdApproversMethodNotAllowedException + * @throws GetSignatureRequestsIdApproversTooManyRequestsException + * @throws GetSignatureRequestsIdApproversInternalServerErrorException */ - public function postSignatureRequestsSignatureRequestIdActivate(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + public function getSignatureRequestsIdApprovers(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdActivate($signatureRequestId), $fetch); + return $this->executeEndpoint(new GetSignatureRequestsIdApprovers($signatureRequestId), $fetch); } /** @@ -991,17 +2896,18 @@ public function postSignatureRequestsSignatureRequestIdActivate(string $signatur * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Approver|ResponseInterface|null + * @return ($fetch is 'object' ? Approver|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdApproversBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdApproversForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdApproversNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException */ - public function postSignatureRequestsSignatureRequestIdApprovers(string $signatureRequestId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postSignatureRequestsSignatureRequestIdApprovers(string $signatureRequestId, ?CreateApprover $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdApprovers($signatureRequestId, $requestBody), $fetch); } @@ -1013,14 +2919,15 @@ public function postSignatureRequestsSignatureRequestIdApprovers(string $signatu * @param string $approverId Approver Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdApproversApproverId(string $signatureRequestId, string $approverId, string $fetch = self::FETCH_OBJECT) { @@ -1034,13 +2941,14 @@ public function deleteSignatureRequestsSignatureRequestIdApproversApproverId(str * @param string $approverId Approver Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Approver|ResponseInterface|null + * @return ($fetch is 'object' ? Approver|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdApproversApproverId(string $signatureRequestId, string $approverId, string $fetch = self::FETCH_OBJECT) { @@ -1054,17 +2962,18 @@ public function getSignatureRequestsSignatureRequestIdApproversApproverId(string * @param string $approverId Approver Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Approver|ResponseInterface|null + * @return ($fetch is 'object' ? Approver|null : ResponseInterface) * - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnsupportedMediaTypeException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException */ - public function patchSignatureRequestsSignatureRequestIdApproversApproverId(string $signatureRequestId, string $approverId, ?PatchSignatureRequestsSignatureRequestIdApproversApproverIdRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function patchSignatureRequestsSignatureRequestIdApproversApproverId(string $signatureRequestId, string $approverId, ?UpdateApprover $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PatchSignatureRequestsSignatureRequestIdApproversApproverId($signatureRequestId, $approverId, $requestBody), $fetch); } @@ -1077,14 +2986,15 @@ public function patchSignatureRequestsSignatureRequestIdApproversApproverId(stri * @param string $approverId Approver Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder(string $signatureRequestId, string $approverId, string $fetch = self::FETCH_OBJECT) { @@ -1095,21 +3005,20 @@ public function postSignatureRequestsSignatureRequestIdApproversApproverIdSendRe * Download the PDF version of all the Audit Trails attached to a given Signature Request. Each Audit Trail is bound to a different Signer. Only possible when the Signature Request status is `done`. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var bool $merge Download all Audit Trails merged as a single PDF file - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array{ + * "merge"?: bool, //Download all Audit Trails merged as a single PDF file + * } $queryParameters * @param array $accept Accept content header application/zip, application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdAuditTrailsDownload(string $signatureRequestId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -1122,15 +3031,16 @@ public function getSignatureRequestsSignatureRequestIdAuditTrailsDownload(string * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequest|ResponseInterface|null + * @return ($fetch is 'object' ? PostSignatureRequestsSignatureRequestIdCancel201Response|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdCancelBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdCancelForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdCancelNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdCancelUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdCancel(string $signatureRequestId, ?PostSignatureRequestsSignatureRequestIdCancelRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1143,13 +3053,14 @@ public function postSignatureRequestsSignatureRequestIdCancel(string $signatureR * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSignerConsentRequests(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1157,20 +3068,21 @@ public function getSignatureRequestsSignatureRequestIdSignerConsentRequests(stri } /** - * Adds a Signer Consent Request to a given Signature Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer Consent Request to a given Signature Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignerConsentRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignerConsentRequest|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdConsentRequests(string $signatureRequestId, ?CreateSignerConsentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1178,20 +3090,21 @@ public function postSignatureRequestsSignatureRequestIdConsentRequests(string $s } /** - * Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft. + * Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId(string $signatureRequestId, string $consentRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1201,20 +3114,21 @@ public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentR /** * Updates a given Signer Consent Request. * Any parameters not provided are left unchanged. - * This action is only permitted when the Signature Request is a draft. + * This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignerConsentRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignerConsentRequest|null : ResponseInterface) * - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException */ public function patchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId(string $signatureRequestId, string $consentRequestId, ?UpdateSignerConsentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1222,21 +3136,22 @@ public function patchSignatureRequestsSignatureRequestIdConsentRequestsConsentRe } /** - * Remove a Signer from a given Signer Consent Request. This action is only permitted when the Signature Request is a draft. + * Remove a Signer from a given Signer Consent Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId(string $signatureRequestId, string $consentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1244,21 +3159,22 @@ public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentR } /** - * Adds a Signer to a given Signer Consent Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer to a given Signer Consent Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException */ public function putSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId(string $signatureRequestId, string $consentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1271,13 +3187,14 @@ public function putSignatureRequestsSignatureRequestIdConsentRequestsConsentRequ * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSignerDocumentRequests(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1290,15 +3207,16 @@ public function getSignatureRequestsSignatureRequestIdSignerDocumentRequests(str * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignerDocumentRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignerDocumentRequest|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdDocumentRequests(string $signatureRequestId, ?CreateSignerDocumentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1306,20 +3224,21 @@ public function postSignatureRequestsSignatureRequestIdDocumentRequests(string $ } /** - * Delete a Signer Document Request from signature request. This action is only permitted when the Signature Request is a draft. + * Delete a Signer Document Request from signature request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId(string $signatureRequestId, string $documentRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1327,21 +3246,47 @@ public function deleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumen } /** - * Remove a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft. + * Updates a given Signer Document Request. + * Any parameters not provided are left unchanged. + * This action is only permitted when the Signature Request is a draft or paused. + * + * @param string $signatureRequestId Signature Request Id + * @param string $documentRequestId Signer Document Request Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? SignerDocumentRequest|null : ResponseInterface) + * + * @throws PatchSignatureRequestsIdDocumentRequestsIdBadRequestException + * @throws PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException + * @throws PatchSignatureRequestsIdDocumentRequestsIdForbiddenException + * @throws PatchSignatureRequestsIdDocumentRequestsIdNotFoundException + * @throws PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException + * @throws PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException + * @throws PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException + */ + public function patchSignatureRequestsIdDocumentRequestsId(string $signatureRequestId, string $documentRequestId, ?UpdateSignerDocumentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PatchSignatureRequestsIdDocumentRequestsId($signatureRequestId, $documentRequestId, $requestBody), $fetch); + } + + /** + * Remove a Signer from a given Signer Document Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId(string $signatureRequestId, string $documentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1349,21 +3294,22 @@ public function deleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumen } /** - * Adds a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignerDocumentRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignerDocumentRequest|null : ResponseInterface) * - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException */ public function putSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId(string $signatureRequestId, string $documentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1374,21 +3320,21 @@ public function putSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRe * Returns a list of Documents for a given Signature Request. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var string $nature Filter by nature - * } - * + * @param array{ + * "nature"?: array, //Filter by `nature`. Allowed operators: `eq`. + * Example: `nature[eq]=attachment` or `nature[eq]=signable_document`. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Document[]|ResponseInterface|null + * @return ($fetch is 'object' ? Document[]|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdDocuments(string $signatureRequestId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1396,21 +3342,36 @@ public function getSignatureRequestsSignatureRequestIdDocuments(string $signatur } /** - * Adds a Document to a given Signature Request. + * Add a Document to a given Signature Request. * - * @param string $signatureRequestId Signature Request Id - * @param CreateDocumentFromMultipart|Model\CreateDocumentFromJson|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * **Limits:** a maximum of 50 Documents can be added per Signature Request. * - * @return Model\Document|ResponseInterface|null + * Related guide: [Document](https://developers.youtrust.com/docs/document-1) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file (`PDF`, `DOCX`, `JPEG`, `JPG`, `PNG`). + * - 📝 `application/json` — reference an existing Electronic Seal Document by ID. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `plus`, `pro`, `scale` + * - Add-ons (for production access): _none_ + * + * @param string $signatureRequestId Signature Request Id + * @param CreateDocumentFromMultipart|CreateDocumentFromJson|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? Document|null : ResponseInterface) + * + * @throws PostSignatureRequestsSignatureRequestIdDocumentsBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdDocuments(string $signatureRequestId, $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1421,22 +3382,21 @@ public function postSignatureRequestsSignatureRequestIdDocuments(string $signatu * Downloads the PDF version of all Documents attached to a given Signature Request. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var string $version specify Documents version to download, `completed` is only available when the Signature Request status is `done` - * @var bool $archive Force zip archive download - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array{ + * "version"?: string, //Specify Documents version to download, `completed` is only available when the Signature Request status is `done`. + * "archive"?: bool, //Force zip archive download + * } $queryParameters * @param array $accept Accept content header application/zip, application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdDocumentsDownload(string $signatureRequestId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -1450,14 +3410,15 @@ public function getSignatureRequestsSignatureRequestIdDocumentsDownload(string $ * @param string $documentId Document Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdDocumentsDocumentId(string $signatureRequestId, string $documentId, string $fetch = self::FETCH_OBJECT) { @@ -1471,13 +3432,14 @@ public function deleteSignatureRequestsSignatureRequestIdDocumentsDocumentId(str * @param string $documentId Document Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Document|ResponseInterface|null + * @return ($fetch is 'object' ? Document|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentId(string $signatureRequestId, string $documentId, string $fetch = self::FETCH_OBJECT) { @@ -1491,15 +3453,16 @@ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentId(string * @param string $documentId Document Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Document|ResponseInterface|null + * @return ($fetch is 'object' ? Document|null : ResponseInterface) * - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnsupportedMediaTypeException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException */ public function patchSignatureRequestsSignatureRequestIdDocumentsDocumentId(string $signatureRequestId, string $documentId, ?UpdateDocument $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1511,17 +3474,18 @@ public function patchSignatureRequestsSignatureRequestIdDocumentsDocumentId(stri * * @param string $signatureRequestId Signature Request Id * @param string $documentId Document Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownload(string $signatureRequestId, string $documentId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -1533,22 +3497,27 @@ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownlo * * @param string $signatureRequestId Signature Request Id * @param string $documentId Document ID - * @param array $queryParameters { - * - * @var array $types[] Filter by Field type - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "type"?: array, //Filter by `type`. Allowed operators: `eq`, `in`. + * Example: `type[in]=text,checkbox` + * "signer_id"?: array, //Filter by `signer_id`. Allowed operators: `eq`. + * Example: `signer_id[eq]=500800fc-3f91-4e86-a9c9-866809a1e3c9` + * "name"?: array, //Filter by `name`. Allowed operators: `eq`. + * Example: `name[eq]=text 1` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields(string $signatureRequestId, string $documentId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1562,15 +3531,16 @@ public function getSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields( * @param string $documentId Document ID * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields(string $signatureRequestId, string $documentId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1585,14 +3555,15 @@ public function postSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields * @param string $fieldId Field Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId(string $signatureRequestId, string $documentId, string $fieldId, string $fetch = self::FETCH_OBJECT) { @@ -1607,15 +3578,16 @@ public function deleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFiel * @param string $fieldId Field Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnsupportedMediaTypeException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException - * @throws Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnsupportedMediaTypeException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException */ public function updateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId(string $signatureRequestId, string $documentId, string $fieldId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1623,83 +3595,201 @@ public function updateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFiel } /** - * Replace the file of a given Document. + * This endpoint can be used on ongoing Signature Requests only. + * It aims to fill a Field value with a Signer input collected in your custom signing interface. The Fields compatible are Text Fields, Checkboxes and Radio Groups. * * @param string $signatureRequestId Signature Request Id * @param string $documentId Document Id + * @param string $fieldId Field Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Document|ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException */ - public function postSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace(string $signatureRequestId, string $documentId, ?PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function signatureRequestsIdDocumentsIdFieldsIdAnswer(string $signatureRequestId, string $documentId, string $fieldId, ?FieldAnswer $requestBody = null, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace($signatureRequestId, $documentId, $requestBody), $fetch); + return $this->executeEndpoint(new SignatureRequestsIdDocumentsIdFieldsIdAnswer($signatureRequestId, $documentId, $fieldId, $requestBody), $fetch); } /** - * Returns a list of Followers for a given Signature Request. + * Replace the file of a given Document. * * @param string $signatureRequestId Signature Request Id + * @param string $documentId Document Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequestsSignatureRequestIdFollowers200Response|ResponseInterface|null + * @return ($fetch is 'object' ? Document|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdFollowersForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdFollowersNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException */ - public function getSignatureRequestsSignatureRequestIdFollowers(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + public function postSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace(string $signatureRequestId, string $documentId, ?PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetSignatureRequestsSignatureRequestIdFollowers($signatureRequestId), $fetch); + return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace($signatureRequestId, $documentId, $requestBody), $fetch); } /** - * Adds a Follower to a given Signature Request. + * Returns a short-lived link opening the Signature Request Embedded Preparation. The Signature Request must be in `draft` status, have at least one Signer and one Signable Document, and must not have Document visibility restrictions. * - * @param string $signatureRequestId Signature Request Id - * @param Model\CreateFollowersInner[]|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $signatureRequestId Signature Request Id + * @param array{ + * "locale"?: string, //Language of the Signature Request Embedded Preparation UI. Defaults to the organization's language. + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Follower[]|ResponseInterface|null + * @return ($fetch is 'object' ? EmbeddedPreparationLink|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException */ - public function postSignatureRequestsSignatureRequestIdFollowers(string $signatureRequestId, ?array $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getSignatureRequestsIdEmbeddedPreparationLink(string $signatureRequestId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdFollowers($signatureRequestId, $requestBody), $fetch); + return $this->executeEndpoint(new GetSignatureRequestsIdEmbeddedPreparationLink($signatureRequestId, $queryParameters), $fetch); } /** - * Deletes the Metadata of a given Signature Request. + * Returns a list of Followers for a given Signature Request. * * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequestsSignatureRequestIdFollowers200Response|null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdFollowersForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdFollowersNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException */ - public function deleteSignatureRequestsSignatureRequestIdMetadata(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + public function getSignatureRequestsSignatureRequestIdFollowers(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetSignatureRequestsSignatureRequestIdFollowers($signatureRequestId), $fetch); + } + + /** + * Adds a Follower to a given Signature Request. + * + * @param string $signatureRequestId Signature Request Id + * @param CreateFollowersInner[]|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? Follower[]|null : ResponseInterface) + * + * @throws PostSignatureRequestsSignatureRequestIdFollowersBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdFollowersForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdFollowersNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdFollowersUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException + */ + public function postSignatureRequestsSignatureRequestIdFollowers(string $signatureRequestId, ?array $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdFollowers($signatureRequestId, $requestBody), $fetch); + } + + /** + * Returns the list of Labels associated with a given Signature Request. + * + * @param string $signatureRequestId Signature Request Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetSignatureRequestsIdLabels200Response|null : ResponseInterface) + * + * @throws GetSignatureRequestsIdLabelsBadRequestException + * @throws GetSignatureRequestsIdLabelsUnauthorizedException + * @throws GetSignatureRequestsIdLabelsForbiddenException + * @throws GetSignatureRequestsIdLabelsNotFoundException + * @throws GetSignatureRequestsIdLabelsMethodNotAllowedException + * @throws GetSignatureRequestsIdLabelsTooManyRequestsException + * @throws GetSignatureRequestsIdLabelsInternalServerErrorException + */ + public function getSignatureRequestsIdLabels(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetSignatureRequestsIdLabels($signatureRequestId), $fetch); + } + + /** + * Removes a Label from a given Signature Request. + * + * @param string $signatureRequestId Signature Request Id + * @param string $labelId Label Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws DeleteSignatureRequestsIdLabelsIdBadRequestException + * @throws DeleteSignatureRequestsIdLabelsIdUnauthorizedException + * @throws DeleteSignatureRequestsIdLabelsIdForbiddenException + * @throws DeleteSignatureRequestsIdLabelsIdNotFoundException + * @throws DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException + * @throws DeleteSignatureRequestsIdLabelsIdTooManyRequestsException + * @throws DeleteSignatureRequestsIdLabelsIdInternalServerErrorException + */ + public function deleteSignatureRequestsIdLabelsId(string $signatureRequestId, string $labelId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new DeleteSignatureRequestsIdLabelsId($signatureRequestId, $labelId), $fetch); + } + + /** + * Associates a Label with a given Signature Request. + * + * @param string $signatureRequestId Signature Request Id + * @param string $labelId Label Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PutSignatureRequestsIdLabelsIdBadRequestException + * @throws PutSignatureRequestsIdLabelsIdUnauthorizedException + * @throws PutSignatureRequestsIdLabelsIdForbiddenException + * @throws PutSignatureRequestsIdLabelsIdNotFoundException + * @throws PutSignatureRequestsIdLabelsIdMethodNotAllowedException + * @throws PutSignatureRequestsIdLabelsIdTooManyRequestsException + * @throws PutSignatureRequestsIdLabelsIdInternalServerErrorException + */ + public function putSignatureRequestsIdLabelsId(string $signatureRequestId, string $labelId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PutSignatureRequestsIdLabelsId($signatureRequestId, $labelId), $fetch); + } + + /** + * Deletes the Metadata of a given Signature Request. + * + * @param string $signatureRequestId Signature Request Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException + */ + public function deleteSignatureRequestsSignatureRequestIdMetadata(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new DeleteSignatureRequestsSignatureRequestIdMetadata($signatureRequestId), $fetch); } @@ -1710,13 +3800,14 @@ public function deleteSignatureRequestsSignatureRequestIdMetadata(string $signat * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Metadata|ResponseInterface|null + * @return ($fetch is 'object' ? Metadata|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdMetadataForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdMetadataNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdMetadataForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdMetadata(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1729,15 +3820,16 @@ public function getSignatureRequestsSignatureRequestIdMetadata(string $signature * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Metadata|ResponseInterface|null + * @return ($fetch is 'object' ? Metadata|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdMetadataBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdMetadataForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdMetadataUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdMetadata(string $signatureRequestId, ?Metadata $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1750,54 +3842,99 @@ public function postSignatureRequestsSignatureRequestIdMetadata(string $signatur * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Metadata|ResponseInterface|null + * @return ($fetch is 'object' ? Metadata|null : ResponseInterface) * - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataBadRequestException - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataForbiddenException - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataNotFoundException - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException - * @throws Exception\PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException + * @throws PutSignatureRequestsSignatureRequestIdMetadataBadRequestException + * @throws PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException + * @throws PutSignatureRequestsSignatureRequestIdMetadataForbiddenException + * @throws PutSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException + * @throws PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException + * @throws PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ public function putSignatureRequestsSignatureRequestIdMetadata(string $signatureRequestId, ?Metadata $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PutSignatureRequestsSignatureRequestIdMetadata($signatureRequestId, $requestBody), $fetch); } + /** + * Pauses a Signature Request when it is in `approval` or `ongoing` status. All signers and approvers must be in `initiated` or `notified` status, and no AES or QES signer may have started their identification process. Recipients may have previously opened their signing link. A paused Signature Request can be edited and then resumed. + * + * @param string $signatureRequestId Signature Request Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? PostSignatureRequestsIdPause201Response|null : ResponseInterface) + * + * @throws PostSignatureRequestsIdPauseBadRequestException + * @throws PostSignatureRequestsIdPauseUnauthorizedException + * @throws PostSignatureRequestsIdPauseForbiddenException + * @throws PostSignatureRequestsIdPauseNotFoundException + * @throws PostSignatureRequestsIdPauseMethodNotAllowedException + * @throws PostSignatureRequestsIdPauseTooManyRequestsException + * @throws PostSignatureRequestsIdPauseInternalServerErrorException + */ + public function postSignatureRequestsIdPause(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsIdPause($signatureRequestId), $fetch); + } + /** * Reactivates a Signature Request when it is in `expired` status. * * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignatureRequest|ResponseInterface|null + * @return ($fetch is 'object' ? SignatureRequest|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdReactivateBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdReactivateForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdReactivateNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdReactivateUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdReactivate(string $signatureRequestId, ?PostSignatureRequestsSignatureRequestIdReactivateRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdReactivate($signatureRequestId, $requestBody), $fetch); } + /** + * Resumes a Signature Request when it is in paused status. The request is moved to either ongoing or approval status depending on its current configuration. + * + * @param string $signatureRequestId Signature Request Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? PostSignatureRequestsIdResume201Response|null : ResponseInterface) + * + * @throws PostSignatureRequestsIdResumeBadRequestException + * @throws PostSignatureRequestsIdResumeUnauthorizedException + * @throws PostSignatureRequestsIdResumeForbiddenException + * @throws PostSignatureRequestsIdResumeNotFoundException + * @throws PostSignatureRequestsIdResumeMethodNotAllowedException + * @throws PostSignatureRequestsIdResumeTooManyRequestsException + * @throws PostSignatureRequestsIdResumeInternalServerErrorException + */ + public function postSignatureRequestsIdResume(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsIdResume($signatureRequestId), $fetch); + } + /** * Returns a list of Signers for a given Signature Request. * * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Signer[]|ResponseInterface|null + * @return ($fetch is 'object' ? Signer[]|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignersForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignersNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSigners(string $signatureRequestId, string $fetch = self::FETCH_OBJECT) { @@ -1810,15 +3947,16 @@ public function getSignatureRequestsSignatureRequestIdSigners(string $signatureR * @param string $signatureRequestId Signature Request Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Signer|ResponseInterface|null + * @return ($fetch is 'object' ? Signer|null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdSignersBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdSignersForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdSignersNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdSignersUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdSigners(string $signatureRequestId, ?\stdClass $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1832,14 +3970,15 @@ public function postSignatureRequestsSignatureRequestIdSigners(string $signature * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdSignersSignerId(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1853,13 +3992,14 @@ public function deleteSignatureRequestsSignatureRequestIdSignersSignerId(string * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Signer|ResponseInterface|null + * @return ($fetch is 'object' ? Signer|null : ResponseInterface) * - * @throws Exception\GetSignersSignersIdUnauthorizedException - * @throws Exception\GetSignersSignersIdForbiddenException - * @throws Exception\GetSignersSignersIdNotFoundException - * @throws Exception\GetSignersSignersIdTooManyRequestsException - * @throws Exception\GetSignersSignersIdInternalServerErrorException + * @throws GetSignersSignersIdUnauthorizedException + * @throws GetSignersSignersIdForbiddenException + * @throws GetSignersSignersIdNotFoundException + * @throws GetSignersSignersIdMethodNotAllowedException + * @throws GetSignersSignersIdTooManyRequestsException + * @throws GetSignersSignersIdInternalServerErrorException */ public function getSignersSignersId(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1874,15 +4014,16 @@ public function getSignersSignersId(string $signatureRequestId, string $signerId * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Signer|ResponseInterface|null + * @return ($fetch is 'object' ? Signer|null : ResponseInterface) * - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnsupportedMediaTypeException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException - * @throws Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException */ public function patchSignatureRequestsSignatureRequestIdSignersSignerId(string $signatureRequestId, string $signerId, ?UpdateSigner $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -1896,14 +4037,15 @@ public function patchSignatureRequestsSignatureRequestIdSignersSignerId(string $ * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SignerAuditTrail|ResponseInterface|null + * @return ($fetch is 'object' ? SignerAuditTrail|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1915,17 +4057,18 @@ public function getSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails * * @param string $signatureRequestId Signature Request Id * @param string $signerId Signer Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadBadRequestException - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadUnauthorizedException - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadForbiddenException - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadNotFoundException - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException - * @throws Exception\GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException + * @throws GetSignersSignerIdAuditTrailsDownloadBadRequestException + * @throws GetSignersSignerIdAuditTrailsDownloadUnauthorizedException + * @throws GetSignersSignerIdAuditTrailsDownloadForbiddenException + * @throws GetSignersSignerIdAuditTrailsDownloadNotFoundException + * @throws GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException + * @throws GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException + * @throws GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException */ public function getSignersSignerIdAuditTrailsDownload(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT, array $accept = []) { @@ -1940,14 +4083,15 @@ public function getSignersSignerIdAuditTrailsDownload(string $signatureRequestId * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException - * @throws Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException */ public function deleteSignatureRequestsSignatureRequestIdSignersSignerIdDocuments(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1962,14 +4106,15 @@ public function deleteSignatureRequestsSignatureRequestIdSignersSignerIdDocument * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments200Response|null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSignersSignerIdDocuments(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -1983,23 +4128,47 @@ public function getSignatureRequestsSignatureRequestIdSignersSignerIdDocuments(s * @param string $signatureRequestId Signature Request Id * @param string $signerId Signer Id * @param string $signerDocumentId Signer Document Id - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdBadRequestException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException - * @throws Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdBadRequestException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException */ public function getSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId(string $signatureRequestId, string $signerId, string $signerDocumentId, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId($signatureRequestId, $signerId, $signerDocumentId, $accept), $fetch); } + /** + * Verifying an identity document for a Signer to know if their document is valid before enabling them to sign using Advanced Electronic Signature. + * + * @param string $signatureRequestId Signature Request Id + * @param string $signerId Signer Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException + */ + public function postSignatureRequestsIdSignersIdIdentityVerification(string $signatureRequestId, string $signerId, ?SignerIdentityVerification $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsIdSignersIdIdentityVerification($signatureRequestId, $signerId, $requestBody), $fetch); + } + /** * Send a One-Time Password (OTP) to a given Signer. Use this endpoint only if you use your own signing flow. * @@ -2007,14 +4176,15 @@ public function getSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSi * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -2029,14 +4199,15 @@ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp(st * @param string $signerId Signer Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) { @@ -2046,20 +4217,41 @@ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSendRemind /** * Sign a Signature Request on behalf of a given Signer. * - * @param string $signatureRequestId Signature Request Id - * @param string $signerId Signer Id - * @param Model\SignerSign|Model\SignerSignWithUploadedSignatureImage|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return ResponseInterface|null - * - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignBadRequestException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnsupportedMediaTypeException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException - * @throws Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException + * Use this endpoint if you are integrating [your own signing flow](https://developers.youtrust.com/docs/building-your-own-signing-flow) (Signers won't go through Youtrust's pre-made signing flow). + * + * To use this endpoint, you must match the following conditions: + * - The Signature Request `delivery_mode` must be set to `none`. + * - The Signature Request must not have any Approver, Signer Document Request or Signer Consent Request. + * - The Signature Request must not have the parameter `signers_allowed_to_decline` set to `true`. + * - The signature level must be `"Simple eSignature"`. + * + * Related guide: [Building your own signing flow](https://developers.youtrust.com/docs/building-your-own-signing-flow#step-3-collect-the-signer-consent-through-your-own-signing-flow) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📝 `application/json` — sign without uploading a signature image. + * - 📁 `multipart/form-data` — upload a signature image alongside the consent payload. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `scale` + * - Add-ons (for production access): _none_ + * + * @param string $signatureRequestId Signature Request Id + * @param string $signerId Signer Id + * @param SignerSign|SignerSignWithUploadedSignatureImage|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignBadRequestException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnsupportedMediaTypeException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException */ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSign(string $signatureRequestId, string $signerId, $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2067,23 +4259,67 @@ public function postSignatureRequestsSignatureRequestIdSignersSignerIdSign(strin } /** - * Returns the list of all Templates within your Organization. + * Unblock a Signer during a Qualified Electronic Signature in cases where a mismatch was previously detected between the sender-provided first and/or last name and the information on the Signer's ID document. * - * @param array $queryParameters { + * @param string $signatureRequestId Signature Request Id + * @param string $signerId Signer Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException + */ + public function postSignatureRequestsIdSignersIdUnblockIdentification(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostSignatureRequestsIdSignersIdUnblockIdentification($signatureRequestId, $signerId), $fetch); + } + + /** + * Download the Verified Identity Proof (PDF) attached to a given Signer for a Qualified e-Signature. Only possible when Signer identification status is accepted. The identification must be recent and a Video Identity Verification. * + * @param string $signatureRequestId Signature Request Id + * @param string $signerId Signer Id + * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException + */ + public function getSignatureRequestsIdSignersIdVerifiedIdentityProofDownload(string $signatureRequestId, string $signerId, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownload($signatureRequestId, $signerId, $accept), $fetch); + } + + /** + * Returns the list of all Templates within your Organization. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetTemplates200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetTemplates200Response|null : ResponseInterface) * - * @throws Exception\GetTemplatesBadRequestException - * @throws Exception\GetTemplatesUnauthorizedException - * @throws Exception\GetTemplatesForbiddenException - * @throws Exception\GetTemplatesTooManyRequestsException - * @throws Exception\GetTemplatesInternalServerErrorException + * @throws GetTemplatesBadRequestException + * @throws GetTemplatesUnauthorizedException + * @throws GetTemplatesForbiddenException + * @throws GetTemplatesMethodNotAllowedException + * @throws GetTemplatesTooManyRequestsException + * @throws GetTemplatesInternalServerErrorException */ public function getTemplates(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2093,21 +4329,21 @@ public function getTemplates(array $queryParameters = [], string $fetch = self:: /** * Returns the list of all the Users within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $email A given e-mail address to filter on. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "email"?: array, //Filter by `email`. Allowed operators: `eq`. + * Example: `email[eq]=user@example.com` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetUsers200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetUsers200Response|null : ResponseInterface) * - * @throws Exception\GetUsersBadRequestException - * @throws Exception\GetUsersUnauthorizedException - * @throws Exception\GetUsersTooManyRequestsException - * @throws Exception\GetUsersInternalServerErrorException + * @throws GetUsersBadRequestException + * @throws GetUsersUnauthorizedException + * @throws GetUsersMethodNotAllowedException + * @throws GetUsersTooManyRequestsException + * @throws GetUsersInternalServerErrorException */ public function getUsers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2116,18 +4352,17 @@ public function getUsers(array $queryParameters = [], string $fetch = self::FETC /** * Creates a new application User and sends them an invitation email. - * `email`: The email address must not match any existing User’s email. - * `workspaces`: The new User must be associated with at least one Workspace in the Organization. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\User|ResponseInterface|null + * @return ($fetch is 'object' ? User|null : ResponseInterface) * - * @throws Exception\PostUsersBadRequestException - * @throws Exception\PostUsersUnauthorizedException - * @throws Exception\PostUsersForbiddenException - * @throws Exception\PostUsersTooManyRequestsException - * @throws Exception\PostUsersInternalServerErrorException + * @throws PostUsersBadRequestException + * @throws PostUsersUnauthorizedException + * @throws PostUsersForbiddenException + * @throws PostUsersMethodNotAllowedException + * @throws PostUsersTooManyRequestsException + * @throws PostUsersInternalServerErrorException */ public function postUsers(?CreateUser $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2137,22 +4372,22 @@ public function postUsers(?CreateUser $requestBody = null, string $fetch = self: /** * Returns the list of all the Users Invitations within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $email A given e-mail address to filter on. - * } - * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "email"?: array, //Filter by `email`. Allowed operators: `eq`. + * Example: `email[eq]=user@example.com` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetInvitations200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetInvitations200Response|null : ResponseInterface) * - * @throws Exception\GetInvitationsBadRequestException - * @throws Exception\GetInvitationsUnauthorizedException - * @throws Exception\GetInvitationsForbiddenException - * @throws Exception\GetInvitationsTooManyRequestsException - * @throws Exception\GetInvitationsInternalServerErrorException + * @throws GetInvitationsBadRequestException + * @throws GetInvitationsUnauthorizedException + * @throws GetInvitationsForbiddenException + * @throws GetInvitationsMethodNotAllowedException + * @throws GetInvitationsTooManyRequestsException + * @throws GetInvitationsInternalServerErrorException */ public function getInvitations(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2165,13 +4400,14 @@ public function getInvitations(array $queryParameters = [], string $fetch = self * @param string $invitationId Invitation Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\UserInvitation|ResponseInterface|null + * @return ($fetch is 'object' ? UserInvitation|null : ResponseInterface) * - * @throws Exception\GetUsersInvitationInvitationIdUnauthorizedException - * @throws Exception\GetUsersInvitationInvitationIdForbiddenException - * @throws Exception\GetUsersInvitationInvitationIdNotFoundException - * @throws Exception\GetUsersInvitationInvitationIdTooManyRequestsException - * @throws Exception\GetUsersInvitationInvitationIdInternalServerErrorException + * @throws GetUsersInvitationInvitationIdUnauthorizedException + * @throws GetUsersInvitationInvitationIdForbiddenException + * @throws GetUsersInvitationInvitationIdNotFoundException + * @throws GetUsersInvitationInvitationIdMethodNotAllowedException + * @throws GetUsersInvitationInvitationIdTooManyRequestsException + * @throws GetUsersInvitationInvitationIdInternalServerErrorException */ public function getUsersInvitationInvitationId(string $invitationId, string $fetch = self::FETCH_OBJECT) { @@ -2184,14 +4420,15 @@ public function getUsersInvitationInvitationId(string $invitationId, string $fet * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteUsersUserIdBadRequestException - * @throws Exception\DeleteUsersUserIdUnauthorizedException - * @throws Exception\DeleteUsersUserIdForbiddenException - * @throws Exception\DeleteUsersUserIdNotFoundException - * @throws Exception\DeleteUsersUserIdTooManyRequestsException - * @throws Exception\DeleteUsersUserIdInternalServerErrorException + * @throws DeleteUsersUserIdBadRequestException + * @throws DeleteUsersUserIdUnauthorizedException + * @throws DeleteUsersUserIdForbiddenException + * @throws DeleteUsersUserIdNotFoundException + * @throws DeleteUsersUserIdMethodNotAllowedException + * @throws DeleteUsersUserIdTooManyRequestsException + * @throws DeleteUsersUserIdInternalServerErrorException */ public function deleteUsersUserId(string $userId, string $fetch = self::FETCH_OBJECT) { @@ -2204,14 +4441,15 @@ public function deleteUsersUserId(string $userId, string $fetch = self::FETCH_OB * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\User|ResponseInterface|null + * @return ($fetch is 'object' ? User|null : ResponseInterface) * - * @throws Exception\GetUsersUserIdBadRequestException - * @throws Exception\GetUsersUserIdUnauthorizedException - * @throws Exception\GetUsersUserIdForbiddenException - * @throws Exception\GetUsersUserIdNotFoundException - * @throws Exception\GetUsersUserIdTooManyRequestsException - * @throws Exception\GetUsersUserIdInternalServerErrorException + * @throws GetUsersUserIdBadRequestException + * @throws GetUsersUserIdUnauthorizedException + * @throws GetUsersUserIdForbiddenException + * @throws GetUsersUserIdNotFoundException + * @throws GetUsersUserIdMethodNotAllowedException + * @throws GetUsersUserIdTooManyRequestsException + * @throws GetUsersUserIdInternalServerErrorException */ public function getUsersUserId(string $userId, string $fetch = self::FETCH_OBJECT) { @@ -2225,15 +4463,16 @@ public function getUsersUserId(string $userId, string $fetch = self::FETCH_OBJEC * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\User|ResponseInterface|null + * @return ($fetch is 'object' ? User|null : ResponseInterface) * - * @throws Exception\PatchUsersUserIdBadRequestException - * @throws Exception\PatchUsersUserIdUnauthorizedException - * @throws Exception\PatchUsersUserIdForbiddenException - * @throws Exception\PatchUsersUserIdNotFoundException - * @throws Exception\PatchUsersUserIdUnsupportedMediaTypeException - * @throws Exception\PatchUsersUserIdTooManyRequestsException - * @throws Exception\PatchUsersUserIdInternalServerErrorException + * @throws PatchUsersUserIdBadRequestException + * @throws PatchUsersUserIdUnauthorizedException + * @throws PatchUsersUserIdForbiddenException + * @throws PatchUsersUserIdNotFoundException + * @throws PatchUsersUserIdMethodNotAllowedException + * @throws PatchUsersUserIdUnsupportedMediaTypeException + * @throws PatchUsersUserIdTooManyRequestsException + * @throws PatchUsersUserIdInternalServerErrorException */ public function patchUsersUserId(string $userId, ?UpdateUser $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2246,13 +4485,14 @@ public function patchUsersUserId(string $userId, ?UpdateUser $requestBody = null * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\UserInvitation|ResponseInterface|null + * @return ($fetch is 'object' ? UserInvitation|null : ResponseInterface) * - * @throws Exception\GetUsersUserIdInvitationUnauthorizedException - * @throws Exception\GetUsersUserIdInvitationForbiddenException - * @throws Exception\GetUsersUserIdInvitationNotFoundException - * @throws Exception\GetUsersUserIdInvitationTooManyRequestsException - * @throws Exception\GetUsersUserIdInvitationInternalServerErrorException + * @throws GetUsersUserIdInvitationUnauthorizedException + * @throws GetUsersUserIdInvitationForbiddenException + * @throws GetUsersUserIdInvitationNotFoundException + * @throws GetUsersUserIdInvitationMethodNotAllowedException + * @throws GetUsersUserIdInvitationTooManyRequestsException + * @throws GetUsersUserIdInvitationInternalServerErrorException */ public function getUsersUserIdInvitation(string $userId, string $fetch = self::FETCH_OBJECT) { @@ -2260,54 +4500,603 @@ public function getUsersUserIdInvitation(string $userId, string $fetch = self::F } /** - * Creates a new Identity Verification resource. + * Returns the list of all Bank Account Lookup Verifications within your organization. + * You can limit the number of items returned by using filters and pagination. + * Consult our [guide](https://developers.youtrust.com/docs/bank-account-lookup-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetVerificationsBankAccountLookups200Response|null : ResponseInterface) + * + * @throws GetVerificationsBankAccountLookupsBadRequestException + * @throws GetVerificationsBankAccountLookupsUnauthorizedException + * @throws GetVerificationsBankAccountLookupsForbiddenException + * @throws GetVerificationsBankAccountLookupsMethodNotAllowedException + * @throws GetVerificationsBankAccountLookupsTooManyRequestsException + * @throws GetVerificationsBankAccountLookupsInternalServerErrorException + */ + public function getVerificationsBankAccountLookups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsBankAccountLookups($queryParameters), $fetch); + } + + /** + * Initiate a new Bank Account Lookup Verification to check if a bank account exists and belongs to the specified person or company. + * + * Related guide: [Bank Account Verification](https://developers.youtrust.com/docs/bank-account-lookup-verification) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📝 `application/json` — provide the natural or legal person's bank account details directly, or reference an existing Workflow Session Applicant by ID. + * - 📁 `multipart/form-data` — upload a binary file containing the natural or legal person's bank account details. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Verify - Bank account verification` + * + * @param mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? BankAccountLookupFull|null : ResponseInterface) + * + * @throws PostVerificationsBankAccountLookupsBadRequestException + * @throws PostVerificationsBankAccountLookupsUnauthorizedException + * @throws PostVerificationsBankAccountLookupsForbiddenException + * @throws PostVerificationsBankAccountLookupsMethodNotAllowedException + * @throws PostVerificationsBankAccountLookupsUnsupportedMediaTypeException + * @throws PostVerificationsBankAccountLookupsTooManyRequestsException + * @throws PostVerificationsBankAccountLookupsInternalServerErrorException + */ + public function postVerificationsBankAccountLookups($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsBankAccountLookups($requestBody), $fetch); + } + + /** + * Retrieve a specific Bank Account Lookup Verification by its ID. + * + * @param string $bankAccountLookupVerificationId Bank Account Lookup Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? BankAccountLookupFull|null : ResponseInterface) + * + * @throws GetVerificationsBankAccountLookupsIdBadRequestException + * @throws GetVerificationsBankAccountLookupsIdUnauthorizedException + * @throws GetVerificationsBankAccountLookupsIdForbiddenException + * @throws GetVerificationsBankAccountLookupsIdNotFoundException + * @throws GetVerificationsBankAccountLookupsIdMethodNotAllowedException + * @throws GetVerificationsBankAccountLookupsIdTooManyRequestsException + * @throws GetVerificationsBankAccountLookupsIdInternalServerErrorException + */ + public function getVerificationsBankAccountLookupsId(string $bankAccountLookupVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsBankAccountLookupsId($bankAccountLookupVerificationId), $fetch); + } + + /** + * Returns the list of all Bank Account Verifications within your organization. You can limit the number of items returned by using filters and pagination. Consult our [guide](https://developers.youtrust.com/docs/bank-account-details-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetVerificationsBankAccounts200Response|null : ResponseInterface) * + * @throws GetVerificationsBankAccountsBadRequestException + * @throws GetVerificationsBankAccountsUnauthorizedException + * @throws GetVerificationsBankAccountsForbiddenException + * @throws GetVerificationsBankAccountsMethodNotAllowedException + * @throws GetVerificationsBankAccountsTooManyRequestsException + * @throws GetVerificationsBankAccountsInternalServerErrorException + */ + public function getVerificationsBankAccounts(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsBankAccounts($queryParameters), $fetch); + } + + /** + * Ask for a Bank Account Verification by sending the file containing the bank account details, such as IBAN and BIC. + * + * A Bank Account Verification can be requested as follows: + * - **Bank Account verification**: This option only checks the validity of the Bank Account document. + * - **Bank Account verification with legal person**: This option checks both: + * - the validity of the Bank Account document + * - the coherence between the provided **legal person** names and those on the document. + * - **Bank Account verification with natural person**: This option checks both: + * - the validity of the Bank Account document + * - the coherence between the provided **natural person** names and those on the document. + * + * Related guide: [Bank Account Document Verification](https://developers.youtrust.com/docs/bank-account-details-verification) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file containing the bank account details (IBAN/BIC). + * - 📝 `application/json` — reference an existing Workflow Session Applicant by ID. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Verify - Bank account document check` + * + * @param InitiateBankAccountFromApplicant|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? BankAccountFull|null : ResponseInterface) + * + * @throws PostVerificationsBankAccountsBadRequestException + * @throws PostVerificationsBankAccountsUnauthorizedException + * @throws PostVerificationsBankAccountsForbiddenException + * @throws PostVerificationsBankAccountsMethodNotAllowedException + * @throws PostVerificationsBankAccountsUnsupportedMediaTypeException + * @throws PostVerificationsBankAccountsTooManyRequestsException + * @throws PostVerificationsBankAccountsInternalServerErrorException + */ + public function postVerificationsBankAccounts($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsBankAccounts($requestBody), $fetch); + } + + /** + * Get the detailed results of a Bank Account Verification. + * + * @param string $bankAccountVerificationId Bank Account Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? BankAccountFull|null : ResponseInterface) + * + * @throws GetVerificationsBankAccountsIdBadRequestException + * @throws GetVerificationsBankAccountsIdUnauthorizedException + * @throws GetVerificationsBankAccountsIdForbiddenException + * @throws GetVerificationsBankAccountsIdNotFoundException + * @throws GetVerificationsBankAccountsIdMethodNotAllowedException + * @throws GetVerificationsBankAccountsIdTooManyRequestsException + * @throws GetVerificationsBankAccountsIdInternalServerErrorException + */ + public function getVerificationsBankAccountsId(string $bankAccountVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsBankAccountsId($bankAccountVerificationId), $fetch); + } + + /** + * Returns the list of all Company Verifications within your organization. You can limit the number of items returned by using filters and pagination. Consult our [guide](https://developers.youtrust.com/docs/company-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\VideoIdentityVerificationCreated|ResponseInterface|null + * @return ($fetch is 'object' ? GetVerificationsCompanies200Response|null : ResponseInterface) * - * @throws Exception\PostIdentityVerificationsBadRequestException - * @throws Exception\PostIdentityVerificationsUnauthorizedException - * @throws Exception\PostIdentityVerificationsForbiddenException - * @throws Exception\PostIdentityVerificationsNotFoundException - * @throws Exception\PostIdentityVerificationsTooManyRequestsException - * @throws Exception\PostIdentityVerificationsInternalServerErrorException + * @throws GetVerificationsCompaniesBadRequestException + * @throws GetVerificationsCompaniesUnauthorizedException + * @throws GetVerificationsCompaniesForbiddenException + * @throws GetVerificationsCompaniesMethodNotAllowedException + * @throws GetVerificationsCompaniesTooManyRequestsException + * @throws GetVerificationsCompaniesInternalServerErrorException */ - public function postIdentityVerifications(?CreateVideoIdentityVerification $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getVerificationsCompanies(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new PostIdentityVerifications($requestBody), $fetch); + return $this->executeEndpoint(new GetVerificationsCompanies($queryParameters), $fetch); } /** - * Get the detailed results of an Identity Verification. + * Initiate a new Company Verification by providing the company number or by uploading a document containing company information. + * + * Related guide: [Company Registry Verification](https://developers.youtrust.com/docs/company-verification). + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📝 `application/json` — provide the company number directly, or reference an existing Workflow Session Applicant by ID. + * - 📁 `multipart/form-data` — upload a binary file containing the company information. * - * @param string $identityVerificationId The Identity verification ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Verify - Company registry verification` * - * @return Model\VideoIdentityVerification|ResponseInterface|null + * @param mixed|InitiateCompanyFromFile|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdBadRequestException - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdUnauthorizedException - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdForbiddenException - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdNotFoundException - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException - * @throws Exception\GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException + * @return ($fetch is 'object' ? CompanyFull|null : ResponseInterface) + * + * @throws PostVerificationsCompaniesBadRequestException + * @throws PostVerificationsCompaniesUnauthorizedException + * @throws PostVerificationsCompaniesForbiddenException + * @throws PostVerificationsCompaniesNotFoundException + * @throws PostVerificationsCompaniesMethodNotAllowedException + * @throws PostVerificationsCompaniesUnsupportedMediaTypeException + * @throws PostVerificationsCompaniesTooManyRequestsException + * @throws PostVerificationsCompaniesInternalServerErrorException */ - public function getIdentityVerificationsIdentityVerificationId(string $identityVerificationId, string $fetch = self::FETCH_OBJECT) + public function postVerificationsCompanies($requestBody = null, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new GetIdentityVerificationsIdentityVerificationId($identityVerificationId), $fetch); + return $this->executeEndpoint(new PostVerificationsCompanies($requestBody), $fetch); } /** + * Get the detailed results of a Company Verification. + * + * @param string $companyVerificationId Company Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? CompanyFull|null : ResponseInterface) + * + * @throws GetVerificationsCompaniesIdBadRequestException + * @throws GetVerificationsCompaniesIdUnauthorizedException + * @throws GetVerificationsCompaniesIdForbiddenException + * @throws GetVerificationsCompaniesIdNotFoundException + * @throws GetVerificationsCompaniesIdMethodNotAllowedException + * @throws GetVerificationsCompaniesIdTooManyRequestsException + * @throws GetVerificationsCompaniesIdInternalServerErrorException + */ + public function getVerificationsCompaniesId(string $companyVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsCompaniesId($companyVerificationId), $fetch); + } + + /** + * Returns the list of all Identity Document Verifications within your organization. You can limit the number of items returned by using filters and pagination. Consult our [guide](https://developers.youtrust.com/docs/identity-document-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\WebhookSubscription[]|ResponseInterface|null + * @return ($fetch is 'object' ? GetVerificationsIdentityDocuments200Response|null : ResponseInterface) * - * @throws Exception\GetWebhooksBadRequestException - * @throws Exception\GetWebhooksUnauthorizedException - * @throws Exception\GetWebhooksForbiddenException - * @throws Exception\GetWebhooksTooManyRequestsException - * @throws Exception\GetWebhooksInternalServerErrorException + * @throws GetVerificationsIdentityDocumentsBadRequestException + * @throws GetVerificationsIdentityDocumentsUnauthorizedException + * @throws GetVerificationsIdentityDocumentsForbiddenException + * @throws GetVerificationsIdentityDocumentsMethodNotAllowedException + * @throws GetVerificationsIdentityDocumentsTooManyRequestsException + * @throws GetVerificationsIdentityDocumentsInternalServerErrorException + */ + public function getVerificationsIdentityDocuments(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsIdentityDocuments($queryParameters), $fetch); + } + + /** + * Verify a person's Identity Document by sending the file containing their Identity Document (identity card, passport, residence permit or driving license). + * + * An Image Identity Verification can be requested as follows: + * - **Verification with names**: This option checks both the validity of the ID document and the coherence between the names provided and those on the document. + * - **Verification without names**: This option only checks the validity of the ID document. + * + * Related guide: [Image Identity Verification](https://developers.youtrust.com/docs/identity-document-verification) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file containing the Identity Document. + * - 📝 `application/json` — reference an existing Workflow Session Applicant by ID. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Verify - Image identity verification` + * + * @param InitiateIdentityDocumentFromApplicant|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? IdentityDocumentFull|null : ResponseInterface) + * + * @throws PostVerificationsIdentityDocumentsBadRequestException + * @throws PostVerificationsIdentityDocumentsUnauthorizedException + * @throws PostVerificationsIdentityDocumentsForbiddenException + * @throws PostVerificationsIdentityDocumentsMethodNotAllowedException + * @throws PostVerificationsIdentityDocumentsUnsupportedMediaTypeException + * @throws PostVerificationsIdentityDocumentsTooManyRequestsException + * @throws PostVerificationsIdentityDocumentsInternalServerErrorException + */ + public function postVerificationsIdentityDocuments($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsIdentityDocuments($requestBody), $fetch); + } + + /** + * Get the detailed results of an Identity Document Verification, including the status of the verification, the reasons in case of rejection and the data extracted from the Identity Document. + * + * @param string $identityDocumentVerificationId Identity Document Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? IdentityDocumentFull|null : ResponseInterface) + * + * @throws GetVerificationsIdentityDocumentsIdBadRequestException + * @throws GetVerificationsIdentityDocumentsIdUnauthorizedException + * @throws GetVerificationsIdentityDocumentsIdForbiddenException + * @throws GetVerificationsIdentityDocumentsIdNotFoundException + * @throws GetVerificationsIdentityDocumentsIdMethodNotAllowedException + * @throws GetVerificationsIdentityDocumentsIdTooManyRequestsException + * @throws GetVerificationsIdentityDocumentsIdInternalServerErrorException + */ + public function getVerificationsIdentityDocumentsId(string $identityDocumentVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsIdentityDocumentsId($identityDocumentVerificationId), $fetch); + } + + /** + * Returns the list of all Identity Video Verifications within your organization. You can limit the number of items returned by using filters and pagination. Consult our [guide](https://developers.youtrust.com/docs/video-based-identity-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * "face_recognition"?: array, //Filter by `face_recognition`. Allowed operators: `eq`. + * Example: `face_recognition[eq]=true` + * "pvid"?: array, //Filter by `pvid`. Allowed operators: `eq`. + * Example: `pvid[eq]=true` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetVerificationsIdentityVideos200Response|null : ResponseInterface) + * + * @throws GetVerificationsIdentityVideosBadRequestException + * @throws GetVerificationsIdentityVideosUnauthorizedException + * @throws GetVerificationsIdentityVideosForbiddenException + * @throws GetVerificationsIdentityVideosMethodNotAllowedException + * @throws GetVerificationsIdentityVideosTooManyRequestsException + * @throws GetVerificationsIdentityVideosInternalServerErrorException + */ + public function getVerificationsIdentityVideos(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsIdentityVideos($queryParameters), $fetch); + } + + /** + * Request verification of a person's identity by recording their documents and/or themselves. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? IdentityVideoFull|null : ResponseInterface) + * + * @throws PostVerificationsIdentityVideosBadRequestException + * @throws PostVerificationsIdentityVideosUnauthorizedException + * @throws PostVerificationsIdentityVideosForbiddenException + * @throws PostVerificationsIdentityVideosNotFoundException + * @throws PostVerificationsIdentityVideosMethodNotAllowedException + * @throws PostVerificationsIdentityVideosTooManyRequestsException + * @throws PostVerificationsIdentityVideosInternalServerErrorException + */ + public function postVerificationsIdentityVideos(?InitiateIdentityVideo $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsIdentityVideos($requestBody), $fetch); + } + + /** + * Get the detailed results of an Identity Video Verification. + * + * @param string $identityVideoVerificationId Identity Video Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? IdentityVideoFull|null : ResponseInterface) + * + * @throws GetVerificationsIdentityVideosIdBadRequestException + * @throws GetVerificationsIdentityVideosIdUnauthorizedException + * @throws GetVerificationsIdentityVideosIdForbiddenException + * @throws GetVerificationsIdentityVideosIdNotFoundException + * @throws GetVerificationsIdentityVideosIdMethodNotAllowedException + * @throws GetVerificationsIdentityVideosIdTooManyRequestsException + * @throws GetVerificationsIdentityVideosIdInternalServerErrorException + */ + public function getVerificationsIdentityVideosId(string $identityVideoVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsIdentityVideosId($identityVideoVerificationId), $fetch); + } + + /** + * Returns the list of all Proof of Address Verifications within your organization. + * You can limit the number of items returned by using filters and pagination. + * Consult our [guide](https://developers.youtrust.com/docs/proof-of-address-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetVerificationsProofsOfAddress200Response|null : ResponseInterface) + * + * @throws GetVerificationsProofsOfAddressBadRequestException + * @throws GetVerificationsProofsOfAddressUnauthorizedException + * @throws GetVerificationsProofsOfAddressForbiddenException + * @throws GetVerificationsProofsOfAddressMethodNotAllowedException + * @throws GetVerificationsProofsOfAddressTooManyRequestsException + * @throws GetVerificationsProofsOfAddressInternalServerErrorException + */ + public function getVerificationsProofsOfAddress(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsProofsOfAddress($queryParameters), $fetch); + } + + /** + * Ask for a Proof of Address Verification by sending a supported document type (see our [guide](https://developers.youtrust.com/docs/proof-of-address-verification) for more info). + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file containing the proof of address. + * - 📝 `application/json` — reference an existing Workflow Session Applicant by ID. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Verify - Proof of address check` + * + * @param InitiateProofOfAddressFromApplicant|InitiateProofOfAddress|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? ProofOfAddressVerificationFull|null : ResponseInterface) + * + * @throws PostVerificationsProofsOfAddressBadRequestException + * @throws PostVerificationsProofsOfAddressUnauthorizedException + * @throws PostVerificationsProofsOfAddressForbiddenException + * @throws PostVerificationsProofsOfAddressMethodNotAllowedException + * @throws PostVerificationsProofsOfAddressUnsupportedMediaTypeException + * @throws PostVerificationsProofsOfAddressTooManyRequestsException + * @throws PostVerificationsProofsOfAddressInternalServerErrorException + */ + public function postVerificationsProofsOfAddress($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsProofsOfAddress($requestBody), $fetch); + } + + /** + * Get the detailed results of a Proof of Address Verification. + * + * @param string $proofOfAddressVerificationId Proof of Address Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? ProofOfAddressVerificationFull|null : ResponseInterface) + * + * @throws GetVerificationsProofsOfAddressIdBadRequestException + * @throws GetVerificationsProofsOfAddressIdUnauthorizedException + * @throws GetVerificationsProofsOfAddressIdForbiddenException + * @throws GetVerificationsProofsOfAddressIdNotFoundException + * @throws GetVerificationsProofsOfAddressIdMethodNotAllowedException + * @throws GetVerificationsProofsOfAddressIdTooManyRequestsException + * @throws GetVerificationsProofsOfAddressIdInternalServerErrorException + */ + public function getVerificationsProofsOfAddressId(string $proofOfAddressVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsProofsOfAddressId($proofOfAddressVerificationId), $fetch); + } + + /** + * Returns the list of all Watchlist Verifications within your organization. + * You can limit the number of items returned by using filters and pagination. + * Consult our [guide](https://developers.youtrust.com/docs/watchlists-verification) for more details and examples. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`. + * Example: `status[eq]=verified` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetVerificationsWatchlists200Response|null : ResponseInterface) + * + * @throws GetVerificationsWatchlistsBadRequestException + * @throws GetVerificationsWatchlistsUnauthorizedException + * @throws GetVerificationsWatchlistsForbiddenException + * @throws GetVerificationsWatchlistsMethodNotAllowedException + * @throws GetVerificationsWatchlistsTooManyRequestsException + * @throws GetVerificationsWatchlistsInternalServerErrorException + */ + public function getVerificationsWatchlists(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsWatchlists($queryParameters), $fetch); + } + + /** + * Initiate a verification to check if a person appears on international sanctions lists or as a politically exposed person (PEP). + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WatchlistFull|null : ResponseInterface) + * + * @throws PostVerificationsWatchlistsBadRequestException + * @throws PostVerificationsWatchlistsUnauthorizedException + * @throws PostVerificationsWatchlistsForbiddenException + * @throws PostVerificationsWatchlistsMethodNotAllowedException + * @throws PostVerificationsWatchlistsUnsupportedMediaTypeException + * @throws PostVerificationsWatchlistsTooManyRequestsException + * @throws PostVerificationsWatchlistsInternalServerErrorException + */ + public function postVerificationsWatchlists(?InitiateWatchlist $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostVerificationsWatchlists($requestBody), $fetch); + } + + /** + * Retrieve a specific Watchlist Verification by its ID. + * Returns details about sanctions and politically exposed person status. + * + * @param string $watchlistVerificationId Watchlist Verification Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WatchlistFull|null : ResponseInterface) + * + * @throws GetVerificationsWatchlistsIdBadRequestException + * @throws GetVerificationsWatchlistsIdUnauthorizedException + * @throws GetVerificationsWatchlistsIdForbiddenException + * @throws GetVerificationsWatchlistsIdNotFoundException + * @throws GetVerificationsWatchlistsIdMethodNotAllowedException + * @throws GetVerificationsWatchlistsIdTooManyRequestsException + * @throws GetVerificationsWatchlistsIdInternalServerErrorException + */ + public function getVerificationsWatchlistsId(string $watchlistVerificationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetVerificationsWatchlistsId($watchlistVerificationId), $fetch); + } + + /** + * Downloads the Audit Trail of a given Verification. Only possible when the Verification status is `verified` or `failed`. + * + * @param string $verificationType type of the Verification for which to download the audit trail + * @param string $verificationId unique identifier of the Verification + * @param array $accept Accept content header application/pdf|application/json + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws GetVerificationsTypeIdAuditTrailBadRequestException + * @throws GetVerificationsTypeIdAuditTrailUnauthorizedException + * @throws GetVerificationsTypeIdAuditTrailForbiddenException + * @throws GetVerificationsTypeIdAuditTrailNotFoundException + * @throws GetVerificationsTypeIdAuditTrailMethodNotAllowedException + * @throws GetVerificationsTypeIdAuditTrailTooManyRequestsException + * @throws GetVerificationsTypeIdAuditTrailInternalServerErrorException + */ + public function getVerificationsTypeIdAuditTrail(string $verificationType, string $verificationId, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new GetVerificationsTypeIdAuditTrail($verificationType, $verificationId, $accept), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WebhookSubscription[]|null : ResponseInterface) + * + * @throws GetWebhooksBadRequestException + * @throws GetWebhooksUnauthorizedException + * @throws GetWebhooksForbiddenException + * @throws GetWebhooksMethodNotAllowedException + * @throws GetWebhooksTooManyRequestsException + * @throws GetWebhooksInternalServerErrorException */ public function getWebhooks(string $fetch = self::FETCH_OBJECT) { @@ -2319,15 +5108,16 @@ public function getWebhooks(string $fetch = self::FETCH_OBJECT) * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\WebhookSubscription|ResponseInterface|null + * @return ($fetch is 'object' ? WebhookSubscription|null : ResponseInterface) * - * @throws Exception\PostWebhooksSubscriptionsBadRequestException - * @throws Exception\PostWebhooksSubscriptionsUnauthorizedException - * @throws Exception\PostWebhooksSubscriptionsForbiddenException - * @throws Exception\PostWebhooksSubscriptionsNotFoundException - * @throws Exception\PostWebhooksSubscriptionsUnsupportedMediaTypeException - * @throws Exception\PostWebhooksSubscriptionsTooManyRequestsException - * @throws Exception\PostWebhooksSubscriptionsInternalServerErrorException + * @throws PostWebhooksSubscriptionsBadRequestException + * @throws PostWebhooksSubscriptionsUnauthorizedException + * @throws PostWebhooksSubscriptionsForbiddenException + * @throws PostWebhooksSubscriptionsNotFoundException + * @throws PostWebhooksSubscriptionsMethodNotAllowedException + * @throws PostWebhooksSubscriptionsUnsupportedMediaTypeException + * @throws PostWebhooksSubscriptionsTooManyRequestsException + * @throws PostWebhooksSubscriptionsInternalServerErrorException */ public function postWebhooksSubscriptions(?CreateWebhookSubscription $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2340,14 +5130,15 @@ public function postWebhooksSubscriptions(?CreateWebhookSubscription $requestBod * @param string $webhookId Webhook Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteWebhooksWebhookIdBadRequestException - * @throws Exception\DeleteWebhooksWebhookIdUnauthorizedException - * @throws Exception\DeleteWebhooksWebhookIdForbiddenException - * @throws Exception\DeleteWebhooksWebhookIdNotFoundException - * @throws Exception\DeleteWebhooksWebhookIdTooManyRequestsException - * @throws Exception\DeleteWebhooksWebhookIdInternalServerErrorException + * @throws DeleteWebhooksWebhookIdBadRequestException + * @throws DeleteWebhooksWebhookIdUnauthorizedException + * @throws DeleteWebhooksWebhookIdForbiddenException + * @throws DeleteWebhooksWebhookIdNotFoundException + * @throws DeleteWebhooksWebhookIdMethodNotAllowedException + * @throws DeleteWebhooksWebhookIdTooManyRequestsException + * @throws DeleteWebhooksWebhookIdInternalServerErrorException */ public function deleteWebhooksWebhookId(string $webhookId, string $fetch = self::FETCH_OBJECT) { @@ -2360,15 +5151,16 @@ public function deleteWebhooksWebhookId(string $webhookId, string $fetch = self: * @param string $webhookId Webhook Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\WebhookSubscription|ResponseInterface|null + * @return ($fetch is 'object' ? WebhookSubscription|null : ResponseInterface) * - * @throws Exception\GetWebhooksWebhookIdBadRequestException - * @throws Exception\GetWebhooksWebhookIdUnauthorizedException - * @throws Exception\GetWebhooksWebhookIdForbiddenException - * @throws Exception\GetWebhooksWebhookIdNotFoundException - * @throws Exception\GetWebhooksWebhookIdUnsupportedMediaTypeException - * @throws Exception\GetWebhooksWebhookIdTooManyRequestsException - * @throws Exception\GetWebhooksWebhookIdInternalServerErrorException + * @throws GetWebhooksWebhookIdBadRequestException + * @throws GetWebhooksWebhookIdUnauthorizedException + * @throws GetWebhooksWebhookIdForbiddenException + * @throws GetWebhooksWebhookIdNotFoundException + * @throws GetWebhooksWebhookIdMethodNotAllowedException + * @throws GetWebhooksWebhookIdUnsupportedMediaTypeException + * @throws GetWebhooksWebhookIdTooManyRequestsException + * @throws GetWebhooksWebhookIdInternalServerErrorException */ public function getWebhooksWebhookId(string $webhookId, string $fetch = self::FETCH_OBJECT) { @@ -2382,14 +5174,15 @@ public function getWebhooksWebhookId(string $webhookId, string $fetch = self::FE * @param string $webhookId Webhook Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\WebhookSubscription|ResponseInterface|null + * @return ($fetch is 'object' ? WebhookSubscription|null : ResponseInterface) * - * @throws Exception\PatchWebhooksWebhookIdBadRequestException - * @throws Exception\PatchWebhooksWebhookIdUnauthorizedException - * @throws Exception\PatchWebhooksWebhookIdForbiddenException - * @throws Exception\PatchWebhooksWebhookIdNotFoundException - * @throws Exception\PatchWebhooksWebhookIdTooManyRequestsException - * @throws Exception\PatchWebhooksWebhookIdInternalServerErrorException + * @throws PatchWebhooksWebhookIdBadRequestException + * @throws PatchWebhooksWebhookIdUnauthorizedException + * @throws PatchWebhooksWebhookIdForbiddenException + * @throws PatchWebhooksWebhookIdNotFoundException + * @throws PatchWebhooksWebhookIdMethodNotAllowedException + * @throws PatchWebhooksWebhookIdTooManyRequestsException + * @throws PatchWebhooksWebhookIdInternalServerErrorException */ public function patchWebhooksWebhookId(string $webhookId, ?UpdateWebhookSubscription $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2397,23 +5190,232 @@ public function patchWebhooksWebhookId(string $webhookId, ?UpdateWebhookSubscrip } /** - * Returns the list of all Workspaces within your Organization. + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetWorkflowSessions200Response|null : ResponseInterface) + * + * @throws GetWorkflowSessionsBadRequestException + * @throws GetWorkflowSessionsUnauthorizedException + * @throws GetWorkflowSessionsForbiddenException + * @throws GetWorkflowSessionsMethodNotAllowedException + * @throws GetWorkflowSessionsTooManyRequestsException + * @throws GetWorkflowSessionsInternalServerErrorException + */ + public function getWorkflowSessions(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowSessions(), $fetch); + } + + /** + * Creates a new Workflow Session resource. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WorkflowSession|null : ResponseInterface) + * + * @throws PostWorkflowSessionsBadRequestException + * @throws PostWorkflowSessionsUnauthorizedException + * @throws PostWorkflowSessionsForbiddenException + * @throws PostWorkflowSessionsNotFoundException + * @throws PostWorkflowSessionsMethodNotAllowedException + * @throws PostWorkflowSessionsTooManyRequestsException + * @throws PostWorkflowSessionsInternalServerErrorException + */ + public function postWorkflowSessions(?CreateWorkflowSession $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostWorkflowSessions($requestBody), $fetch); + } + + /** + * Retrieves a given Workflow Session. + * + * @param string $workflowSessionId Workflow Session Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WorkflowSession|null : ResponseInterface) + * + * @throws GetWorkflowSessionsIdBadRequestException + * @throws GetWorkflowSessionsIdUnauthorizedException + * @throws GetWorkflowSessionsIdForbiddenException + * @throws GetWorkflowSessionsIdNotFoundException + * @throws GetWorkflowSessionsIdMethodNotAllowedException + * @throws GetWorkflowSessionsIdTooManyRequestsException + * @throws GetWorkflowSessionsIdInternalServerErrorException + */ + public function getWorkflowSessionsId(string $workflowSessionId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowSessionsId($workflowSessionId), $fetch); + } + + /** + * Returns the list of all Applicants for a given Workflow Session. + * + * @param string $workflowSessionId Workflow Session Id + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: string, //Filter Applicants by status. + * "parent_applicant_id"?: string, //Filter Applicants by parent Applicant. + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetWorkflowSessionsIdApplicants200Response|null : ResponseInterface) + * + * @throws GetWorkflowSessionsIdApplicantsBadRequestException + * @throws GetWorkflowSessionsIdApplicantsUnauthorizedException + * @throws GetWorkflowSessionsIdApplicantsForbiddenException + * @throws GetWorkflowSessionsIdApplicantsMethodNotAllowedException + * @throws GetWorkflowSessionsIdApplicantsTooManyRequestsException + * @throws GetWorkflowSessionsIdApplicantsInternalServerErrorException + */ + public function getWorkflowSessionsIdApplicants(string $workflowSessionId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowSessionsIdApplicants($workflowSessionId, $queryParameters), $fetch); + } + + /** + * Creates a new Applicant for a given Workflow Session. + * + * @param string $workflowSessionId Workflow Session Id + * @param mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @param array $queryParameters { + * @throws PostWorkflowSessionsIdApplicantsBadRequestException + * @throws PostWorkflowSessionsIdApplicantsUnauthorizedException + * @throws PostWorkflowSessionsIdApplicantsForbiddenException + * @throws PostWorkflowSessionsIdApplicantsNotFoundException + * @throws PostWorkflowSessionsIdApplicantsMethodNotAllowedException + * @throws PostWorkflowSessionsIdApplicantsTooManyRequestsException + * @throws PostWorkflowSessionsIdApplicantsInternalServerErrorException + */ + public function postWorkflowSessionsIdApplicants(string $workflowSessionId, $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostWorkflowSessionsIdApplicants($workflowSessionId, $requestBody), $fetch); + } + + /** + * Retrieves a given Applicant for a Workflow Session. + * + * @param string $workflowSessionId Workflow Session Id + * @param string $applicantId Applicant Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws GetWorkflowSessionsIdApplicantsIdBadRequestException + * @throws GetWorkflowSessionsIdApplicantsIdUnauthorizedException + * @throws GetWorkflowSessionsIdApplicantsIdForbiddenException + * @throws GetWorkflowSessionsIdApplicantsIdNotFoundException + * @throws GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException + * @throws GetWorkflowSessionsIdApplicantsIdTooManyRequestsException + * @throws GetWorkflowSessionsIdApplicantsIdInternalServerErrorException + */ + public function getWorkflowSessionsIdApplicantsId(string $workflowSessionId, string $applicantId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowSessionsIdApplicantsId($workflowSessionId, $applicantId), $fetch); + } + + /** + * Updates a given Applicant for a Workflow Session. + * + * @param string $workflowSessionId Workflow Session Id + * @param string $applicantId Applicant Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PatchWorkflowSessionsIdApplicantsIdBadRequestException + * @throws PatchWorkflowSessionsIdApplicantsIdUnauthorizedException + * @throws PatchWorkflowSessionsIdApplicantsIdForbiddenException + * @throws PatchWorkflowSessionsIdApplicantsIdNotFoundException + * @throws PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException + * @throws PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException + * @throws PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException + */ + public function patchWorkflowSessionsIdApplicantsId(string $workflowSessionId, string $applicantId, ?UpdateWorkflowSessionApplicant $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PatchWorkflowSessionsIdApplicantsId($workflowSessionId, $applicantId, $requestBody), $fetch); + } + + /** + * Generates portal links for all Applicants in a given Workflow Session. A root's link also covers its child Applicants, so child Applicants are not returned as separate entries. + * + * @param string $workflowSessionId Workflow Session Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? WorkflowSessionLinks|null : ResponseInterface) * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @throws GetWorkflowSessionsIdLinksBadRequestException + * @throws GetWorkflowSessionsIdLinksUnauthorizedException + * @throws GetWorkflowSessionsIdLinksForbiddenException + * @throws GetWorkflowSessionsIdLinksNotFoundException + * @throws GetWorkflowSessionsIdLinksMethodNotAllowedException + * @throws GetWorkflowSessionsIdLinksTooManyRequestsException + * @throws GetWorkflowSessionsIdLinksInternalServerErrorException + */ + public function getWorkflowSessionsIdLinks(string $workflowSessionId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowSessionsIdLinks($workflowSessionId), $fetch); + } + + /** + * Resolve an Action in a Workflow Session. Once resolved, the Action is treated as having a `verified` status within the Action Group. + * This is only allowed if the related resource is in a `pending`, `failed`, or `inconclusive` status. + * + * @param string $workflowSessionId Workflow Session Id + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * + * @return ($fetch is 'object' ? null : ResponseInterface) + * + * @throws PostWorkflowSessionsIdResolveActionBadRequestException + * @throws PostWorkflowSessionsIdResolveActionUnauthorizedException + * @throws PostWorkflowSessionsIdResolveActionForbiddenException + * @throws PostWorkflowSessionsIdResolveActionNotFoundException + * @throws PostWorkflowSessionsIdResolveActionMethodNotAllowedException + * @throws PostWorkflowSessionsIdResolveActionTooManyRequestsException + * @throws PostWorkflowSessionsIdResolveActionInternalServerErrorException + */ + public function postWorkflowSessionsIdResolveAction(string $workflowSessionId, ?ResolveWorkflowSessionAction $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new PostWorkflowSessionsIdResolveAction($workflowSessionId, $requestBody), $fetch); + } + + /** * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GetWorkspaces200Response|ResponseInterface|null + * @return ($fetch is 'object' ? GetWorkflowTemplates200Response|null : ResponseInterface) * - * @throws Exception\GetWorkspacesBadRequestException - * @throws Exception\GetWorkspacesUnauthorizedException - * @throws Exception\GetWorkspacesForbiddenException - * @throws Exception\GetWorkspacesTooManyRequestsException - * @throws Exception\GetWorkspacesInternalServerErrorException + * @throws GetWorkflowTemplatesBadRequestException + * @throws GetWorkflowTemplatesUnauthorizedException + * @throws GetWorkflowTemplatesForbiddenException + * @throws GetWorkflowTemplatesMethodNotAllowedException + * @throws GetWorkflowTemplatesTooManyRequestsException + * @throws GetWorkflowTemplatesInternalServerErrorException + */ + public function getWorkflowTemplates(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new GetWorkflowTemplates(), $fetch); + } + + /** + * Returns the list of all Workspaces within your Organization. + * + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return ($fetch is 'object' ? GetWorkspaces200Response|null : ResponseInterface) + * + * @throws GetWorkspacesBadRequestException + * @throws GetWorkspacesUnauthorizedException + * @throws GetWorkspacesForbiddenException + * @throws GetWorkspacesMethodNotAllowedException + * @throws GetWorkspacesTooManyRequestsException + * @throws GetWorkspacesInternalServerErrorException */ public function getWorkspaces(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2425,15 +5427,16 @@ public function getWorkspaces(array $queryParameters = [], string $fetch = self: * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Workspace|ResponseInterface|null + * @return ($fetch is 'object' ? Workspace|null : ResponseInterface) * - * @throws Exception\PostWorkspaceBadRequestException - * @throws Exception\PostWorkspaceUnauthorizedException - * @throws Exception\PostWorkspaceForbiddenException - * @throws Exception\PostWorkspaceNotFoundException - * @throws Exception\PostWorkspaceUnsupportedMediaTypeException - * @throws Exception\PostWorkspaceTooManyRequestsException - * @throws Exception\PostWorkspaceInternalServerErrorException + * @throws PostWorkspaceBadRequestException + * @throws PostWorkspaceUnauthorizedException + * @throws PostWorkspaceForbiddenException + * @throws PostWorkspaceNotFoundException + * @throws PostWorkspaceMethodNotAllowedException + * @throws PostWorkspaceUnsupportedMediaTypeException + * @throws PostWorkspaceTooManyRequestsException + * @throws PostWorkspaceInternalServerErrorException */ public function postWorkspace(?CreateWorkspace $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2443,14 +5446,15 @@ public function postWorkspace(?CreateWorkspace $requestBody = null, string $fetc /** * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Workspace|ResponseInterface|null + * @return ($fetch is 'object' ? Workspace|null : ResponseInterface) * - * @throws Exception\GetWorkspacesDefaultBadRequestException - * @throws Exception\GetWorkspacesDefaultUnauthorizedException - * @throws Exception\GetWorkspacesDefaultForbiddenException - * @throws Exception\GetWorkspacesDefaultNotFoundException - * @throws Exception\GetWorkspacesDefaultTooManyRequestsException - * @throws Exception\GetWorkspacesDefaultInternalServerErrorException + * @throws GetWorkspacesDefaultBadRequestException + * @throws GetWorkspacesDefaultUnauthorizedException + * @throws GetWorkspacesDefaultForbiddenException + * @throws GetWorkspacesDefaultNotFoundException + * @throws GetWorkspacesDefaultMethodNotAllowedException + * @throws GetWorkspacesDefaultTooManyRequestsException + * @throws GetWorkspacesDefaultInternalServerErrorException */ public function getWorkspacesDefault(string $fetch = self::FETCH_OBJECT) { @@ -2462,14 +5466,15 @@ public function getWorkspacesDefault(string $fetch = self::FETCH_OBJECT) * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\MarkWorkspaceAsDefaultBadRequestException - * @throws Exception\MarkWorkspaceAsDefaultUnauthorizedException - * @throws Exception\MarkWorkspaceAsDefaultForbiddenException - * @throws Exception\MarkWorkspaceAsDefaultUnsupportedMediaTypeException - * @throws Exception\MarkWorkspaceAsDefaultTooManyRequestsException - * @throws Exception\MarkWorkspaceAsDefaultInternalServerErrorException + * @throws MarkWorkspaceAsDefaultBadRequestException + * @throws MarkWorkspaceAsDefaultUnauthorizedException + * @throws MarkWorkspaceAsDefaultForbiddenException + * @throws MarkWorkspaceAsDefaultMethodNotAllowedException + * @throws MarkWorkspaceAsDefaultUnsupportedMediaTypeException + * @throws MarkWorkspaceAsDefaultTooManyRequestsException + * @throws MarkWorkspaceAsDefaultInternalServerErrorException */ public function markWorkspaceAsDefault(?MarkWorkspaceAsDefault $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2482,15 +5487,16 @@ public function markWorkspaceAsDefault(?MarkWorkspaceAsDefault $requestBody = nu * @param string $workspaceId Workspace Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteWorkspaceBadRequestException - * @throws Exception\DeleteWorkspaceUnauthorizedException - * @throws Exception\DeleteWorkspaceForbiddenException - * @throws Exception\DeleteWorkspaceNotFoundException - * @throws Exception\DeleteWorkspaceUnsupportedMediaTypeException - * @throws Exception\DeleteWorkspaceTooManyRequestsException - * @throws Exception\DeleteWorkspaceInternalServerErrorException + * @throws DeleteWorkspaceBadRequestException + * @throws DeleteWorkspaceUnauthorizedException + * @throws DeleteWorkspaceForbiddenException + * @throws DeleteWorkspaceNotFoundException + * @throws DeleteWorkspaceMethodNotAllowedException + * @throws DeleteWorkspaceUnsupportedMediaTypeException + * @throws DeleteWorkspaceTooManyRequestsException + * @throws DeleteWorkspaceInternalServerErrorException */ public function deleteWorkspace(string $workspaceId, ?DeleteWorkspace $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2503,14 +5509,15 @@ public function deleteWorkspace(string $workspaceId, ?DeleteWorkspace $requestBo * @param string $workspaceId Workspace Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Workspace|ResponseInterface|null + * @return ($fetch is 'object' ? Workspace|null : ResponseInterface) * - * @throws Exception\GetWorkspacesWorkspaceIdBadRequestException - * @throws Exception\GetWorkspacesWorkspaceIdUnauthorizedException - * @throws Exception\GetWorkspacesWorkspaceIdForbiddenException - * @throws Exception\GetWorkspacesWorkspaceIdNotFoundException - * @throws Exception\GetWorkspacesWorkspaceIdTooManyRequestsException - * @throws Exception\GetWorkspacesWorkspaceIdInternalServerErrorException + * @throws GetWorkspacesWorkspaceIdBadRequestException + * @throws GetWorkspacesWorkspaceIdUnauthorizedException + * @throws GetWorkspacesWorkspaceIdForbiddenException + * @throws GetWorkspacesWorkspaceIdNotFoundException + * @throws GetWorkspacesWorkspaceIdMethodNotAllowedException + * @throws GetWorkspacesWorkspaceIdTooManyRequestsException + * @throws GetWorkspacesWorkspaceIdInternalServerErrorException */ public function getWorkspacesWorkspaceId(string $workspaceId, string $fetch = self::FETCH_OBJECT) { @@ -2524,15 +5531,16 @@ public function getWorkspacesWorkspaceId(string $workspaceId, string $fetch = se * @param string $workspaceId Workspace Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Workspace|ResponseInterface|null + * @return ($fetch is 'object' ? Workspace|null : ResponseInterface) * - * @throws Exception\PatchWorkspacesWorkspaceIdBadRequestException - * @throws Exception\PatchWorkspacesWorkspaceIdUnauthorizedException - * @throws Exception\PatchWorkspacesWorkspaceIdForbiddenException - * @throws Exception\PatchWorkspacesWorkspaceIdNotFoundException - * @throws Exception\PatchWorkspacesWorkspaceIdUnsupportedMediaTypeException - * @throws Exception\PatchWorkspacesWorkspaceIdTooManyRequestsException - * @throws Exception\PatchWorkspacesWorkspaceIdInternalServerErrorException + * @throws PatchWorkspacesWorkspaceIdBadRequestException + * @throws PatchWorkspacesWorkspaceIdUnauthorizedException + * @throws PatchWorkspacesWorkspaceIdForbiddenException + * @throws PatchWorkspacesWorkspaceIdNotFoundException + * @throws PatchWorkspacesWorkspaceIdMethodNotAllowedException + * @throws PatchWorkspacesWorkspaceIdUnsupportedMediaTypeException + * @throws PatchWorkspacesWorkspaceIdTooManyRequestsException + * @throws PatchWorkspacesWorkspaceIdInternalServerErrorException */ public function patchWorkspacesWorkspaceId(string $workspaceId, ?UpdateWorkspace $requestBody = null, string $fetch = self::FETCH_OBJECT) { @@ -2546,14 +5554,15 @@ public function patchWorkspacesWorkspaceId(string $workspaceId, ?UpdateWorkspace * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdBadRequestException - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException - * @throws Exception\DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdBadRequestException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException */ public function deleteWorkspaceWorkspaceIdUsersUserId(string $workspaceId, string $userId, string $fetch = self::FETCH_OBJECT) { @@ -2567,40 +5576,41 @@ public function deleteWorkspaceWorkspaceIdUsersUserId(string $workspaceId, strin * @param string $userId User Id * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return ResponseInterface|null + * @return ($fetch is 'object' ? null : ResponseInterface) * - * @throws Exception\PutWorkspacesWorkspaceIdUsersBadRequestException - * @throws Exception\PutWorkspacesWorkspaceIdUsersUnauthorizedException - * @throws Exception\PutWorkspacesWorkspaceIdUsersForbiddenException - * @throws Exception\PutWorkspacesWorkspaceIdUsersNotFoundException - * @throws Exception\PutWorkspacesWorkspaceIdUsersTooManyRequestsException - * @throws Exception\PutWorkspacesWorkspaceIdUsersInternalServerErrorException + * @throws PutWorkspacesWorkspaceIdUsersBadRequestException + * @throws PutWorkspacesWorkspaceIdUsersUnauthorizedException + * @throws PutWorkspacesWorkspaceIdUsersForbiddenException + * @throws PutWorkspacesWorkspaceIdUsersNotFoundException + * @throws PutWorkspacesWorkspaceIdUsersMethodNotAllowedException + * @throws PutWorkspacesWorkspaceIdUsersTooManyRequestsException + * @throws PutWorkspacesWorkspaceIdUsersInternalServerErrorException */ public function putWorkspacesWorkspaceIdUsers(string $workspaceId, string $userId, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new PutWorkspacesWorkspaceIdUsers($workspaceId, $userId), $fetch); } - public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []): static + public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = [], bool $applyServerPlugins = true): static { - if (null === $httpClient) { - $httpClient = Psr18ClientDiscovery::find(); - $plugins = []; + $plugins = []; + $httpClient ??= Psr18ClientDiscovery::find(); + if ($applyServerPlugins) { $uri = Psr17FactoryDiscovery::findUriFactory()->createUri('https://api-sandbox.yousign.app/v3'); $plugins[] = new AddHostPlugin($uri); $plugins[] = new AddPathPlugin($uri); - if ([] !== $additionalPlugins) { - $plugins = array_merge($plugins, $additionalPlugins); - } - $httpClient = new PluginClient($httpClient, $plugins); } + if (\count($additionalPlugins) > 0) { + $plugins = array_merge($plugins, $additionalPlugins); + } + $httpClient = new PluginClient($httpClient, $plugins); $requestFactory = Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = Psr17FactoryDiscovery::findStreamFactory(); $normalizers = [new ArrayDenormalizer(), new JaneObjectNormalizer()]; - if ([] !== $additionalNormalizers) { + if (\count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } - $serializer = new Serializer($normalizers, [new JsonEncoder(new JsonEncode(), new JsonDecode(['json_decode_associative' => true]))]); + $serializer = new Serializer($normalizers, [new JsonEncoder(new JsonEncode(), new JsonDecode(['json_decode_associative' => true])), new FormEncoder()]); return new static($httpClient, $requestFactory, $serializer, $streamFactory); } diff --git a/generated/Endpoint/CreateIdDocumentVerification.php b/generated/Endpoint/CreateIdDocumentVerification.php deleted file mode 100644 index 14788da..0000000 --- a/generated/Endpoint/CreateIdDocumentVerification.php +++ /dev/null @@ -1,111 +0,0 @@ -body = $requestBody; - } - - public function getMethod(): string - { - return 'POST'; - } - - public function getUri(): string - { - return '/id_document_verifications'; - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Qdequippe\Yousign\Api\Model\CreateIdDocumentVerification) { - $bodyBuilder = new MultipartStreamBuilder($streamFactory); - $formParameters = $serializer->normalize($this->body, 'json'); - foreach ($formParameters as $key => $value) { - $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); - } - - return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return IdDocumentVerificationCreated|null - * - * @throws CreateIdDocumentVerificationBadRequestException - * @throws CreateIdDocumentVerificationUnauthorizedException - * @throws CreateIdDocumentVerificationForbiddenException - * @throws CreateIdDocumentVerificationUnsupportedMediaTypeException - * @throws CreateIdDocumentVerificationTooManyRequestsException - * @throws CreateIdDocumentVerificationInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, IdDocumentVerificationCreated::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new CreateIdDocumentVerificationInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/DeleteContactsContactId.php b/generated/Endpoint/DeleteContactsContactId.php index 76a02fc..048bd48 100644 --- a/generated/Endpoint/DeleteContactsContactId.php +++ b/generated/Endpoint/DeleteContactsContactId.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteContactsContactIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -38,7 +40,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{contactId}'], [$this->contactId], '/contacts/{contactId}'); + return str_replace(['{contactId}'], [rawurlencode($this->contactId)], '/contacts/{contactId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -55,6 +57,7 @@ public function getExtraHeaders(): array * @throws DeleteContactsContactIdUnauthorizedException * @throws DeleteContactsContactIdForbiddenException * @throws DeleteContactsContactIdNotFoundException + * @throws DeleteContactsContactIdMethodNotAllowedException * @throws DeleteContactsContactIdTooManyRequestsException * @throws DeleteContactsContactIdInternalServerErrorException */ @@ -65,19 +68,22 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteContactsContactIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteContactsContactIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteContactsContactIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteContactsContactIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteContactsContactIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteContactsContactIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteCustomExperience.php b/generated/Endpoint/DeleteCustomExperience.php index ccfc5dd..77230bc 100644 --- a/generated/Endpoint/DeleteCustomExperience.php +++ b/generated/Endpoint/DeleteCustomExperience.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{customExperienceId}'], [$this->customExperienceId], '/custom_experiences/{customExperienceId}'); + return str_replace(['{customExperienceId}'], [rawurlencode($this->customExperienceId)], '/custom_experiences/{customExperienceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws DeleteCustomExperienceUnauthorizedException * @throws DeleteCustomExperienceForbiddenException * @throws DeleteCustomExperienceNotFoundException + * @throws DeleteCustomExperienceMethodNotAllowedException * @throws DeleteCustomExperienceTooManyRequestsException * @throws DeleteCustomExperienceInternalServerErrorException */ @@ -68,22 +71,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomExperienceMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteCustomExperienceLogo.php b/generated/Endpoint/DeleteCustomExperienceLogo.php index bbd01fe..25b5b51 100644 --- a/generated/Endpoint/DeleteCustomExperienceLogo.php +++ b/generated/Endpoint/DeleteCustomExperienceLogo.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteCustomExperienceLogoUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{customExperienceId}'], [$this->customExperienceId], '/custom_experiences/{customExperienceId}/logo'); + return str_replace(['{customExperienceId}'], [rawurlencode($this->customExperienceId)], '/custom_experiences/{customExperienceId}/logo'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws DeleteCustomExperienceLogoUnauthorizedException * @throws DeleteCustomExperienceLogoForbiddenException * @throws DeleteCustomExperienceLogoNotFoundException + * @throws DeleteCustomExperienceLogoMethodNotAllowedException * @throws DeleteCustomExperienceLogoTooManyRequestsException * @throws DeleteCustomExperienceLogoInternalServerErrorException */ @@ -68,22 +71,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomExperienceLogoMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteCustomExperienceLogoInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteCustomPropertiesId.php b/generated/Endpoint/DeleteCustomPropertiesId.php new file mode 100644 index 0000000..ec9c16b --- /dev/null +++ b/generated/Endpoint/DeleteCustomPropertiesId.php @@ -0,0 +1,103 @@ +customPropertyId)], '/custom_properties/{customPropertyId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws DeleteCustomPropertiesIdBadRequestException + * @throws DeleteCustomPropertiesIdUnauthorizedException + * @throws DeleteCustomPropertiesIdForbiddenException + * @throws DeleteCustomPropertiesIdNotFoundException + * @throws DeleteCustomPropertiesIdMethodNotAllowedException + * @throws DeleteCustomPropertiesIdTooManyRequestsException + * @throws DeleteCustomPropertiesIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteCustomPropertiesIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/DeleteElectronicSealDocumentsId.php b/generated/Endpoint/DeleteElectronicSealDocumentsId.php new file mode 100644 index 0000000..2836935 --- /dev/null +++ b/generated/Endpoint/DeleteElectronicSealDocumentsId.php @@ -0,0 +1,103 @@ +electronicSealDocumentId)], '/electronic_seal_documents/{electronicSealDocumentId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws DeleteElectronicSealDocumentsIdBadRequestException + * @throws DeleteElectronicSealDocumentsIdUnauthorizedException + * @throws DeleteElectronicSealDocumentsIdForbiddenException + * @throws DeleteElectronicSealDocumentsIdNotFoundException + * @throws DeleteElectronicSealDocumentsIdMethodNotAllowedException + * @throws DeleteElectronicSealDocumentsIdTooManyRequestsException + * @throws DeleteElectronicSealDocumentsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealDocumentsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/DeleteElectronicSealImage.php b/generated/Endpoint/DeleteElectronicSealImage.php index 158740a..82375ad 100644 --- a/generated/Endpoint/DeleteElectronicSealImage.php +++ b/generated/Endpoint/DeleteElectronicSealImage.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteElectronicSealImageUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -38,7 +40,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealImageId}'], [$this->electronicSealImageId], '/electronic_seal_images/{electronicSealImageId}'); + return str_replace(['{electronicSealImageId}'], [rawurlencode($this->electronicSealImageId)], '/electronic_seal_images/{electronicSealImageId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -55,6 +57,7 @@ public function getExtraHeaders(): array * @throws DeleteElectronicSealImageUnauthorizedException * @throws DeleteElectronicSealImageForbiddenException * @throws DeleteElectronicSealImageNotFoundException + * @throws DeleteElectronicSealImageMethodNotAllowedException * @throws DeleteElectronicSealImageTooManyRequestsException * @throws DeleteElectronicSealImageInternalServerErrorException */ @@ -65,19 +68,22 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteElectronicSealImageUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteElectronicSealImageForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteElectronicSealImageNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteElectronicSealImageMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteElectronicSealImageTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteElectronicSealImageInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteLabelsId.php b/generated/Endpoint/DeleteLabelsId.php new file mode 100644 index 0000000..7b495e8 --- /dev/null +++ b/generated/Endpoint/DeleteLabelsId.php @@ -0,0 +1,103 @@ +labelId)], '/labels/{labelId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws DeleteLabelsIdBadRequestException + * @throws DeleteLabelsIdUnauthorizedException + * @throws DeleteLabelsIdForbiddenException + * @throws DeleteLabelsIdNotFoundException + * @throws DeleteLabelsIdMethodNotAllowedException + * @throws DeleteLabelsIdTooManyRequestsException + * @throws DeleteLabelsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteLabelsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/DeleteSignatureRequestsIdLabelsId.php b/generated/Endpoint/DeleteSignatureRequestsIdLabelsId.php new file mode 100644 index 0000000..bdac5f3 --- /dev/null +++ b/generated/Endpoint/DeleteSignatureRequestsIdLabelsId.php @@ -0,0 +1,104 @@ +signatureRequestId), rawurlencode($this->labelId)], '/signature_requests/{signatureRequestId}/labels/{labelId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws DeleteSignatureRequestsIdLabelsIdBadRequestException + * @throws DeleteSignatureRequestsIdLabelsIdUnauthorizedException + * @throws DeleteSignatureRequestsIdLabelsIdForbiddenException + * @throws DeleteSignatureRequestsIdLabelsIdNotFoundException + * @throws DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException + * @throws DeleteSignatureRequestsIdLabelsIdTooManyRequestsException + * @throws DeleteSignatureRequestsIdLabelsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsIdLabelsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestId.php index ade84b2..e63c45f 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -29,10 +31,9 @@ class DeleteSignatureRequestsSignatureRequestId extends BaseEndpoint implements * Deletes a given Signature Request, not possible if the Signature Request is in `approval` and `ongoing` status. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var bool $permanent_delete If true it will permanently delete the Signature Request. It will no longer be retrievable. - * } + * @param array{ + * "permanent_delete"?: bool, //If true it will permanently delete the Signature Request. It will no longer be retrievable. + * } $queryParameters */ public function __construct(protected string $signatureRequestId, array $queryParameters = []) { @@ -46,7 +47,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -75,6 +76,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws DeleteSignatureRequestsSignatureRequestIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException */ @@ -85,22 +87,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdApproversApproverId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdApproversApproverId.php index 042658f..cc01265 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdApproversApproverId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdApproversApproverId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{approverId}'], [$this->signatureRequestId, $this->approverId], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); + return str_replace(['{signatureRequestId}', '{approverId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->approverId)], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php index 0953fff..8b6fc76 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -25,7 +27,7 @@ class DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId e use EndpointTrait; /** - * Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft. + * Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{consentRequestId}'], [$this->signatureRequestId, $this->consentRequestId], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}'); + return str_replace(['{signatureRequestId}', '{consentRequestId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->consentRequestId)], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php index 896813d..dcab74f 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -25,7 +27,7 @@ class DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSi use EndpointTrait; /** - * Remove a Signer from a given Signer Consent Request. This action is only permitted when the Signature Request is a draft. + * Remove a Signer from a given Signer Consent Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{consentRequestId}', '{signerId}'], [$this->signatureRequestId, $this->consentRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{consentRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->consentRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId.php index 732c968..029d497 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -25,7 +27,7 @@ class DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId use EndpointTrait; /** - * Delete a Signer Document Request from signature request. This action is only permitted when the Signature Request is a draft. + * Delete a Signer Document Request from signature request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentRequestId}'], [$this->signatureRequestId, $this->documentRequestId], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}'); + return str_replace(['{signatureRequestId}', '{documentRequestId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentRequestId)], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php index b642274..8797a40 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -25,7 +27,7 @@ class DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId use EndpointTrait; /** - * Remove a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft. + * Remove a Signer from a given Signer Document Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentRequestId}', '{signerId}'], [$this->signatureRequestId, $this->documentRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{documentRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentId.php index c9a0281..30c0470 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php index 0b50d4f..e934010 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}', '{fieldId}'], [$this->signatureRequestId, $this->documentId, $this->fieldId], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields/{fieldId}'); + return str_replace(['{signatureRequestId}', '{documentId}', '{fieldId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId), rawurlencode($this->fieldId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields/{fieldId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdMetadata.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdMetadata.php index 2c7ef24..ad125f3 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdMetadata.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdMetadata.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -38,7 +40,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/metadata'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/metadata'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -55,6 +57,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ @@ -65,19 +68,22 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdMetadataUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdMetadataForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdMetadataNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerId.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerId.php index 26f6d4d..ab05c26 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerId.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php index 0548a99..49cb094 100644 --- a/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php +++ b/generated/Endpoint/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException + * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException * @throws DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteUsersUserId.php b/generated/Endpoint/DeleteUsersUserId.php index c1a1423..dc39ac1 100644 --- a/generated/Endpoint/DeleteUsersUserId.php +++ b/generated/Endpoint/DeleteUsersUserId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteUsersUserIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{userId}'], [$this->userId], '/users/{userId}'); + return str_replace(['{userId}'], [rawurlencode($this->userId)], '/users/{userId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws DeleteUsersUserIdUnauthorizedException * @throws DeleteUsersUserIdForbiddenException * @throws DeleteUsersUserIdNotFoundException + * @throws DeleteUsersUserIdMethodNotAllowedException * @throws DeleteUsersUserIdTooManyRequestsException * @throws DeleteUsersUserIdInternalServerErrorException */ @@ -68,22 +71,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteUsersUserIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteUsersUserIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteWebhooksWebhookId.php b/generated/Endpoint/DeleteWebhooksWebhookId.php index fdd4e74..30705ca 100644 --- a/generated/Endpoint/DeleteWebhooksWebhookId.php +++ b/generated/Endpoint/DeleteWebhooksWebhookId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteWebhooksWebhookIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{webhookId}'], [$this->webhookId], '/webhooks/{webhookId}'); + return str_replace(['{webhookId}'], [rawurlencode($this->webhookId)], '/webhooks/{webhookId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws DeleteWebhooksWebhookIdUnauthorizedException * @throws DeleteWebhooksWebhookIdForbiddenException * @throws DeleteWebhooksWebhookIdNotFoundException + * @throws DeleteWebhooksWebhookIdMethodNotAllowedException * @throws DeleteWebhooksWebhookIdTooManyRequestsException * @throws DeleteWebhooksWebhookIdInternalServerErrorException */ @@ -68,22 +71,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteWebhooksWebhookIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWebhooksWebhookIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteWorkspace.php b/generated/Endpoint/DeleteWorkspace.php index 7fa023f..84c2960 100644 --- a/generated/Endpoint/DeleteWorkspace.php +++ b/generated/Endpoint/DeleteWorkspace.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -20,6 +22,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class DeleteWorkspace extends BaseEndpoint implements Endpoint @@ -43,13 +46,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{workspaceId}'], [$this->workspaceId], '/workspaces/{workspaceId}'); + return str_replace(['{workspaceId}'], [rawurlencode($this->workspaceId)], '/workspaces/{workspaceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Qdequippe\Yousign\Api\Model\DeleteWorkspace) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -65,6 +68,7 @@ public function getExtraHeaders(): array * @throws DeleteWorkspaceUnauthorizedException * @throws DeleteWorkspaceForbiddenException * @throws DeleteWorkspaceNotFoundException + * @throws DeleteWorkspaceMethodNotAllowedException * @throws DeleteWorkspaceUnsupportedMediaTypeException * @throws DeleteWorkspaceTooManyRequestsException * @throws DeleteWorkspaceInternalServerErrorException @@ -76,25 +80,28 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteWorkspaceMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DeleteWorkspaceWorkspaceIdUsersUserId.php b/generated/Endpoint/DeleteWorkspaceWorkspaceIdUsersUserId.php index 864df67..a378c06 100644 --- a/generated/Endpoint/DeleteWorkspaceWorkspaceIdUsersUserId.php +++ b/generated/Endpoint/DeleteWorkspaceWorkspaceIdUsersUserId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdBadRequestException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{workspaceId}', '{userId}'], [$this->workspaceId, $this->userId], '/workspaces/{workspaceId}/users/{userId}'); + return str_replace(['{workspaceId}', '{userId}'], [rawurlencode($this->workspaceId), rawurlencode($this->userId)], '/workspaces/{workspaceId}/users/{userId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException * @throws DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException * @throws DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException + * @throws DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException * @throws DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException * @throws DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DeleteWorkspaceWorkspaceIdUsersUserIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/DownloadElectronicSealAuditTrail.php b/generated/Endpoint/DownloadElectronicSealAuditTrail.php index 0fad2db..43fd282 100644 --- a/generated/Endpoint/DownloadElectronicSealAuditTrail.php +++ b/generated/Endpoint/DownloadElectronicSealAuditTrail.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailBadRequestException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailForbiddenException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailNotFoundException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealAuditTrailUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealId}'], [$this->electronicSealId], '/electronic_seals/{electronicSealId}/audit_trails/download'); + return str_replace(['{electronicSealId}'], [rawurlencode($this->electronicSealId)], '/electronic_seals/{electronicSealId}/audit_trails/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -63,29 +65,33 @@ public function getExtraHeaders(): array * @throws DownloadElectronicSealAuditTrailUnauthorizedException * @throws DownloadElectronicSealAuditTrailForbiddenException * @throws DownloadElectronicSealAuditTrailNotFoundException + * @throws DownloadElectronicSealAuditTrailMethodNotAllowedException * @throws DownloadElectronicSealAuditTrailTooManyRequestsException * @throws DownloadElectronicSealAuditTrailInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealAuditTrailMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealAuditTrailInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/DownloadElectronicSealDocument.php b/generated/Endpoint/DownloadElectronicSealDocument.php index fe18729..c10327f 100644 --- a/generated/Endpoint/DownloadElectronicSealDocument.php +++ b/generated/Endpoint/DownloadElectronicSealDocument.php @@ -3,11 +3,15 @@ namespace Qdequippe\Yousign\Api\Endpoint; use Psr\Http\Message\ResponseInterface; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentForbiddenException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentNotFoundException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealDocumentUnauthorizedException; +use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -23,7 +27,7 @@ class DownloadElectronicSealDocument extends BaseEndpoint implements Endpoint /** * Download a given Electronic Seal Document. * - * @param string $electronicSealDocumentId Electronic Seal Id + * @param string $electronicSealDocumentId Electronic Seal Document Id * @param array $accept Accept content header application/pdf|application/json */ public function __construct(protected string $electronicSealDocumentId, protected array $accept = []) @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealDocumentId}'], [$this->electronicSealDocumentId], '/electronic_seal_documents/{electronicSealDocumentId}/download'); + return str_replace(['{electronicSealDocumentId}'], [rawurlencode($this->electronicSealDocumentId)], '/electronic_seal_documents/{electronicSealDocumentId}/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -56,24 +60,32 @@ public function getExtraHeaders(): array /** * @throws DownloadElectronicSealDocumentUnauthorizedException + * @throws DownloadElectronicSealDocumentForbiddenException * @throws DownloadElectronicSealDocumentNotFoundException + * @throws DownloadElectronicSealDocumentMethodNotAllowedException * @throws DownloadElectronicSealDocumentTooManyRequestsException * @throws DownloadElectronicSealDocumentInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealDocumentUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealDocumentForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealDocumentNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealDocumentMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealDocumentTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealDocumentInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/DownloadElectronicSealImage.php b/generated/Endpoint/DownloadElectronicSealImage.php index bfcb01f..f67f5cb 100644 --- a/generated/Endpoint/DownloadElectronicSealImage.php +++ b/generated/Endpoint/DownloadElectronicSealImage.php @@ -3,11 +3,17 @@ namespace Qdequippe\Yousign\Api\Endpoint; use Psr\Http\Message\ResponseInterface; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageBadRequestException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageForbiddenException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageNotFoundException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\DownloadElectronicSealImageUnauthorizedException; +use Qdequippe\Yousign\Api\Model\BadRequestResponse; +use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -37,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealImageId}'], [$this->electronicSealImageId], '/electronic_seal_images/{electronicSealImageId}/download'); + return str_replace(['{electronicSealImageId}'], [rawurlencode($this->electronicSealImageId)], '/electronic_seal_images/{electronicSealImageId}/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -55,25 +61,37 @@ public function getExtraHeaders(): array } /** + * @throws DownloadElectronicSealImageBadRequestException * @throws DownloadElectronicSealImageUnauthorizedException + * @throws DownloadElectronicSealImageForbiddenException * @throws DownloadElectronicSealImageNotFoundException + * @throws DownloadElectronicSealImageMethodNotAllowedException * @throws DownloadElectronicSealImageTooManyRequestsException * @throws DownloadElectronicSealImageInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealImageBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealImageUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealImageForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealImageNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new DownloadElectronicSealImageMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealImageTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new DownloadElectronicSealImageInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetArchivesArchivedFileIdDownload.php b/generated/Endpoint/GetArchivesArchivedFileIdDownload.php index 2ded6a4..5ec71da 100644 --- a/generated/Endpoint/GetArchivesArchivedFileIdDownload.php +++ b/generated/Endpoint/GetArchivesArchivedFileIdDownload.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadBadRequestException; use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadForbiddenException; use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadNotFoundException; use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetArchivesArchivedFileIdDownloadUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{archivedFileId}'], [$this->archivedFileId], '/archives/{archivedFileId}/download'); + return str_replace(['{archivedFileId}'], [rawurlencode($this->archivedFileId)], '/archives/{archivedFileId}/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -63,29 +65,33 @@ public function getExtraHeaders(): array * @throws GetArchivesArchivedFileIdDownloadUnauthorizedException * @throws GetArchivesArchivedFileIdDownloadForbiddenException * @throws GetArchivesArchivedFileIdDownloadNotFoundException + * @throws GetArchivesArchivedFileIdDownloadMethodNotAllowedException * @throws GetArchivesArchivedFileIdDownloadTooManyRequestsException * @throws GetArchivesArchivedFileIdDownloadInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetArchivesArchivedFileIdDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetArchivesArchivedFileIdDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetBankAccountVerificationsBankAccountVerificationId.php b/generated/Endpoint/GetBankAccountVerificationsBankAccountVerificationId.php deleted file mode 100644 index 9db4579..0000000 --- a/generated/Endpoint/GetBankAccountVerificationsBankAccountVerificationId.php +++ /dev/null @@ -1,100 +0,0 @@ -bankAccountVerificationId], '/bank_account_verifications/{bankAccountVerificationId}'); - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return BankAccountVerification|null - * - * @throws GetBankAccountVerificationsBankAccountVerificationIdBadRequestException - * @throws GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException - * @throws GetBankAccountVerificationsBankAccountVerificationIdForbiddenException - * @throws GetBankAccountVerificationsBankAccountVerificationIdNotFoundException - * @throws GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException - * @throws GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, BankAccountVerification::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/GetConsumptionAddon.php b/generated/Endpoint/GetConsumptionAddon.php index cf14cf3..bd529e9 100644 --- a/generated/Endpoint/GetConsumptionAddon.php +++ b/generated/Endpoint/GetConsumptionAddon.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonBadRequestException; use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonForbiddenException; use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonNotFoundException; use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetConsumptionAddonUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetConsumptionAddon200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -29,10 +31,9 @@ class GetConsumptionAddon extends BaseEndpoint implements Endpoint /** * Retrieves detailed addon consumption for the current subscription period. * - * @param array $queryParameters { - * - * @var array $addons A list of add-ons to filter the results on. - * } + * @param array{ + * "addons"?: array, //A list of add-ons to filter the results on. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -70,6 +71,11 @@ protected function getQueryOptionsResolver(): OptionsResolver return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['addons' => ['style' => 'form', 'explode' => true]]; + } + /** * @return GetConsumptionAddon200Response|null * @@ -77,6 +83,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetConsumptionAddonUnauthorizedException * @throws GetConsumptionAddonForbiddenException * @throws GetConsumptionAddonNotFoundException + * @throws GetConsumptionAddonMethodNotAllowedException * @throws GetConsumptionAddonTooManyRequestsException * @throws GetConsumptionAddonInternalServerErrorException */ @@ -84,29 +91,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetConsumptionAddon200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionAddonMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionAddonInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetConsumptionDetail.php b/generated/Endpoint/GetConsumptionDetail.php index 4575847..1fcec70 100644 --- a/generated/Endpoint/GetConsumptionDetail.php +++ b/generated/Endpoint/GetConsumptionDetail.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailBadRequestException; use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailForbiddenException; use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetConsumptionDetailUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetConsumptionDetail200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -27,15 +29,14 @@ class GetConsumptionDetail extends BaseEndpoint implements Endpoint /** * Returns the consumption of your organization over a specified period. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $from the starting date for data retrieval - * @var string $to The end date for data retrieval. The `to` date must be later than the `from` date and within one year of the `from` date. - * @var string $breakdown_type Specifies how data is grouped. By default, it returns the total consumption for the entire organization. If set to `workspace`, the data will be grouped by Workspace. - * @var array $workspace_ids A list of Workspace IDs to filter the results. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "from": string, //The starting date for data retrieval. + * "to": string, //The end date for data retrieval. The `to` date must be later than the `from` date and within one year of the `from` date. + * "breakdown_type"?: string, //Specifies how data is grouped. By default, it returns the total consumption for the entire organization. If set to `workspace`, the data will be grouped by Workspace. + * "workspace_ids"?: array, //A list of Workspace IDs to filter the results. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -78,12 +79,18 @@ protected function getQueryOptionsResolver(): OptionsResolver return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['workspace_ids' => ['style' => 'form', 'explode' => true]]; + } + /** * @return GetConsumptionDetail200Response|null * * @throws GetConsumptionDetailBadRequestException * @throws GetConsumptionDetailUnauthorizedException * @throws GetConsumptionDetailForbiddenException + * @throws GetConsumptionDetailMethodNotAllowedException * @throws GetConsumptionDetailTooManyRequestsException * @throws GetConsumptionDetailInternalServerErrorException */ @@ -91,26 +98,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetConsumptionDetail200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionDetailBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionDetailUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionDetailForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionDetailMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionDetailTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionDetailInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetConsumptions.php b/generated/Endpoint/GetConsumptions.php index b6f8e09..7c47c13 100644 --- a/generated/Endpoint/GetConsumptions.php +++ b/generated/Endpoint/GetConsumptions.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetConsumptionsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\Consumption; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -29,12 +31,11 @@ class GetConsumptions extends BaseEndpoint implements Endpoint /** * Get signatures Consumption by source. * - * @param array $queryParameters { - * - * @var string $from The "from" date must not be more than 1 year in the past - * @var string $to The "to" date must be more recent than the "from" date - * @var string $authentication_key The API authentication key to use to retrieve the data - * } + * @param array{ + * "from": string, //The "from" date must not be more than 1 year in the past + * "to": string, //The "to" date must be more recent than the "from" date + * "authentication_key"?: string, //The API authentication key to use to retrieve the data + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -81,6 +82,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetConsumptionsUnauthorizedException * @throws GetConsumptionsForbiddenException * @throws GetConsumptionsNotFoundException + * @throws GetConsumptionsMethodNotAllowedException * @throws GetConsumptionsTooManyRequestsException * @throws GetConsumptionsInternalServerErrorException */ @@ -88,29 +90,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Consumption::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetConsumptionsExport.php b/generated/Endpoint/GetConsumptionsExport.php index 0b97f77..1037d58 100644 --- a/generated/Endpoint/GetConsumptionsExport.php +++ b/generated/Endpoint/GetConsumptionsExport.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportBadRequestException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportForbiddenException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportNotFoundException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetConsumptionsExportUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -28,13 +30,11 @@ class GetConsumptionsExport extends BaseEndpoint implements Endpoint /** * Get a binary .csv file containing all the Consumption data of the underlying signatures. * - * @param array $queryParameters { - * - * @var string $from The "from" date must not be more than 1 year in the past - * @var string $to The "to" date must be more recent than the "from" date - * @var string $authentication_key The API authentication key to use to retrieve the data - * } - * + * @param array{ + * "from": string, //The "from" date must not be more than 1 year in the past + * "to": string, //The "to" date must be more recent than the "from" date + * "authentication_key"?: string, //The API authentication key to use to retrieve the data + * } $queryParameters * @param array $accept Accept content header text/csv|application/json */ public function __construct(array $queryParameters = [], protected array $accept = []) @@ -84,29 +84,33 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetConsumptionsExportUnauthorizedException * @throws GetConsumptionsExportForbiddenException * @throws GetConsumptionsExportNotFoundException + * @throws GetConsumptionsExportMethodNotAllowedException * @throws GetConsumptionsExportTooManyRequestsException * @throws GetConsumptionsExportInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsExportMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetConsumptionsExportInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetConsumptionsRecordsElectronicSeals.php b/generated/Endpoint/GetConsumptionsRecordsElectronicSeals.php new file mode 100644 index 0000000..64f9bb0 --- /dev/null +++ b/generated/Endpoint/GetConsumptionsRecordsElectronicSeals.php @@ -0,0 +1,132 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/consumptions/records/electronic_seals'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'created_at']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('created_at', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['created_at' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetConsumptionsRecordsElectronicSeals200Response|null + * + * @throws GetConsumptionsRecordsElectronicSealsBadRequestException + * @throws GetConsumptionsRecordsElectronicSealsUnauthorizedException + * @throws GetConsumptionsRecordsElectronicSealsForbiddenException + * @throws GetConsumptionsRecordsElectronicSealsNotFoundException + * @throws GetConsumptionsRecordsElectronicSealsMethodNotAllowedException + * @throws GetConsumptionsRecordsElectronicSealsTooManyRequestsException + * @throws GetConsumptionsRecordsElectronicSealsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetConsumptionsRecordsElectronicSeals200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsElectronicSealsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetConsumptionsRecordsIdentifications.php b/generated/Endpoint/GetConsumptionsRecordsIdentifications.php new file mode 100644 index 0000000..66955bb --- /dev/null +++ b/generated/Endpoint/GetConsumptionsRecordsIdentifications.php @@ -0,0 +1,132 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/consumptions/records/identifications'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'created_at']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('created_at', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['created_at' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetConsumptionsRecordsIdentifications200Response|null + * + * @throws GetConsumptionsRecordsIdentificationsBadRequestException + * @throws GetConsumptionsRecordsIdentificationsUnauthorizedException + * @throws GetConsumptionsRecordsIdentificationsForbiddenException + * @throws GetConsumptionsRecordsIdentificationsNotFoundException + * @throws GetConsumptionsRecordsIdentificationsMethodNotAllowedException + * @throws GetConsumptionsRecordsIdentificationsTooManyRequestsException + * @throws GetConsumptionsRecordsIdentificationsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetConsumptionsRecordsIdentifications200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsIdentificationsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetConsumptionsRecordsInvitedSigners.php b/generated/Endpoint/GetConsumptionsRecordsInvitedSigners.php new file mode 100644 index 0000000..e16aa36 --- /dev/null +++ b/generated/Endpoint/GetConsumptionsRecordsInvitedSigners.php @@ -0,0 +1,132 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/consumptions/records/invited_signers'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'created_at']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('created_at', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['created_at' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetConsumptionsRecordsInvitedSigners200Response|null + * + * @throws GetConsumptionsRecordsInvitedSignersBadRequestException + * @throws GetConsumptionsRecordsInvitedSignersUnauthorizedException + * @throws GetConsumptionsRecordsInvitedSignersForbiddenException + * @throws GetConsumptionsRecordsInvitedSignersNotFoundException + * @throws GetConsumptionsRecordsInvitedSignersMethodNotAllowedException + * @throws GetConsumptionsRecordsInvitedSignersTooManyRequestsException + * @throws GetConsumptionsRecordsInvitedSignersInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetConsumptionsRecordsInvitedSigners200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetConsumptionsRecordsInvitedSignersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetContacts.php b/generated/Endpoint/GetContacts.php index 7f788c7..7f8f51b 100644 --- a/generated/Endpoint/GetContacts.php +++ b/generated/Endpoint/GetContacts.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetContactsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetContactsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetContactsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetContactsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetContactsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetContactsUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetContacts200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -27,11 +29,10 @@ class GetContacts extends BaseEndpoint implements Endpoint /** * Returns the list of all the Contacts within your organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -76,6 +77,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetContactsBadRequestException * @throws GetContactsUnauthorizedException * @throws GetContactsForbiddenException + * @throws GetContactsMethodNotAllowedException * @throws GetContactsTooManyRequestsException * @throws GetContactsInternalServerErrorException */ @@ -83,26 +85,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetContacts200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetContactsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetContactsContactId.php b/generated/Endpoint/GetContactsContactId.php index 1c062e1..e000db3 100644 --- a/generated/Endpoint/GetContactsContactId.php +++ b/generated/Endpoint/GetContactsContactId.php @@ -3,12 +3,16 @@ namespace Qdequippe\Yousign\Api\Endpoint; use Psr\Http\Message\ResponseInterface; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetContactsContactIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetContactsContactIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetContactsContactIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetContactsContactIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\Contact; +use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{contactId}'], [$this->contactId], '/contacts/{contactId}'); + return str_replace(['{contactId}'], [rawurlencode($this->contactId)], '/contacts/{contactId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -54,7 +58,9 @@ public function getExtraHeaders(): array * @return Contact|null * * @throws GetContactsContactIdUnauthorizedException + * @throws GetContactsContactIdForbiddenException * @throws GetContactsContactIdNotFoundException + * @throws GetContactsContactIdMethodNotAllowedException * @throws GetContactsContactIdTooManyRequestsException * @throws GetContactsContactIdInternalServerErrorException */ @@ -62,23 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Contact::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsContactIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetContactsContactIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsContactIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetContactsContactIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsContactIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetContactsContactIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetCustomExperiences.php b/generated/Endpoint/GetCustomExperiences.php index 171ec5f..c2ca742 100644 --- a/generated/Endpoint/GetCustomExperiences.php +++ b/generated/Endpoint/GetCustomExperiences.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesBadRequestException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesForbiddenException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetCustomExperiences200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -28,11 +30,10 @@ class GetCustomExperiences extends BaseEndpoint implements Endpoint * Returns the list of all Custom Experiences in your Organization. * You can limit the number of items returned by using pagination. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -77,6 +78,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetCustomExperiencesBadRequestException * @throws GetCustomExperiencesUnauthorizedException * @throws GetCustomExperiencesForbiddenException + * @throws GetCustomExperiencesMethodNotAllowedException * @throws GetCustomExperiencesTooManyRequestsException * @throws GetCustomExperiencesInternalServerErrorException */ @@ -84,26 +86,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetCustomExperiences200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomExperiencesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetCustomExperiencesCustomExperienceId.php b/generated/Endpoint/GetCustomExperiencesCustomExperienceId.php index 022f676..c71fb5c 100644 --- a/generated/Endpoint/GetCustomExperiencesCustomExperienceId.php +++ b/generated/Endpoint/GetCustomExperiencesCustomExperienceId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetCustomExperiencesCustomExperienceIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\CustomExperience; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{customExperienceId}'], [$this->customExperienceId], '/custom_experiences/{customExperienceId}'); + return str_replace(['{customExperienceId}'], [rawurlencode($this->customExperienceId)], '/custom_experiences/{customExperienceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -61,6 +63,7 @@ public function getExtraHeaders(): array * @throws GetCustomExperiencesCustomExperienceIdUnauthorizedException * @throws GetCustomExperiencesCustomExperienceIdForbiddenException * @throws GetCustomExperiencesCustomExperienceIdNotFoundException + * @throws GetCustomExperiencesCustomExperienceIdMethodNotAllowedException * @throws GetCustomExperiencesCustomExperienceIdTooManyRequestsException * @throws GetCustomExperiencesCustomExperienceIdInternalServerErrorException */ @@ -68,29 +71,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, CustomExperience::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomExperiencesCustomExperienceIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetCustomExperiencesCustomExperienceIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetCustomProperties.php b/generated/Endpoint/GetCustomProperties.php new file mode 100644 index 0000000..bb88858 --- /dev/null +++ b/generated/Endpoint/GetCustomProperties.php @@ -0,0 +1,122 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/custom_properties'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['workspace_id', 'type', 'limit', 'after']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('workspace_id', ['string']); + $optionsResolver->addAllowedTypes('type', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('after', ['string']); + + return $optionsResolver; + } + + /** + * @return CustomPropertyList|null + * + * @throws GetCustomPropertiesBadRequestException + * @throws GetCustomPropertiesUnauthorizedException + * @throws GetCustomPropertiesForbiddenException + * @throws GetCustomPropertiesMethodNotAllowedException + * @throws GetCustomPropertiesTooManyRequestsException + * @throws GetCustomPropertiesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CustomPropertyList::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetCustomPropertiesId.php b/generated/Endpoint/GetCustomPropertiesId.php new file mode 100644 index 0000000..9933f58 --- /dev/null +++ b/generated/Endpoint/GetCustomPropertiesId.php @@ -0,0 +1,105 @@ +customPropertyId)], '/custom_properties/{customPropertyId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return CustomProperty|null + * + * @throws GetCustomPropertiesIdBadRequestException + * @throws GetCustomPropertiesIdUnauthorizedException + * @throws GetCustomPropertiesIdForbiddenException + * @throws GetCustomPropertiesIdNotFoundException + * @throws GetCustomPropertiesIdMethodNotAllowedException + * @throws GetCustomPropertiesIdTooManyRequestsException + * @throws GetCustomPropertiesIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CustomProperty::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetCustomPropertiesIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetDocumentAnalyses.php b/generated/Endpoint/GetDocumentAnalyses.php new file mode 100644 index 0000000..a72a9e2 --- /dev/null +++ b/generated/Endpoint/GetDocumentAnalyses.php @@ -0,0 +1,140 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/document_analyses'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'type', 'workspace_id', 'workflow_session_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('type', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + $optionsResolver->addAllowedTypes('workflow_session_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'type' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true], 'workflow_session_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetDocumentAnalyses200Response|null + * + * @throws GetDocumentAnalysesBadRequestException + * @throws GetDocumentAnalysesUnauthorizedException + * @throws GetDocumentAnalysesForbiddenException + * @throws GetDocumentAnalysesMethodNotAllowedException + * @throws GetDocumentAnalysesTooManyRequestsException + * @throws GetDocumentAnalysesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetDocumentAnalyses200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetDocumentAnalysesId.php b/generated/Endpoint/GetDocumentAnalysesId.php new file mode 100644 index 0000000..12c7823 --- /dev/null +++ b/generated/Endpoint/GetDocumentAnalysesId.php @@ -0,0 +1,112 @@ +documentAnalysisId)], '/document_analyses/{documentAnalysisId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws GetDocumentAnalysesIdBadRequestException + * @throws GetDocumentAnalysesIdUnauthorizedException + * @throws GetDocumentAnalysesIdForbiddenException + * @throws GetDocumentAnalysesIdNotFoundException + * @throws GetDocumentAnalysesIdMethodNotAllowedException + * @throws GetDocumentAnalysesIdTooManyRequestsException + * @throws GetDocumentAnalysesIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetDocumentAnalysesIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetElectronicSeal.php b/generated/Endpoint/GetElectronicSeal.php index 4734306..5d4c7cd 100644 --- a/generated/Endpoint/GetElectronicSeal.php +++ b/generated/Endpoint/GetElectronicSeal.php @@ -3,12 +3,16 @@ namespace Qdequippe\Yousign\Api\Endpoint; use Psr\Http\Message\ResponseInterface; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealForbiddenException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealNotFoundException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealUnauthorizedException; use Qdequippe\Yousign\Api\Model\ElectronicSeal; +use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealId}'], [$this->electronicSealId], '/electronic_seals/{electronicSealId}'); + return str_replace(['{electronicSealId}'], [rawurlencode($this->electronicSealId)], '/electronic_seals/{electronicSealId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -54,7 +58,9 @@ public function getExtraHeaders(): array * @return ElectronicSeal|null * * @throws GetElectronicSealUnauthorizedException + * @throws GetElectronicSealForbiddenException * @throws GetElectronicSealNotFoundException + * @throws GetElectronicSealMethodNotAllowedException * @throws GetElectronicSealTooManyRequestsException * @throws GetElectronicSealInternalServerErrorException */ @@ -62,23 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ElectronicSeal::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetElectronicSealForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetElectronicSealMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetElectronicSealAuditTrail.php b/generated/Endpoint/GetElectronicSealAuditTrail.php index 26038dc..6b9a4d2 100644 --- a/generated/Endpoint/GetElectronicSealAuditTrail.php +++ b/generated/Endpoint/GetElectronicSealAuditTrail.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailBadRequestException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailForbiddenException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailNotFoundException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetElectronicSealAuditTrailUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\ElectronicSealAuditTrail; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{electronicSealId}'], [$this->electronicSealId], '/electronic_seals/{electronicSealId}/audit_trails'); + return str_replace(['{electronicSealId}'], [rawurlencode($this->electronicSealId)], '/electronic_seals/{electronicSealId}/audit_trails'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -61,6 +63,7 @@ public function getExtraHeaders(): array * @throws GetElectronicSealAuditTrailUnauthorizedException * @throws GetElectronicSealAuditTrailForbiddenException * @throws GetElectronicSealAuditTrailNotFoundException + * @throws GetElectronicSealAuditTrailMethodNotAllowedException * @throws GetElectronicSealAuditTrailTooManyRequestsException * @throws GetElectronicSealAuditTrailInternalServerErrorException */ @@ -68,29 +71,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ElectronicSealAuditTrail::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetElectronicSealAuditTrailMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetElectronicSealAuditTrailInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetIdDocumentVerification.php b/generated/Endpoint/GetIdDocumentVerification.php deleted file mode 100644 index 16c76c3..0000000 --- a/generated/Endpoint/GetIdDocumentVerification.php +++ /dev/null @@ -1,100 +0,0 @@ -idDocumentVerificationId], '/id_document_verifications/{idDocumentVerificationId}'); - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return IdDocumentVerification|null - * - * @throws GetIdDocumentVerificationBadRequestException - * @throws GetIdDocumentVerificationUnauthorizedException - * @throws GetIdDocumentVerificationForbiddenException - * @throws GetIdDocumentVerificationNotFoundException - * @throws GetIdDocumentVerificationTooManyRequestsException - * @throws GetIdDocumentVerificationInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, IdDocumentVerification::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdDocumentVerificationInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/GetIdentityVerificationsIdentityVerificationId.php b/generated/Endpoint/GetIdentityVerificationsIdentityVerificationId.php deleted file mode 100644 index 93c3c2f..0000000 --- a/generated/Endpoint/GetIdentityVerificationsIdentityVerificationId.php +++ /dev/null @@ -1,100 +0,0 @@ -identityVerificationId], '/video_identity_verifications/{identityVerificationId}'); - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return VideoIdentityVerification|null - * - * @throws GetIdentityVerificationsIdentityVerificationIdBadRequestException - * @throws GetIdentityVerificationsIdentityVerificationIdUnauthorizedException - * @throws GetIdentityVerificationsIdentityVerificationIdForbiddenException - * @throws GetIdentityVerificationsIdentityVerificationIdNotFoundException - * @throws GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException - * @throws GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, VideoIdentityVerification::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/GetInvitations.php b/generated/Endpoint/GetInvitations.php index 1e8b671..925eda4 100644 --- a/generated/Endpoint/GetInvitations.php +++ b/generated/Endpoint/GetInvitations.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetInvitationsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetInvitationsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetInvitationsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetInvitationsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetInvitationsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetInvitationsUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetInvitations200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -27,12 +29,12 @@ class GetInvitations extends BaseEndpoint implements Endpoint /** * Returns the list of all the Users Invitations within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $email A given e-mail address to filter on. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "email"?: array, //Filter by `email`. Allowed operators: `eq`. + * Example: `email[eq]=user@example.com` + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -67,17 +69,23 @@ protected function getQueryOptionsResolver(): OptionsResolver $optionsResolver->setDefaults(['limit' => 100]); $optionsResolver->addAllowedTypes('after', ['string']); $optionsResolver->addAllowedTypes('limit', ['int']); - $optionsResolver->addAllowedTypes('email', ['string', 'null']); + $optionsResolver->addAllowedTypes('email', ['array']); return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['email' => ['style' => 'deepObject', 'explode' => true]]; + } + /** * @return GetInvitations200Response|null * * @throws GetInvitationsBadRequestException * @throws GetInvitationsUnauthorizedException * @throws GetInvitationsForbiddenException + * @throws GetInvitationsMethodNotAllowedException * @throws GetInvitationsTooManyRequestsException * @throws GetInvitationsInternalServerErrorException */ @@ -85,26 +93,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetInvitations200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetInvitationsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetInvitationsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetInvitationsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetInvitationsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetInvitationsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetInvitationsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetLabels.php b/generated/Endpoint/GetLabels.php new file mode 100644 index 0000000..e87e790 --- /dev/null +++ b/generated/Endpoint/GetLabels.php @@ -0,0 +1,117 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/labels'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'name']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('name', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['name' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetLabels200Response|null + * + * @throws GetLabelsBadRequestException + * @throws GetLabelsUnauthorizedException + * @throws GetLabelsMethodNotAllowedException + * @throws GetLabelsTooManyRequestsException + * @throws GetLabelsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetLabels200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetLabelsId.php b/generated/Endpoint/GetLabelsId.php new file mode 100644 index 0000000..5f31667 --- /dev/null +++ b/generated/Endpoint/GetLabelsId.php @@ -0,0 +1,104 @@ +labelId)], '/labels/{labelId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return Label|null + * + * @throws GetLabelsIdBadRequestException + * @throws GetLabelsIdUnauthorizedException + * @throws GetLabelsIdForbiddenException + * @throws GetLabelsIdNotFoundException + * @throws GetLabelsIdMethodNotAllowedException + * @throws GetLabelsIdTooManyRequestsException + * @throws GetLabelsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, Label::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetLabelsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetMonitoringsNaturalPersons.php b/generated/Endpoint/GetMonitoringsNaturalPersons.php new file mode 100644 index 0000000..24b1ccf --- /dev/null +++ b/generated/Endpoint/GetMonitoringsNaturalPersons.php @@ -0,0 +1,128 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/monitorings/natural_persons'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetMonitoringsNaturalPersons200Response|null + * + * @throws GetMonitoringsNaturalPersonsBadRequestException + * @throws GetMonitoringsNaturalPersonsUnauthorizedException + * @throws GetMonitoringsNaturalPersonsForbiddenException + * @throws GetMonitoringsNaturalPersonsMethodNotAllowedException + * @throws GetMonitoringsNaturalPersonsTooManyRequestsException + * @throws GetMonitoringsNaturalPersonsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetMonitoringsNaturalPersons200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetMonitoringsNaturalPersonsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetSignatureRequests.php b/generated/Endpoint/GetSignatureRequests.php index dc81d19..c6e5c5a 100644 --- a/generated/Endpoint/GetSignatureRequests.php +++ b/generated/Endpoint/GetSignatureRequests.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequests200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -25,17 +27,42 @@ class GetSignatureRequests extends BaseEndpoint implements Endpoint use EndpointTrait; /** - * Returns the list of all Signatures Requests in your organization. You can limit the number of items returned by using filters and pagination. + * Returns the list of all Signatures Requests in your organization. You can limit the number of items returned by using filters and pagination. Consult our guide for more details and examples. * - * @param array $queryParameters { - * - * @var string $status Filter by status - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $external_id Filter by external_id - * @var array $source[] Filter by source - * @var string $q Search on name - * } + * @param array{ + * "after"?: string, //Cursor for pagination; pass the `meta.next_cursor` value from the previous response to fetch the next page. + * "limit"?: int, //The limit of items count to retrieve. + * "status"?: array, //Filter by `status`. Allowed operators: `eq`, `in`. + * Example: `status[in]=draft,done` + * "created_at"?: array, //Filter by `created_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `created_at[between]=2025-03-02,2025-03-04` + * "activated_at"?: array, //Filter by `activated_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `activated_at[after]=2025-03-01` + * "completed_at"?: array, //Filter by `completed_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `completed_at[between]=2025-03-01,2025-03-31` + * "approved_at"?: array, //Filter by `approved_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `approved_at[after]=2025-03-01` + * "rejected_at"?: array, //Filter by `rejected_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `rejected_at[before]=2025-04-01` + * "declined_at"?: array, //Filter by `declined_at`. Allowed operators: `eq`, `between`, `before`, `after`. + * Format: the date format required is `yyyy-mm-dd` + * Example: `declined_at[after]=2025-01-01` + * "workspace_id"?: array, //Filter by `workspace_id`. Allowed operators: `eq`. + * Example: `workspace_id[eq]=9b6ed2f3-244f-487a-baa1-bbe4f51c8748` + * "external_id"?: array, //Filter by `external_id`. Allowed operators: `eq`. + * Example: `external_id[eq]=an-external-id` + * "source"?: array, //Filter by `source`. Allowed operators: `eq`, `in`. + * Default value: `source[eq]=public_api`. If not specified, only Signature Requests created via the Public API are returned. + * Example: `source[in]=public_api,app` + * "q"?: string, //Free-text search on the Signature Request name. + * "label.name"?: array, //Case-sensitive filter by Label name. Allowed operators: `eq`, `in`. + * Example: `label.name[in]=To Sign,Miscellaneous` + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -65,25 +92,39 @@ public function getExtraHeaders(): array protected function getQueryOptionsResolver(): OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['status', 'after', 'limit', 'external_id', 'source', 'q']); + $optionsResolver->setDefined(['after', 'limit', 'status', 'created_at', 'activated_at', 'completed_at', 'approved_at', 'rejected_at', 'declined_at', 'workspace_id', 'external_id', 'source', 'q', 'label.name']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['limit' => 100]); - $optionsResolver->addAllowedTypes('status', ['string']); $optionsResolver->addAllowedTypes('after', ['string']); $optionsResolver->addAllowedTypes('limit', ['int']); - $optionsResolver->addAllowedTypes('external_id', ['string']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('created_at', ['array']); + $optionsResolver->addAllowedTypes('activated_at', ['array']); + $optionsResolver->addAllowedTypes('completed_at', ['array']); + $optionsResolver->addAllowedTypes('approved_at', ['array']); + $optionsResolver->addAllowedTypes('rejected_at', ['array']); + $optionsResolver->addAllowedTypes('declined_at', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + $optionsResolver->addAllowedTypes('external_id', ['array']); $optionsResolver->addAllowedTypes('source', ['array']); $optionsResolver->addAllowedTypes('q', ['string']); + $optionsResolver->addAllowedTypes('label.name', ['array']); return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'created_at' => ['style' => 'deepObject', 'explode' => true], 'activated_at' => ['style' => 'deepObject', 'explode' => true], 'completed_at' => ['style' => 'deepObject', 'explode' => true], 'approved_at' => ['style' => 'deepObject', 'explode' => true], 'rejected_at' => ['style' => 'deepObject', 'explode' => true], 'declined_at' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true], 'external_id' => ['style' => 'deepObject', 'explode' => true], 'source' => ['style' => 'deepObject', 'explode' => true], 'label.name' => ['style' => 'deepObject', 'explode' => true]]; + } + /** * @return GetSignatureRequests200Response|null * * @throws GetSignatureRequestsBadRequestException * @throws GetSignatureRequestsUnauthorizedException * @throws GetSignatureRequestsForbiddenException + * @throws GetSignatureRequestsMethodNotAllowedException * @throws GetSignatureRequestsTooManyRequestsException * @throws GetSignatureRequestsInternalServerErrorException */ @@ -91,26 +132,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequests200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsIdApprovers.php b/generated/Endpoint/GetSignatureRequestsIdApprovers.php new file mode 100644 index 0000000..5c2f101 --- /dev/null +++ b/generated/Endpoint/GetSignatureRequestsIdApprovers.php @@ -0,0 +1,104 @@ +signatureRequestId)], '/signature_requests/{signatureRequestId}/approvers'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return Approver[]|null + * + * @throws GetSignatureRequestsIdApproversBadRequestException + * @throws GetSignatureRequestsIdApproversUnauthorizedException + * @throws GetSignatureRequestsIdApproversForbiddenException + * @throws GetSignatureRequestsIdApproversNotFoundException + * @throws GetSignatureRequestsIdApproversMethodNotAllowedException + * @throws GetSignatureRequestsIdApproversTooManyRequestsException + * @throws GetSignatureRequestsIdApproversInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Approver[]', 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdApproversInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetSignatureRequestsIdEmbeddedPreparationLink.php b/generated/Endpoint/GetSignatureRequestsIdEmbeddedPreparationLink.php new file mode 100644 index 0000000..ee97b63 --- /dev/null +++ b/generated/Endpoint/GetSignatureRequestsIdEmbeddedPreparationLink.php @@ -0,0 +1,126 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/embedded_preparation_link'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['locale']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('locale', ['string']); + + return $optionsResolver; + } + + /** + * @return EmbeddedPreparationLink|null + * + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException + * @throws GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, EmbeddedPreparationLink::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetSignatureRequestsIdLabels.php b/generated/Endpoint/GetSignatureRequestsIdLabels.php new file mode 100644 index 0000000..209a713 --- /dev/null +++ b/generated/Endpoint/GetSignatureRequestsIdLabels.php @@ -0,0 +1,104 @@ +signatureRequestId)], '/signature_requests/{signatureRequestId}/labels'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return GetSignatureRequestsIdLabels200Response|null + * + * @throws GetSignatureRequestsIdLabelsBadRequestException + * @throws GetSignatureRequestsIdLabelsUnauthorizedException + * @throws GetSignatureRequestsIdLabelsForbiddenException + * @throws GetSignatureRequestsIdLabelsNotFoundException + * @throws GetSignatureRequestsIdLabelsMethodNotAllowedException + * @throws GetSignatureRequestsIdLabelsTooManyRequestsException + * @throws GetSignatureRequestsIdLabelsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetSignatureRequestsIdLabels200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdLabelsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownload.php b/generated/Endpoint/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownload.php new file mode 100644 index 0000000..c7cf979 --- /dev/null +++ b/generated/Endpoint/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownload.php @@ -0,0 +1,104 @@ +signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/verified_identity_proof/download'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/pdf', 'application/json']]; + } + + return $this->accept; + } + + /** + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException + * @throws GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestId.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestId.php index 3554fd8..9428d03 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestId.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignatureRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -61,6 +63,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdForbiddenException * @throws GetSignatureRequestsSignatureRequestIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdInternalServerErrorException */ @@ -68,29 +71,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignatureRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdApproversApproverId.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdApproversApproverId.php index e12a5a3..314996a 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdApproversApproverId.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdApproversApproverId.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\Approver; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{approverId}'], [$this->signatureRequestId, $this->approverId], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); + return str_replace(['{signatureRequestId}', '{approverId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->approverId)], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException */ @@ -66,26 +69,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Approver::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdAuditTrailsDownload.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdAuditTrailsDownload.php index f4f569a..11432c6 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdAuditTrailsDownload.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdAuditTrailsDownload.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -27,11 +29,9 @@ class GetSignatureRequestsSignatureRequestIdAuditTrailsDownload extends BaseEndp * Download the PDF version of all the Audit Trails attached to a given Signature Request. Each Audit Trail is bound to a different Signer. Only possible when the Signature Request status is `done`. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var bool $merge Download all Audit Trails merged as a single PDF file - * } - * + * @param array{ + * "merge"?: bool, //Download all Audit Trails merged as a single PDF file + * } $queryParameters * @param array $accept Accept content header application/zip, application/pdf|application/json */ public function __construct(protected string $signatureRequestId, array $queryParameters = [], protected array $accept = []) @@ -46,7 +46,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/audit_trails/download'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/audit_trails/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -78,26 +78,30 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocuments.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocuments.php index 62cfa68..57e377b 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocuments.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocuments.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -30,10 +32,10 @@ class GetSignatureRequestsSignatureRequestIdDocuments extends BaseEndpoint imple * Returns a list of Documents for a given Signature Request. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var string $nature Filter by nature - * } + * @param array{ + * "nature"?: array, //Filter by `nature`. Allowed operators: `eq`. + * Example: `nature[eq]=attachment` or `nature[eq]=signable_document`. + * } $queryParameters */ public function __construct(protected string $signatureRequestId, array $queryParameters = []) { @@ -47,7 +49,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/documents'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/documents'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -66,11 +68,16 @@ protected function getQueryOptionsResolver(): OptionsResolver $optionsResolver->setDefined(['nature']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults([]); - $optionsResolver->addAllowedTypes('nature', ['string']); + $optionsResolver->addAllowedTypes('nature', ['array']); return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['nature' => ['style' => 'deepObject', 'explode' => true]]; + } + /** * @return Document[]|null * @@ -78,6 +85,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException */ @@ -85,29 +93,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Document[]', 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentId.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentId.php index ab2c586..cf70b68 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentId.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentId.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException */ @@ -66,26 +69,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Document::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php index d702a00..17ec88b 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php @@ -3,14 +3,18 @@ namespace Qdequippe\Yousign\Api\Endpoint; use Psr\Http\Message\ResponseInterface; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException; +use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -29,12 +33,16 @@ class GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields extends Ba * * @param string $signatureRequestId Signature Request Id * @param string $documentId Document ID - * @param array $queryParameters { - * - * @var array $types[] Filter by Field type - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "type"?: array, //Filter by `type`. Allowed operators: `eq`, `in`. + * Example: `type[in]=text,checkbox` + * "signer_id"?: array, //Filter by `signer_id`. Allowed operators: `eq`. + * Example: `signer_id[eq]=500800fc-3f91-4e86-a9c9-866809a1e3c9` + * "name"?: array, //Filter by `name`. Allowed operators: `eq`. + * Example: `name[eq]=text 1` + * } $queryParameters */ public function __construct(protected string $signatureRequestId, protected string $documentId, array $queryParameters = []) { @@ -48,7 +56,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -64,22 +72,31 @@ public function getExtraHeaders(): array protected function getQueryOptionsResolver(): OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['types', 'after', 'limit']); + $optionsResolver->setDefined(['after', 'limit', 'type', 'signer_id', 'name']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['limit' => 100]); - $optionsResolver->addAllowedTypes('types', ['array']); $optionsResolver->addAllowedTypes('after', ['string']); $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('type', ['array']); + $optionsResolver->addAllowedTypes('signer_id', ['array']); + $optionsResolver->addAllowedTypes('name', ['array']); return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['type' => ['style' => 'deepObject', 'explode' => true], 'signer_id' => ['style' => 'deepObject', 'explode' => true], 'name' => ['style' => 'deepObject', 'explode' => true]]; + } + /** * @return GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response|null * + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException */ @@ -87,26 +104,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields200Response::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownload.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownload.php index 3c4a628..8356fdf 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownload.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownload.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}/download'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -64,29 +66,33 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDownload.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDownload.php index 84e261d..b5b4125 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDownload.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocumentsDownload.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -27,12 +29,10 @@ class GetSignatureRequestsSignatureRequestIdDocumentsDownload extends BaseEndpoi * Downloads the PDF version of all Documents attached to a given Signature Request. * * @param string $signatureRequestId Signature Request Id - * @param array $queryParameters { - * - * @var string $version specify Documents version to download, `completed` is only available when the Signature Request status is `done` - * @var bool $archive Force zip archive download - * } - * + * @param array{ + * "version"?: string, //Specify Documents version to download, `completed` is only available when the Signature Request status is `done`. + * "archive"?: bool, //Force zip archive download + * } $queryParameters * @param array $accept Accept content header application/zip, application/pdf|application/json */ public function __construct(protected string $signatureRequestId, array $queryParameters = [], protected array $accept = []) @@ -47,7 +47,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/documents/download'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/documents/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -80,26 +80,30 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdDocumentsDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdFollowers.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdFollowers.php index 2ce3049..00c5107 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdFollowers.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdFollowers.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdFollowers200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/followers'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/followers'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdFollowersForbiddenException * @throws GetSignatureRequestsSignatureRequestIdFollowersNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequestsSignatureRequestIdFollowers200Response::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdFollowersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdFollowersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdFollowersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdMetadata.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdMetadata.php index 55a92ac..71d6364 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdMetadata.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdMetadata.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; use Qdequippe\Yousign\Api\Model\Metadata; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/metadata'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/metadata'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdMetadataForbiddenException * @throws GetSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Metadata::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdMetadataUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdMetadataForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdMetadataNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerConsentRequests.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerConsentRequests.php index 0d01cac..a1a6aa4 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerConsentRequests.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerConsentRequests.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/consent_requests'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/consent_requests'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerConsentRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerDocumentRequests.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerDocumentRequests.php index 117ccd1..2455b40 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerDocumentRequests.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignerDocumentRequests.php @@ -5,12 +5,14 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/document_requests'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/document_requests'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSigners.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSigners.php index 994c78e..e683eac 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSigners.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSigners.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\Signer; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/signers'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/signers'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignersForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignersNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Signer[]', 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails.php index 9907534..70ea1dc 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerAuditTrail; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/audit_trails'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/audit_trails'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -62,6 +64,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException */ @@ -69,29 +72,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignerAuditTrail::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php index 6d5208e..0ab1c8e 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -43,7 +45,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -63,6 +65,7 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException */ @@ -70,29 +73,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId.php b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId.php index 83b949d..3a77836 100644 --- a/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId.php +++ b/generated/Endpoint/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -44,7 +46,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}', '{signerDocumentId}'], [$this->signatureRequestId, $this->signerId, $this->signerDocumentId], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents/{signerDocumentId}/download'); + return str_replace(['{signatureRequestId}', '{signerId}', '{signerDocumentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId), rawurlencode($this->signerDocumentId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/documents/{signerDocumentId}/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -66,29 +68,33 @@ public function getExtraHeaders(): array * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException + * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException * @throws GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetSignersSignerIdAuditTrailsDownload.php b/generated/Endpoint/GetSignersSignerIdAuditTrailsDownload.php index c16128d..da9f89b 100644 --- a/generated/Endpoint/GetSignersSignerIdAuditTrailsDownload.php +++ b/generated/Endpoint/GetSignersSignerIdAuditTrailsDownload.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadBadRequestException; use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignersSignerIdAuditTrailsDownloadUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/audit_trails/download'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/audit_trails/download'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -64,29 +66,33 @@ public function getExtraHeaders(): array * @throws GetSignersSignerIdAuditTrailsDownloadUnauthorizedException * @throws GetSignersSignerIdAuditTrailsDownloadForbiddenException * @throws GetSignersSignerIdAuditTrailsDownloadNotFoundException + * @throws GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException * @throws GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException * @throws GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignerIdAuditTrailsDownloadInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } } diff --git a/generated/Endpoint/GetSignersSignersId.php b/generated/Endpoint/GetSignersSignersId.php index a3e393d..6b4213c 100644 --- a/generated/Endpoint/GetSignersSignersId.php +++ b/generated/Endpoint/GetSignersSignersId.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetSignersSignersIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\Signer; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -40,7 +42,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws GetSignersSignersIdUnauthorizedException * @throws GetSignersSignersIdForbiddenException * @throws GetSignersSignersIdNotFoundException + * @throws GetSignersSignersIdMethodNotAllowedException * @throws GetSignersSignersIdTooManyRequestsException * @throws GetSignersSignersIdInternalServerErrorException */ @@ -66,26 +69,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Signer::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignersIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignersIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignersIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetSignersSignersIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignersIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetSignersSignersIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetTemplates.php b/generated/Endpoint/GetTemplates.php index f3db393..f9ad8b5 100644 --- a/generated/Endpoint/GetTemplates.php +++ b/generated/Endpoint/GetTemplates.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetTemplatesBadRequestException; use Qdequippe\Yousign\Api\Exception\GetTemplatesForbiddenException; use Qdequippe\Yousign\Api\Exception\GetTemplatesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetTemplatesMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetTemplatesTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetTemplatesUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetTemplates200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -27,11 +29,10 @@ class GetTemplates extends BaseEndpoint implements Endpoint /** * Returns the list of all Templates within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -63,7 +64,7 @@ protected function getQueryOptionsResolver(): OptionsResolver $optionsResolver = parent::getQueryOptionsResolver(); $optionsResolver->setDefined(['after', 'limit']); $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->setDefaults(['limit' => 10]); $optionsResolver->addAllowedTypes('after', ['string']); $optionsResolver->addAllowedTypes('limit', ['int']); @@ -76,6 +77,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetTemplatesBadRequestException * @throws GetTemplatesUnauthorizedException * @throws GetTemplatesForbiddenException + * @throws GetTemplatesMethodNotAllowedException * @throws GetTemplatesTooManyRequestsException * @throws GetTemplatesInternalServerErrorException */ @@ -83,26 +85,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetTemplates200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetTemplatesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetTemplatesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetTemplatesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetTemplatesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetTemplatesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetTemplatesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetUsers.php b/generated/Endpoint/GetUsers.php index 3574a51..2902c0d 100644 --- a/generated/Endpoint/GetUsers.php +++ b/generated/Endpoint/GetUsers.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetUsersBadRequestException; use Qdequippe\Yousign\Api\Exception\GetUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetUsersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetUsersUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\GetUsers200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -25,12 +27,12 @@ class GetUsers extends BaseEndpoint implements Endpoint /** * Returns the list of all the Users within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit the limit of items count to retrieve - * @var string $email A given e-mail address to filter on. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * "email"?: array, //Filter by `email`. Allowed operators: `eq`. + * Example: `email[eq]=user@example.com` + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -65,16 +67,22 @@ protected function getQueryOptionsResolver(): OptionsResolver $optionsResolver->setDefaults(['limit' => 100]); $optionsResolver->addAllowedTypes('after', ['string']); $optionsResolver->addAllowedTypes('limit', ['int']); - $optionsResolver->addAllowedTypes('email', ['string', 'null']); + $optionsResolver->addAllowedTypes('email', ['array']); return $optionsResolver; } + protected function getQueryStyles(): array + { + return ['email' => ['style' => 'deepObject', 'explode' => true]]; + } + /** * @return GetUsers200Response|null * * @throws GetUsersBadRequestException * @throws GetUsersUnauthorizedException + * @throws GetUsersMethodNotAllowedException * @throws GetUsersTooManyRequestsException * @throws GetUsersInternalServerErrorException */ @@ -82,23 +90,24 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetUsers200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetUsersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetUsersInvitationInvitationId.php b/generated/Endpoint/GetUsersInvitationInvitationId.php index faacf3f..8f780e1 100644 --- a/generated/Endpoint/GetUsersInvitationInvitationId.php +++ b/generated/Endpoint/GetUsersInvitationInvitationId.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetUsersInvitationInvitationIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{invitationId}'], [$this->invitationId], '/users/invitations/{invitationId}'); + return str_replace(['{invitationId}'], [rawurlencode($this->invitationId)], '/users/invitations/{invitationId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetUsersInvitationInvitationIdUnauthorizedException * @throws GetUsersInvitationInvitationIdForbiddenException * @throws GetUsersInvitationInvitationIdNotFoundException + * @throws GetUsersInvitationInvitationIdMethodNotAllowedException * @throws GetUsersInvitationInvitationIdTooManyRequestsException * @throws GetUsersInvitationInvitationIdInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, UserInvitation::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInvitationInvitationIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInvitationInvitationIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInvitationInvitationIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetUsersInvitationInvitationIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInvitationInvitationIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersInvitationInvitationIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetUsersUserId.php b/generated/Endpoint/GetUsersUserId.php index 423f632..511a2e5 100644 --- a/generated/Endpoint/GetUsersUserId.php +++ b/generated/Endpoint/GetUsersUserId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetUsersUserIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{userId}'], [$this->userId], '/users/{userId}'); + return str_replace(['{userId}'], [rawurlencode($this->userId)], '/users/{userId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -61,6 +63,7 @@ public function getExtraHeaders(): array * @throws GetUsersUserIdUnauthorizedException * @throws GetUsersUserIdForbiddenException * @throws GetUsersUserIdNotFoundException + * @throws GetUsersUserIdMethodNotAllowedException * @throws GetUsersUserIdTooManyRequestsException * @throws GetUsersUserIdInternalServerErrorException */ @@ -68,29 +71,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, User::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetUsersUserIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetUsersUserIdInvitation.php b/generated/Endpoint/GetUsersUserIdInvitation.php index a8436f0..60e7c71 100644 --- a/generated/Endpoint/GetUsersUserIdInvitation.php +++ b/generated/Endpoint/GetUsersUserIdInvitation.php @@ -5,11 +5,13 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationForbiddenException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationNotFoundException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetUsersUserIdInvitationUnauthorizedException; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -39,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{userId}'], [$this->userId], '/users/{userId}/invitation'); + return str_replace(['{userId}'], [rawurlencode($this->userId)], '/users/{userId}/invitation'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -58,6 +60,7 @@ public function getExtraHeaders(): array * @throws GetUsersUserIdInvitationUnauthorizedException * @throws GetUsersUserIdInvitationForbiddenException * @throws GetUsersUserIdInvitationNotFoundException + * @throws GetUsersUserIdInvitationMethodNotAllowedException * @throws GetUsersUserIdInvitationTooManyRequestsException * @throws GetUsersUserIdInvitationInternalServerErrorException */ @@ -65,26 +68,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, UserInvitation::class, 'json'); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInvitationUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInvitationForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInvitationNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetUsersUserIdInvitationMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInvitationTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetUsersUserIdInvitationInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetVerificationsBankAccountLookups.php b/generated/Endpoint/GetVerificationsBankAccountLookups.php new file mode 100644 index 0000000..90f3b90 --- /dev/null +++ b/generated/Endpoint/GetVerificationsBankAccountLookups.php @@ -0,0 +1,128 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/bank_account_lookups'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsBankAccountLookups200Response|null + * + * @throws GetVerificationsBankAccountLookupsBadRequestException + * @throws GetVerificationsBankAccountLookupsUnauthorizedException + * @throws GetVerificationsBankAccountLookupsForbiddenException + * @throws GetVerificationsBankAccountLookupsMethodNotAllowedException + * @throws GetVerificationsBankAccountLookupsTooManyRequestsException + * @throws GetVerificationsBankAccountLookupsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsBankAccountLookups200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsBankAccountLookupsId.php b/generated/Endpoint/GetVerificationsBankAccountLookupsId.php new file mode 100644 index 0000000..503a809 --- /dev/null +++ b/generated/Endpoint/GetVerificationsBankAccountLookupsId.php @@ -0,0 +1,104 @@ +bankAccountLookupVerificationId)], '/verifications/bank_account_lookups/{bankAccountLookupVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return BankAccountLookupFull|null + * + * @throws GetVerificationsBankAccountLookupsIdBadRequestException + * @throws GetVerificationsBankAccountLookupsIdUnauthorizedException + * @throws GetVerificationsBankAccountLookupsIdForbiddenException + * @throws GetVerificationsBankAccountLookupsIdNotFoundException + * @throws GetVerificationsBankAccountLookupsIdMethodNotAllowedException + * @throws GetVerificationsBankAccountLookupsIdTooManyRequestsException + * @throws GetVerificationsBankAccountLookupsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, BankAccountLookupFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountLookupsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsBankAccounts.php b/generated/Endpoint/GetVerificationsBankAccounts.php new file mode 100644 index 0000000..9692b15 --- /dev/null +++ b/generated/Endpoint/GetVerificationsBankAccounts.php @@ -0,0 +1,126 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/bank_accounts'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsBankAccounts200Response|null + * + * @throws GetVerificationsBankAccountsBadRequestException + * @throws GetVerificationsBankAccountsUnauthorizedException + * @throws GetVerificationsBankAccountsForbiddenException + * @throws GetVerificationsBankAccountsMethodNotAllowedException + * @throws GetVerificationsBankAccountsTooManyRequestsException + * @throws GetVerificationsBankAccountsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsBankAccounts200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsBankAccountsId.php b/generated/Endpoint/GetVerificationsBankAccountsId.php new file mode 100644 index 0000000..21fea07 --- /dev/null +++ b/generated/Endpoint/GetVerificationsBankAccountsId.php @@ -0,0 +1,104 @@ +bankAccountVerificationId)], '/verifications/bank_accounts/{bankAccountVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return BankAccountFull|null + * + * @throws GetVerificationsBankAccountsIdBadRequestException + * @throws GetVerificationsBankAccountsIdUnauthorizedException + * @throws GetVerificationsBankAccountsIdForbiddenException + * @throws GetVerificationsBankAccountsIdNotFoundException + * @throws GetVerificationsBankAccountsIdMethodNotAllowedException + * @throws GetVerificationsBankAccountsIdTooManyRequestsException + * @throws GetVerificationsBankAccountsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, BankAccountFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsBankAccountsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsCompanies.php b/generated/Endpoint/GetVerificationsCompanies.php new file mode 100644 index 0000000..d077faf --- /dev/null +++ b/generated/Endpoint/GetVerificationsCompanies.php @@ -0,0 +1,126 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/companies'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsCompanies200Response|null + * + * @throws GetVerificationsCompaniesBadRequestException + * @throws GetVerificationsCompaniesUnauthorizedException + * @throws GetVerificationsCompaniesForbiddenException + * @throws GetVerificationsCompaniesMethodNotAllowedException + * @throws GetVerificationsCompaniesTooManyRequestsException + * @throws GetVerificationsCompaniesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsCompanies200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsCompaniesId.php b/generated/Endpoint/GetVerificationsCompaniesId.php new file mode 100644 index 0000000..5a2579a --- /dev/null +++ b/generated/Endpoint/GetVerificationsCompaniesId.php @@ -0,0 +1,104 @@ +companyVerificationId)], '/verifications/companies/{companyVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return CompanyFull|null + * + * @throws GetVerificationsCompaniesIdBadRequestException + * @throws GetVerificationsCompaniesIdUnauthorizedException + * @throws GetVerificationsCompaniesIdForbiddenException + * @throws GetVerificationsCompaniesIdNotFoundException + * @throws GetVerificationsCompaniesIdMethodNotAllowedException + * @throws GetVerificationsCompaniesIdTooManyRequestsException + * @throws GetVerificationsCompaniesIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CompanyFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsCompaniesIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsIdentityDocuments.php b/generated/Endpoint/GetVerificationsIdentityDocuments.php new file mode 100644 index 0000000..48b31cd --- /dev/null +++ b/generated/Endpoint/GetVerificationsIdentityDocuments.php @@ -0,0 +1,126 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/identity_documents'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsIdentityDocuments200Response|null + * + * @throws GetVerificationsIdentityDocumentsBadRequestException + * @throws GetVerificationsIdentityDocumentsUnauthorizedException + * @throws GetVerificationsIdentityDocumentsForbiddenException + * @throws GetVerificationsIdentityDocumentsMethodNotAllowedException + * @throws GetVerificationsIdentityDocumentsTooManyRequestsException + * @throws GetVerificationsIdentityDocumentsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsIdentityDocuments200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsIdentityDocumentsId.php b/generated/Endpoint/GetVerificationsIdentityDocumentsId.php new file mode 100644 index 0000000..334b105 --- /dev/null +++ b/generated/Endpoint/GetVerificationsIdentityDocumentsId.php @@ -0,0 +1,104 @@ +identityDocumentVerificationId)], '/verifications/identity_documents/{identityDocumentVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return IdentityDocumentFull|null + * + * @throws GetVerificationsIdentityDocumentsIdBadRequestException + * @throws GetVerificationsIdentityDocumentsIdUnauthorizedException + * @throws GetVerificationsIdentityDocumentsIdForbiddenException + * @throws GetVerificationsIdentityDocumentsIdNotFoundException + * @throws GetVerificationsIdentityDocumentsIdMethodNotAllowedException + * @throws GetVerificationsIdentityDocumentsIdTooManyRequestsException + * @throws GetVerificationsIdentityDocumentsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, IdentityDocumentFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityDocumentsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsIdentityVideos.php b/generated/Endpoint/GetVerificationsIdentityVideos.php new file mode 100644 index 0000000..9816f4c --- /dev/null +++ b/generated/Endpoint/GetVerificationsIdentityVideos.php @@ -0,0 +1,132 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/identity_videos'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id', 'face_recognition', 'pvid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + $optionsResolver->addAllowedTypes('face_recognition', ['array']); + $optionsResolver->addAllowedTypes('pvid', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true], 'face_recognition' => ['style' => 'deepObject', 'explode' => true], 'pvid' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsIdentityVideos200Response|null + * + * @throws GetVerificationsIdentityVideosBadRequestException + * @throws GetVerificationsIdentityVideosUnauthorizedException + * @throws GetVerificationsIdentityVideosForbiddenException + * @throws GetVerificationsIdentityVideosMethodNotAllowedException + * @throws GetVerificationsIdentityVideosTooManyRequestsException + * @throws GetVerificationsIdentityVideosInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsIdentityVideos200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsIdentityVideosId.php b/generated/Endpoint/GetVerificationsIdentityVideosId.php new file mode 100644 index 0000000..1791d4d --- /dev/null +++ b/generated/Endpoint/GetVerificationsIdentityVideosId.php @@ -0,0 +1,104 @@ +identityVideoVerificationId)], '/verifications/identity_videos/{identityVideoVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return IdentityVideoFull|null + * + * @throws GetVerificationsIdentityVideosIdBadRequestException + * @throws GetVerificationsIdentityVideosIdUnauthorizedException + * @throws GetVerificationsIdentityVideosIdForbiddenException + * @throws GetVerificationsIdentityVideosIdNotFoundException + * @throws GetVerificationsIdentityVideosIdMethodNotAllowedException + * @throws GetVerificationsIdentityVideosIdTooManyRequestsException + * @throws GetVerificationsIdentityVideosIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, IdentityVideoFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsIdentityVideosIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsProofsOfAddress.php b/generated/Endpoint/GetVerificationsProofsOfAddress.php new file mode 100644 index 0000000..af2c214 --- /dev/null +++ b/generated/Endpoint/GetVerificationsProofsOfAddress.php @@ -0,0 +1,128 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/proofs_of_address'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsProofsOfAddress200Response|null + * + * @throws GetVerificationsProofsOfAddressBadRequestException + * @throws GetVerificationsProofsOfAddressUnauthorizedException + * @throws GetVerificationsProofsOfAddressForbiddenException + * @throws GetVerificationsProofsOfAddressMethodNotAllowedException + * @throws GetVerificationsProofsOfAddressTooManyRequestsException + * @throws GetVerificationsProofsOfAddressInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsProofsOfAddress200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsProofsOfAddressId.php b/generated/Endpoint/GetVerificationsProofsOfAddressId.php new file mode 100644 index 0000000..2eade1d --- /dev/null +++ b/generated/Endpoint/GetVerificationsProofsOfAddressId.php @@ -0,0 +1,104 @@ +proofOfAddressVerificationId)], '/verifications/proofs_of_address/{proofOfAddressVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return ProofOfAddressVerificationFull|null + * + * @throws GetVerificationsProofsOfAddressIdBadRequestException + * @throws GetVerificationsProofsOfAddressIdUnauthorizedException + * @throws GetVerificationsProofsOfAddressIdForbiddenException + * @throws GetVerificationsProofsOfAddressIdNotFoundException + * @throws GetVerificationsProofsOfAddressIdMethodNotAllowedException + * @throws GetVerificationsProofsOfAddressIdTooManyRequestsException + * @throws GetVerificationsProofsOfAddressIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, ProofOfAddressVerificationFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsProofsOfAddressIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsTypeIdAuditTrail.php b/generated/Endpoint/GetVerificationsTypeIdAuditTrail.php new file mode 100644 index 0000000..9831b8d --- /dev/null +++ b/generated/Endpoint/GetVerificationsTypeIdAuditTrail.php @@ -0,0 +1,104 @@ +verificationType), rawurlencode($this->verificationId)], '/verifications/{verificationType}/{verificationId}/audit_trail'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/pdf', 'application/json']]; + } + + return $this->accept; + } + + /** + * @throws GetVerificationsTypeIdAuditTrailBadRequestException + * @throws GetVerificationsTypeIdAuditTrailUnauthorizedException + * @throws GetVerificationsTypeIdAuditTrailForbiddenException + * @throws GetVerificationsTypeIdAuditTrailNotFoundException + * @throws GetVerificationsTypeIdAuditTrailMethodNotAllowedException + * @throws GetVerificationsTypeIdAuditTrailTooManyRequestsException + * @throws GetVerificationsTypeIdAuditTrailInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsTypeIdAuditTrailInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsWatchlists.php b/generated/Endpoint/GetVerificationsWatchlists.php new file mode 100644 index 0000000..802b163 --- /dev/null +++ b/generated/Endpoint/GetVerificationsWatchlists.php @@ -0,0 +1,128 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/verifications/watchlists'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'workspace_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['array']); + $optionsResolver->addAllowedTypes('workspace_id', ['array']); + + return $optionsResolver; + } + + protected function getQueryStyles(): array + { + return ['status' => ['style' => 'deepObject', 'explode' => true], 'workspace_id' => ['style' => 'deepObject', 'explode' => true]]; + } + + /** + * @return GetVerificationsWatchlists200Response|null + * + * @throws GetVerificationsWatchlistsBadRequestException + * @throws GetVerificationsWatchlistsUnauthorizedException + * @throws GetVerificationsWatchlistsForbiddenException + * @throws GetVerificationsWatchlistsMethodNotAllowedException + * @throws GetVerificationsWatchlistsTooManyRequestsException + * @throws GetVerificationsWatchlistsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetVerificationsWatchlists200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetVerificationsWatchlistsId.php b/generated/Endpoint/GetVerificationsWatchlistsId.php new file mode 100644 index 0000000..0cf23da --- /dev/null +++ b/generated/Endpoint/GetVerificationsWatchlistsId.php @@ -0,0 +1,105 @@ +watchlistVerificationId)], '/verifications/watchlists/{watchlistVerificationId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return WatchlistFull|null + * + * @throws GetVerificationsWatchlistsIdBadRequestException + * @throws GetVerificationsWatchlistsIdUnauthorizedException + * @throws GetVerificationsWatchlistsIdForbiddenException + * @throws GetVerificationsWatchlistsIdNotFoundException + * @throws GetVerificationsWatchlistsIdMethodNotAllowedException + * @throws GetVerificationsWatchlistsIdTooManyRequestsException + * @throws GetVerificationsWatchlistsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, WatchlistFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetVerificationsWatchlistsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWebhooks.php b/generated/Endpoint/GetWebhooks.php index 6127ed5..984fda5 100644 --- a/generated/Endpoint/GetWebhooks.php +++ b/generated/Endpoint/GetWebhooks.php @@ -6,11 +6,13 @@ use Qdequippe\Yousign\Api\Exception\GetWebhooksBadRequestException; use Qdequippe\Yousign\Api\Exception\GetWebhooksForbiddenException; use Qdequippe\Yousign\Api\Exception\GetWebhooksInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetWebhooksTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetWebhooksUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\WebhookSubscription; @@ -49,6 +51,7 @@ public function getExtraHeaders(): array * @throws GetWebhooksBadRequestException * @throws GetWebhooksUnauthorizedException * @throws GetWebhooksForbiddenException + * @throws GetWebhooksMethodNotAllowedException * @throws GetWebhooksTooManyRequestsException * @throws GetWebhooksInternalServerErrorException */ @@ -56,26 +59,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\WebhookSubscription[]', 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWebhooksMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetWebhooksWebhookId.php b/generated/Endpoint/GetWebhooksWebhookId.php index 5375c07..aefa5d5 100644 --- a/generated/Endpoint/GetWebhooksWebhookId.php +++ b/generated/Endpoint/GetWebhooksWebhookId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetWebhooksWebhookIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -43,7 +45,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{webhookId}'], [$this->webhookId], '/webhooks/{webhookId}'); + return str_replace(['{webhookId}'], [rawurlencode($this->webhookId)], '/webhooks/{webhookId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -63,6 +65,7 @@ public function getExtraHeaders(): array * @throws GetWebhooksWebhookIdUnauthorizedException * @throws GetWebhooksWebhookIdForbiddenException * @throws GetWebhooksWebhookIdNotFoundException + * @throws GetWebhooksWebhookIdMethodNotAllowedException * @throws GetWebhooksWebhookIdUnsupportedMediaTypeException * @throws GetWebhooksWebhookIdTooManyRequestsException * @throws GetWebhooksWebhookIdInternalServerErrorException @@ -71,32 +74,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, WebhookSubscription::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWebhooksWebhookIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWebhooksWebhookIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetWorkflowSessions.php b/generated/Endpoint/GetWorkflowSessions.php new file mode 100644 index 0000000..eee253d --- /dev/null +++ b/generated/Endpoint/GetWorkflowSessions.php @@ -0,0 +1,89 @@ + ['application/json']]; + } + + /** + * @return GetWorkflowSessions200Response|null + * + * @throws GetWorkflowSessionsBadRequestException + * @throws GetWorkflowSessionsUnauthorizedException + * @throws GetWorkflowSessionsForbiddenException + * @throws GetWorkflowSessionsMethodNotAllowedException + * @throws GetWorkflowSessionsTooManyRequestsException + * @throws GetWorkflowSessionsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetWorkflowSessions200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkflowSessionsId.php b/generated/Endpoint/GetWorkflowSessionsId.php new file mode 100644 index 0000000..f65b2c3 --- /dev/null +++ b/generated/Endpoint/GetWorkflowSessionsId.php @@ -0,0 +1,104 @@ +workflowSessionId)], '/workflow_sessions/{workflowSessionId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return WorkflowSession|null + * + * @throws GetWorkflowSessionsIdBadRequestException + * @throws GetWorkflowSessionsIdUnauthorizedException + * @throws GetWorkflowSessionsIdForbiddenException + * @throws GetWorkflowSessionsIdNotFoundException + * @throws GetWorkflowSessionsIdMethodNotAllowedException + * @throws GetWorkflowSessionsIdTooManyRequestsException + * @throws GetWorkflowSessionsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, WorkflowSession::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkflowSessionsIdApplicants.php b/generated/Endpoint/GetWorkflowSessionsIdApplicants.php new file mode 100644 index 0000000..d3385a1 --- /dev/null +++ b/generated/Endpoint/GetWorkflowSessionsIdApplicants.php @@ -0,0 +1,120 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{workflowSessionId}'], [rawurlencode($this->workflowSessionId)], '/workflow_sessions/{workflowSessionId}/applicants'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['after', 'limit', 'status', 'parent_applicant_id']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('after', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('status', ['string']); + $optionsResolver->addAllowedTypes('parent_applicant_id', ['string']); + + return $optionsResolver; + } + + /** + * @return GetWorkflowSessionsIdApplicants200Response|null + * + * @throws GetWorkflowSessionsIdApplicantsBadRequestException + * @throws GetWorkflowSessionsIdApplicantsUnauthorizedException + * @throws GetWorkflowSessionsIdApplicantsForbiddenException + * @throws GetWorkflowSessionsIdApplicantsMethodNotAllowedException + * @throws GetWorkflowSessionsIdApplicantsTooManyRequestsException + * @throws GetWorkflowSessionsIdApplicantsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetWorkflowSessionsIdApplicants200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkflowSessionsIdApplicantsId.php b/generated/Endpoint/GetWorkflowSessionsIdApplicantsId.php new file mode 100644 index 0000000..afb6d60 --- /dev/null +++ b/generated/Endpoint/GetWorkflowSessionsIdApplicantsId.php @@ -0,0 +1,107 @@ +workflowSessionId), rawurlencode($this->applicantId)], '/workflow_sessions/{workflowSessionId}/applicants/{applicantId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws GetWorkflowSessionsIdApplicantsIdBadRequestException + * @throws GetWorkflowSessionsIdApplicantsIdUnauthorizedException + * @throws GetWorkflowSessionsIdApplicantsIdForbiddenException + * @throws GetWorkflowSessionsIdApplicantsIdNotFoundException + * @throws GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException + * @throws GetWorkflowSessionsIdApplicantsIdTooManyRequestsException + * @throws GetWorkflowSessionsIdApplicantsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdApplicantsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkflowSessionsIdLinks.php b/generated/Endpoint/GetWorkflowSessionsIdLinks.php new file mode 100644 index 0000000..9df8801 --- /dev/null +++ b/generated/Endpoint/GetWorkflowSessionsIdLinks.php @@ -0,0 +1,104 @@ +workflowSessionId)], '/workflow_sessions/{workflowSessionId}/links'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return WorkflowSessionLinks|null + * + * @throws GetWorkflowSessionsIdLinksBadRequestException + * @throws GetWorkflowSessionsIdLinksUnauthorizedException + * @throws GetWorkflowSessionsIdLinksForbiddenException + * @throws GetWorkflowSessionsIdLinksNotFoundException + * @throws GetWorkflowSessionsIdLinksMethodNotAllowedException + * @throws GetWorkflowSessionsIdLinksTooManyRequestsException + * @throws GetWorkflowSessionsIdLinksInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, WorkflowSessionLinks::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowSessionsIdLinksInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkflowTemplates.php b/generated/Endpoint/GetWorkflowTemplates.php new file mode 100644 index 0000000..0053c9a --- /dev/null +++ b/generated/Endpoint/GetWorkflowTemplates.php @@ -0,0 +1,89 @@ + ['application/json']]; + } + + /** + * @return GetWorkflowTemplates200Response|null + * + * @throws GetWorkflowTemplatesBadRequestException + * @throws GetWorkflowTemplatesUnauthorizedException + * @throws GetWorkflowTemplatesForbiddenException + * @throws GetWorkflowTemplatesMethodNotAllowedException + * @throws GetWorkflowTemplatesTooManyRequestsException + * @throws GetWorkflowTemplatesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, GetWorkflowTemplates200Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkflowTemplatesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/GetWorkspaces.php b/generated/Endpoint/GetWorkspaces.php index 4b1cfdb..681c0e7 100644 --- a/generated/Endpoint/GetWorkspaces.php +++ b/generated/Endpoint/GetWorkspaces.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetWorkspacesBadRequestException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesForbiddenException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\GetWorkspaces200Response; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -27,11 +29,10 @@ class GetWorkspaces extends BaseEndpoint implements Endpoint /** * Returns the list of all Workspaces within your Organization. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -76,6 +77,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws GetWorkspacesBadRequestException * @throws GetWorkspacesUnauthorizedException * @throws GetWorkspacesForbiddenException + * @throws GetWorkspacesMethodNotAllowedException * @throws GetWorkspacesTooManyRequestsException * @throws GetWorkspacesInternalServerErrorException */ @@ -83,26 +85,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, GetWorkspaces200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkspacesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetWorkspacesDefault.php b/generated/Endpoint/GetWorkspacesDefault.php index fb0b519..c0ed70c 100644 --- a/generated/Endpoint/GetWorkspacesDefault.php +++ b/generated/Endpoint/GetWorkspacesDefault.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultBadRequestException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultForbiddenException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultNotFoundException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesDefaultUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -52,6 +54,7 @@ public function getExtraHeaders(): array * @throws GetWorkspacesDefaultUnauthorizedException * @throws GetWorkspacesDefaultForbiddenException * @throws GetWorkspacesDefaultNotFoundException + * @throws GetWorkspacesDefaultMethodNotAllowedException * @throws GetWorkspacesDefaultTooManyRequestsException * @throws GetWorkspacesDefaultInternalServerErrorException */ @@ -59,29 +62,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Workspace::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkspacesDefaultMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesDefaultInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/GetWorkspacesWorkspaceId.php b/generated/Endpoint/GetWorkspacesWorkspaceId.php index b73bc4f..641f614 100644 --- a/generated/Endpoint/GetWorkspacesWorkspaceId.php +++ b/generated/Endpoint/GetWorkspacesWorkspaceId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdBadRequestException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdForbiddenException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdNotFoundException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\GetWorkspacesWorkspaceIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{workspaceId}'], [$this->workspaceId], '/workspaces/{workspaceId}'); + return str_replace(['{workspaceId}'], [rawurlencode($this->workspaceId)], '/workspaces/{workspaceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -61,6 +63,7 @@ public function getExtraHeaders(): array * @throws GetWorkspacesWorkspaceIdUnauthorizedException * @throws GetWorkspacesWorkspaceIdForbiddenException * @throws GetWorkspacesWorkspaceIdNotFoundException + * @throws GetWorkspacesWorkspaceIdMethodNotAllowedException * @throws GetWorkspacesWorkspaceIdTooManyRequestsException * @throws GetWorkspacesWorkspaceIdInternalServerErrorException */ @@ -68,29 +71,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Workspace::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new GetWorkspacesWorkspaceIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new GetWorkspacesWorkspaceIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/ListElectronicSealImages.php b/generated/Endpoint/ListElectronicSealImages.php index ff51fe7..04c57e2 100644 --- a/generated/Endpoint/ListElectronicSealImages.php +++ b/generated/Endpoint/ListElectronicSealImages.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesBadRequestException; use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesForbiddenException; use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\ListElectronicSealImagesUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; use Qdequippe\Yousign\Api\Model\ListElectronicSealImages200Response; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; @@ -28,11 +30,10 @@ class ListElectronicSealImages extends BaseEndpoint implements Endpoint * Lists Electronic Seal Images. * The list is paginated and can be filtered by the `after` cursor. * - * @param array $queryParameters { - * - * @var string $after After cursor (pagination) - * @var int $limit The limit of items count to retrieve. - * } + * @param array{ + * "after"?: string, //After cursor (pagination) + * "limit"?: int, //The limit of items count to retrieve. + * } $queryParameters */ public function __construct(array $queryParameters = []) { @@ -77,6 +78,7 @@ protected function getQueryOptionsResolver(): OptionsResolver * @throws ListElectronicSealImagesBadRequestException * @throws ListElectronicSealImagesUnauthorizedException * @throws ListElectronicSealImagesForbiddenException + * @throws ListElectronicSealImagesMethodNotAllowedException * @throws ListElectronicSealImagesTooManyRequestsException * @throws ListElectronicSealImagesInternalServerErrorException */ @@ -84,26 +86,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ListElectronicSealImages200Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new ListElectronicSealImagesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new ListElectronicSealImagesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new ListElectronicSealImagesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new ListElectronicSealImagesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new ListElectronicSealImagesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new ListElectronicSealImagesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/MarkWorkspaceAsDefault.php b/generated/Endpoint/MarkWorkspaceAsDefault.php index 601b3ec..21c296d 100644 --- a/generated/Endpoint/MarkWorkspaceAsDefault.php +++ b/generated/Endpoint/MarkWorkspaceAsDefault.php @@ -6,18 +6,21 @@ use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultBadRequestException; use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultForbiddenException; use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultUnauthorizedException; use Qdequippe\Yousign\Api\Exception\MarkWorkspaceAsDefaultUnsupportedMediaTypeException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class MarkWorkspaceAsDefault extends BaseEndpoint implements Endpoint @@ -45,7 +48,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Qdequippe\Yousign\Api\Model\MarkWorkspaceAsDefault) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -60,6 +63,7 @@ public function getExtraHeaders(): array * @throws MarkWorkspaceAsDefaultBadRequestException * @throws MarkWorkspaceAsDefaultUnauthorizedException * @throws MarkWorkspaceAsDefaultForbiddenException + * @throws MarkWorkspaceAsDefaultMethodNotAllowedException * @throws MarkWorkspaceAsDefaultUnsupportedMediaTypeException * @throws MarkWorkspaceAsDefaultTooManyRequestsException * @throws MarkWorkspaceAsDefaultInternalServerErrorException @@ -71,22 +75,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new MarkWorkspaceAsDefaultMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new MarkWorkspaceAsDefaultInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PatchContactsContactId.php b/generated/Endpoint/PatchContactsContactId.php index 2855fc2..96c13bf 100644 --- a/generated/Endpoint/PatchContactsContactId.php +++ b/generated/Endpoint/PatchContactsContactId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchContactsContactIdUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\Contact; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchContactsContactId extends BaseEndpoint implements Endpoint @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{contactId}'], [$this->contactId], '/contacts/{contactId}'); + return str_replace(['{contactId}'], [rawurlencode($this->contactId)], '/contacts/{contactId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateContact) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchContactsContactIdUnauthorizedException * @throws PatchContactsContactIdForbiddenException * @throws PatchContactsContactIdNotFoundException + * @throws PatchContactsContactIdMethodNotAllowedException * @throws PatchContactsContactIdUnsupportedMediaTypeException * @throws PatchContactsContactIdTooManyRequestsException * @throws PatchContactsContactIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Contact::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchContactsContactIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchContactsContactIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchCustomExperienceLogo.php b/generated/Endpoint/PatchCustomExperienceLogo.php index 8a1656f..ddf8d21 100644 --- a/generated/Endpoint/PatchCustomExperienceLogo.php +++ b/generated/Endpoint/PatchCustomExperienceLogo.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperienceLogoUnsupportedMediaTypeException; @@ -14,6 +16,7 @@ use Qdequippe\Yousign\Api\Model\CustomExperience; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\PatchCustomExperienceLogoRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -44,7 +47,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{customExperienceId}'], [$this->customExperienceId], '/custom_experiences/{customExperienceId}/logo'); + return str_replace(['{customExperienceId}'], [rawurlencode($this->customExperienceId)], '/custom_experiences/{customExperienceId}/logo'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -52,9 +55,26 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof PatchCustomExperienceLogoRequest) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -74,6 +94,7 @@ public function getExtraHeaders(): array * @throws PatchCustomExperienceLogoBadRequestException * @throws PatchCustomExperienceLogoUnauthorizedException * @throws PatchCustomExperienceLogoForbiddenException + * @throws PatchCustomExperienceLogoMethodNotAllowedException * @throws PatchCustomExperienceLogoUnsupportedMediaTypeException * @throws PatchCustomExperienceLogoTooManyRequestsException * @throws PatchCustomExperienceLogoInternalServerErrorException @@ -82,29 +103,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, CustomExperience::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomExperienceLogoMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperienceLogoInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchCustomExperiencesCustomExperienceId.php b/generated/Endpoint/PatchCustomExperiencesCustomExperienceId.php index 9f2e998..a1d7d5d 100644 --- a/generated/Endpoint/PatchCustomExperiencesCustomExperienceId.php +++ b/generated/Endpoint/PatchCustomExperiencesCustomExperienceId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchCustomExperiencesCustomExperienceIdUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\CustomExperience; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchCustomExperiencesCustomExperienceId extends BaseEndpoint implements Endpoint @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{customExperienceId}'], [$this->customExperienceId], '/custom_experiences/{customExperienceId}'); + return str_replace(['{customExperienceId}'], [rawurlencode($this->customExperienceId)], '/custom_experiences/{customExperienceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateCustomExperience) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchCustomExperiencesCustomExperienceIdUnauthorizedException * @throws PatchCustomExperiencesCustomExperienceIdForbiddenException * @throws PatchCustomExperiencesCustomExperienceIdNotFoundException + * @throws PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException * @throws PatchCustomExperiencesCustomExperienceIdUnsupportedMediaTypeException * @throws PatchCustomExperiencesCustomExperienceIdTooManyRequestsException * @throws PatchCustomExperiencesCustomExperienceIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, CustomExperience::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchCustomExperiencesCustomExperienceIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchCustomPropertiesId.php b/generated/Endpoint/PatchCustomPropertiesId.php new file mode 100644 index 0000000..6be7fa0 --- /dev/null +++ b/generated/Endpoint/PatchCustomPropertiesId.php @@ -0,0 +1,113 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{customPropertyId}'], [rawurlencode($this->customPropertyId)], '/custom_properties/{customPropertyId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof UpdateCustomProperty) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return CustomProperty|null + * + * @throws PatchCustomPropertiesIdBadRequestException + * @throws PatchCustomPropertiesIdUnauthorizedException + * @throws PatchCustomPropertiesIdForbiddenException + * @throws PatchCustomPropertiesIdNotFoundException + * @throws PatchCustomPropertiesIdMethodNotAllowedException + * @throws PatchCustomPropertiesIdTooManyRequestsException + * @throws PatchCustomPropertiesIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CustomProperty::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchCustomPropertiesIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PatchLabelId.php b/generated/Endpoint/PatchLabelId.php new file mode 100644 index 0000000..775736b --- /dev/null +++ b/generated/Endpoint/PatchLabelId.php @@ -0,0 +1,118 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{labelId}'], [rawurlencode($this->labelId)], '/labels/{labelId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof UpdateLabel) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return Label|null + * + * @throws PatchLabelIdBadRequestException + * @throws PatchLabelIdUnauthorizedException + * @throws PatchLabelIdForbiddenException + * @throws PatchLabelIdNotFoundException + * @throws PatchLabelIdMethodNotAllowedException + * @throws PatchLabelIdUnsupportedMediaTypeException + * @throws PatchLabelIdTooManyRequestsException + * @throws PatchLabelIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, Label::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchLabelIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PatchSignatureRequestsIdDocumentRequestsId.php b/generated/Endpoint/PatchSignatureRequestsIdDocumentRequestsId.php new file mode 100644 index 0000000..23be2da --- /dev/null +++ b/generated/Endpoint/PatchSignatureRequestsIdDocumentRequestsId.php @@ -0,0 +1,120 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{signatureRequestId}', '{documentRequestId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentRequestId)], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof UpdateSignerDocumentRequest) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return SignerDocumentRequest|null + * + * @throws PatchSignatureRequestsIdDocumentRequestsIdBadRequestException + * @throws PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException + * @throws PatchSignatureRequestsIdDocumentRequestsIdForbiddenException + * @throws PatchSignatureRequestsIdDocumentRequestsIdNotFoundException + * @throws PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException + * @throws PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException + * @throws PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException + * @throws PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, SignerDocumentRequest::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PatchSignatureRequestsSignatureRequestId.php b/generated/Endpoint/PatchSignatureRequestsSignatureRequestId.php index cb9ff73..3b42a31 100644 --- a/generated/Endpoint/PatchSignatureRequestsSignatureRequestId.php +++ b/generated/Endpoint/PatchSignatureRequestsSignatureRequestId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignatureRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchSignatureRequestsSignatureRequestId extends BaseEndpoint implements Endpoint @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateSignatureRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -69,6 +72,7 @@ public function getExtraHeaders(): array * @throws PatchSignatureRequestsSignatureRequestIdUnauthorizedException * @throws PatchSignatureRequestsSignatureRequestIdForbiddenException * @throws PatchSignatureRequestsSignatureRequestIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException * @throws PatchSignatureRequestsSignatureRequestIdUnsupportedMediaTypeException * @throws PatchSignatureRequestsSignatureRequestIdTooManyRequestsException * @throws PatchSignatureRequestsSignatureRequestIdInternalServerErrorException @@ -77,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignatureRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdApproversApproverId.php b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdApproversApproverId.php index 3b73624..040db7c 100644 --- a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdApproversApproverId.php +++ b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdApproversApproverId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException; @@ -14,14 +15,16 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; -use Qdequippe\Yousign\Api\Model\PatchSignatureRequestsSignatureRequestIdApproversApproverIdRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; +use Qdequippe\Yousign\Api\Model\UpdateApprover; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchSignatureRequestsSignatureRequestIdApproversApproverId extends BaseEndpoint implements Endpoint @@ -34,7 +37,7 @@ class PatchSignatureRequestsSignatureRequestIdApproversApproverId extends BaseEn * @param string $signatureRequestId Signature Request Id * @param string $approverId Approver Id */ - public function __construct(protected string $signatureRequestId, protected string $approverId, ?PatchSignatureRequestsSignatureRequestIdApproversApproverIdRequest $requestBody = null) + public function __construct(protected string $signatureRequestId, protected string $approverId, ?UpdateApprover $requestBody = null) { $this->body = $requestBody; } @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{approverId}'], [$this->signatureRequestId, $this->approverId], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); + return str_replace(['{signatureRequestId}', '{approverId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->approverId)], '/signature_requests/{signatureRequestId}/approvers/{approverId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof PatchSignatureRequestsSignatureRequestIdApproversApproverIdRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + if ($this->body instanceof UpdateApprover) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnsupportedMediaTypeException * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException * @throws PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Approver::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdApproversApproverIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php index f97261b..6e5d538 100644 --- a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php +++ b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerConsentRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -20,6 +22,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId extends BaseEndpoint implements Endpoint @@ -29,7 +32,7 @@ class PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId ex /** * Updates a given Signer Consent Request. * Any parameters not provided are left unchanged. - * This action is only permitted when the Signature Request is a draft. + * This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{consentRequestId}'], [$this->signatureRequestId, $this->consentRequestId], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}'); + return str_replace(['{signatureRequestId}', '{consentRequestId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->consentRequestId)], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateSignerConsentRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException * @throws PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException */ @@ -77,29 +81,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignerConsentRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId.php b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId.php index e27cdb9..2ad9249 100644 --- a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId.php +++ b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId extends BaseEndpoint implements Endpoint @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateDocument) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnsupportedMediaTypeException * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException * @throws PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Document::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdSignersSignerId.php b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdSignersSignerId.php index 3898b50..7b595c3 100644 --- a/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdSignersSignerId.php +++ b/generated/Endpoint/PatchSignatureRequestsSignatureRequestIdSignersSignerId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\Signer; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchSignatureRequestsSignatureRequestIdSignersSignerId extends BaseEndpoint implements Endpoint @@ -47,13 +50,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateSigner) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -71,6 +74,7 @@ public function getExtraHeaders(): array * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException + * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnsupportedMediaTypeException * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException * @throws PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException @@ -79,32 +83,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Signer::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchSignatureRequestsSignatureRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchUsersUserId.php b/generated/Endpoint/PatchUsersUserId.php index 7a52c39..1fb1a68 100644 --- a/generated/Endpoint/PatchUsersUserId.php +++ b/generated/Endpoint/PatchUsersUserId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchUsersUserIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchUsersUserId extends BaseEndpoint implements Endpoint @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{userId}'], [$this->userId], '/users/{userId}'); + return str_replace(['{userId}'], [rawurlencode($this->userId)], '/users/{userId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateUser) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchUsersUserIdUnauthorizedException * @throws PatchUsersUserIdForbiddenException * @throws PatchUsersUserIdNotFoundException + * @throws PatchUsersUserIdMethodNotAllowedException * @throws PatchUsersUserIdUnsupportedMediaTypeException * @throws PatchUsersUserIdTooManyRequestsException * @throws PatchUsersUserIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, User::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchUsersUserIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchUsersUserIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchWebhooksWebhookId.php b/generated/Endpoint/PatchWebhooksWebhookId.php index c3bb899..a67321d 100644 --- a/generated/Endpoint/PatchWebhooksWebhookId.php +++ b/generated/Endpoint/PatchWebhooksWebhookId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchWebhooksWebhookIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -20,6 +22,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchWebhooksWebhookId extends BaseEndpoint implements Endpoint @@ -44,13 +47,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{webhookId}'], [$this->webhookId], '/webhooks/{webhookId}'); + return str_replace(['{webhookId}'], [rawurlencode($this->webhookId)], '/webhooks/{webhookId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateWebhookSubscription) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -68,6 +71,7 @@ public function getExtraHeaders(): array * @throws PatchWebhooksWebhookIdUnauthorizedException * @throws PatchWebhooksWebhookIdForbiddenException * @throws PatchWebhooksWebhookIdNotFoundException + * @throws PatchWebhooksWebhookIdMethodNotAllowedException * @throws PatchWebhooksWebhookIdTooManyRequestsException * @throws PatchWebhooksWebhookIdInternalServerErrorException */ @@ -75,29 +79,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, WebhookSubscription::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWebhooksWebhookIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWebhooksWebhookIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PatchWorkflowSessionsIdApplicantsId.php b/generated/Endpoint/PatchWorkflowSessionsIdApplicantsId.php new file mode 100644 index 0000000..7a227ef --- /dev/null +++ b/generated/Endpoint/PatchWorkflowSessionsIdApplicantsId.php @@ -0,0 +1,114 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{workflowSessionId}', '{applicantId}'], [rawurlencode($this->workflowSessionId), rawurlencode($this->applicantId)], '/workflow_sessions/{workflowSessionId}/applicants/{applicantId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof UpdateWorkflowSessionApplicant) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PatchWorkflowSessionsIdApplicantsIdBadRequestException + * @throws PatchWorkflowSessionsIdApplicantsIdUnauthorizedException + * @throws PatchWorkflowSessionsIdApplicantsIdForbiddenException + * @throws PatchWorkflowSessionsIdApplicantsIdNotFoundException + * @throws PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException + * @throws PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException + * @throws PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PatchWorkspacesWorkspaceId.php b/generated/Endpoint/PatchWorkspacesWorkspaceId.php index 8f775cd..93ebfa4 100644 --- a/generated/Endpoint/PatchWorkspacesWorkspaceId.php +++ b/generated/Endpoint/PatchWorkspacesWorkspaceId.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PatchWorkspacesWorkspaceIdUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PatchWorkspacesWorkspaceId extends BaseEndpoint implements Endpoint @@ -46,13 +49,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{workspaceId}'], [$this->workspaceId], '/workspaces/{workspaceId}'); + return str_replace(['{workspaceId}'], [rawurlencode($this->workspaceId)], '/workspaces/{workspaceId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof UpdateWorkspace) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -70,6 +73,7 @@ public function getExtraHeaders(): array * @throws PatchWorkspacesWorkspaceIdUnauthorizedException * @throws PatchWorkspacesWorkspaceIdForbiddenException * @throws PatchWorkspacesWorkspaceIdNotFoundException + * @throws PatchWorkspacesWorkspaceIdMethodNotAllowedException * @throws PatchWorkspacesWorkspaceIdUnsupportedMediaTypeException * @throws PatchWorkspacesWorkspaceIdTooManyRequestsException * @throws PatchWorkspacesWorkspaceIdInternalServerErrorException @@ -78,32 +82,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Workspace::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PatchWorkspacesWorkspaceIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PatchWorkspacesWorkspaceIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostArchives.php b/generated/Endpoint/PostArchives.php index 0a7350a..a201060 100644 --- a/generated/Endpoint/PostArchives.php +++ b/generated/Endpoint/PostArchives.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PostArchivesBadRequestException; use Qdequippe\Yousign\Api\Exception\PostArchivesForbiddenException; use Qdequippe\Yousign\Api\Exception\PostArchivesInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostArchivesMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostArchivesNotFoundException; use Qdequippe\Yousign\Api\Exception\PostArchivesTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostArchivesUnauthorizedException; @@ -15,6 +17,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -52,9 +55,26 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof UploadArchivedFile) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -75,6 +95,7 @@ public function getExtraHeaders(): array * @throws PostArchivesUnauthorizedException * @throws PostArchivesForbiddenException * @throws PostArchivesNotFoundException + * @throws PostArchivesMethodNotAllowedException * @throws PostArchivesUnsupportedMediaTypeException * @throws PostArchivesTooManyRequestsException * @throws PostArchivesInternalServerErrorException @@ -83,32 +104,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ArchivedFile::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostArchivesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostArchivesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostBankAccountVerifications.php b/generated/Endpoint/PostBankAccountVerifications.php deleted file mode 100644 index af351bd..0000000 --- a/generated/Endpoint/PostBankAccountVerifications.php +++ /dev/null @@ -1,112 +0,0 @@ -body = $requestBody; - } - - public function getMethod(): string - { - return 'POST'; - } - - public function getUri(): string - { - return '/bank_account_verifications'; - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof CreateBankAccountVerification) { - $bodyBuilder = new MultipartStreamBuilder($streamFactory); - $formParameters = $serializer->normalize($this->body, 'json'); - foreach ($formParameters as $key => $value) { - $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); - } - - return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return BankAccountVerificationCreated|null - * - * @throws PostBankAccountVerificationsBadRequestException - * @throws PostBankAccountVerificationsUnauthorizedException - * @throws PostBankAccountVerificationsForbiddenException - * @throws PostBankAccountVerificationsUnsupportedMediaTypeException - * @throws PostBankAccountVerificationsTooManyRequestsException - * @throws PostBankAccountVerificationsInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, BankAccountVerificationCreated::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostBankAccountVerificationsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/PostContact.php b/generated/Endpoint/PostContact.php index 62bbaf9..20342ff 100644 --- a/generated/Endpoint/PostContact.php +++ b/generated/Endpoint/PostContact.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostContactBadRequestException; use Qdequippe\Yousign\Api\Exception\PostContactForbiddenException; use Qdequippe\Yousign\Api\Exception\PostContactInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostContactMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostContactNotFoundException; use Qdequippe\Yousign\Api\Exception\PostContactTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostContactUnauthorizedException; @@ -14,12 +15,14 @@ use Qdequippe\Yousign\Api\Model\CreateContact; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostContact extends BaseEndpoint implements Endpoint @@ -47,7 +50,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateContact) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -65,6 +68,7 @@ public function getExtraHeaders(): array * @throws PostContactUnauthorizedException * @throws PostContactForbiddenException * @throws PostContactNotFoundException + * @throws PostContactMethodNotAllowedException * @throws PostContactTooManyRequestsException * @throws PostContactInternalServerErrorException */ @@ -72,29 +76,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Contact::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostContactMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostContactInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostCustomExperience.php b/generated/Endpoint/PostCustomExperience.php index 7f8041b..fffadbe 100644 --- a/generated/Endpoint/PostCustomExperience.php +++ b/generated/Endpoint/PostCustomExperience.php @@ -6,6 +6,8 @@ use Qdequippe\Yousign\Api\Exception\PostCustomExperienceBadRequestException; use Qdequippe\Yousign\Api\Exception\PostCustomExperienceForbiddenException; use Qdequippe\Yousign\Api\Exception\PostCustomExperienceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceMethodNotAllowedException; +use Qdequippe\Yousign\Api\Exception\PostCustomExperienceNotFoundException; use Qdequippe\Yousign\Api\Exception\PostCustomExperienceTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostCustomExperienceUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PostCustomExperienceUnsupportedMediaTypeException; @@ -14,12 +16,15 @@ use Qdequippe\Yousign\Api\Model\CustomExperience; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; +use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostCustomExperience extends BaseEndpoint implements Endpoint @@ -47,7 +52,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateCustomExperience) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -64,6 +69,8 @@ public function getExtraHeaders(): array * @throws PostCustomExperienceBadRequestException * @throws PostCustomExperienceUnauthorizedException * @throws PostCustomExperienceForbiddenException + * @throws PostCustomExperienceNotFoundException + * @throws PostCustomExperienceMethodNotAllowedException * @throws PostCustomExperienceUnsupportedMediaTypeException * @throws PostCustomExperienceTooManyRequestsException * @throws PostCustomExperienceInternalServerErrorException @@ -72,29 +79,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, CustomExperience::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomExperienceNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomExperienceMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostCustomExperienceInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostCustomProperties.php b/generated/Endpoint/PostCustomProperties.php new file mode 100644 index 0000000..3fe05c9 --- /dev/null +++ b/generated/Endpoint/PostCustomProperties.php @@ -0,0 +1,110 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/custom_properties'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof CreateCustomProperty) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return CustomProperty|null + * + * @throws PostCustomPropertiesBadRequestException + * @throws PostCustomPropertiesUnauthorizedException + * @throws PostCustomPropertiesForbiddenException + * @throws PostCustomPropertiesNotFoundException + * @throws PostCustomPropertiesMethodNotAllowedException + * @throws PostCustomPropertiesTooManyRequestsException + * @throws PostCustomPropertiesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CustomProperty::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostCustomPropertiesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostDocumentAnalyses.php b/generated/Endpoint/PostDocumentAnalyses.php new file mode 100644 index 0000000..281b526 --- /dev/null +++ b/generated/Endpoint/PostDocumentAnalyses.php @@ -0,0 +1,155 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/document_analyses'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateDocumentAnalysisFromApplicant) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + if ($this->body instanceof \stdClass) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PostDocumentAnalysesBadRequestException + * @throws PostDocumentAnalysesUnauthorizedException + * @throws PostDocumentAnalysesForbiddenException + * @throws PostDocumentAnalysesNotFoundException + * @throws PostDocumentAnalysesMethodNotAllowedException + * @throws PostDocumentAnalysesUnsupportedMediaTypeException + * @throws PostDocumentAnalysesTooManyRequestsException + * @throws PostDocumentAnalysesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentAnalysesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostDocuments.php b/generated/Endpoint/PostDocuments.php index 91ba23b..ceef70e 100644 --- a/generated/Endpoint/PostDocuments.php +++ b/generated/Endpoint/PostDocuments.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PostDocumentsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostDocumentsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostDocumentsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostDocumentsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostDocumentsUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PostDocumentsUnsupportedMediaTypeException; @@ -15,6 +17,7 @@ use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; @@ -50,9 +53,26 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof CreateDocumentFromMultipart) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -72,6 +92,7 @@ public function getExtraHeaders(): array * @throws PostDocumentsBadRequestException * @throws PostDocumentsUnauthorizedException * @throws PostDocumentsForbiddenException + * @throws PostDocumentsMethodNotAllowedException * @throws PostDocumentsUnsupportedMediaTypeException * @throws PostDocumentsTooManyRequestsException * @throws PostDocumentsInternalServerErrorException @@ -80,29 +101,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Document::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostElectronicSealImagesPreview.php b/generated/Endpoint/PostElectronicSealImagesPreview.php new file mode 100644 index 0000000..371ed5c --- /dev/null +++ b/generated/Endpoint/PostElectronicSealImagesPreview.php @@ -0,0 +1,113 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/electronic_seal_images/preview'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof CreateElectronicSealImagePreviewPayload) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['image/png', 'application/json']]; + } + + return $this->accept; + } + + /** + * @throws PostElectronicSealImagesPreviewBadRequestException + * @throws PostElectronicSealImagesPreviewUnauthorizedException + * @throws PostElectronicSealImagesPreviewForbiddenException + * @throws PostElectronicSealImagesPreviewNotFoundException + * @throws PostElectronicSealImagesPreviewMethodNotAllowedException + * @throws PostElectronicSealImagesPreviewTooManyRequestsException + * @throws PostElectronicSealImagesPreviewInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null): void + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealImagesPreviewInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostElectronicSeals.php b/generated/Endpoint/PostElectronicSeals.php index b96302c..940ba4a 100644 --- a/generated/Endpoint/PostElectronicSeals.php +++ b/generated/Endpoint/PostElectronicSeals.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostElectronicSealsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostElectronicSealsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostElectronicSealsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostElectronicSealsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostElectronicSealsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostElectronicSealsUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PostElectronicSealsUnsupportedMediaTypeException; @@ -14,12 +15,14 @@ use Qdequippe\Yousign\Api\Model\ElectronicSeal; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostElectronicSeals extends BaseEndpoint implements Endpoint @@ -47,7 +50,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateElectronicSealPayload) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -64,6 +67,7 @@ public function getExtraHeaders(): array * @throws PostElectronicSealsBadRequestException * @throws PostElectronicSealsUnauthorizedException * @throws PostElectronicSealsForbiddenException + * @throws PostElectronicSealsMethodNotAllowedException * @throws PostElectronicSealsUnsupportedMediaTypeException * @throws PostElectronicSealsTooManyRequestsException * @throws PostElectronicSealsInternalServerErrorException @@ -72,29 +76,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ElectronicSeal::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostElectronicSealsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostElectronicSealsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostIdentityVerifications.php b/generated/Endpoint/PostIdentityVerifications.php deleted file mode 100644 index 121ff6c..0000000 --- a/generated/Endpoint/PostIdentityVerifications.php +++ /dev/null @@ -1,104 +0,0 @@ -body = $requestBody; - } - - public function getMethod(): string - { - return 'POST'; - } - - public function getUri(): string - { - return '/video_identity_verifications'; - } - - public function getBody(SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof CreateVideoIdentityVerification) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * @return VideoIdentityVerificationCreated|null - * - * @throws PostIdentityVerificationsBadRequestException - * @throws PostIdentityVerificationsUnauthorizedException - * @throws PostIdentityVerificationsForbiddenException - * @throws PostIdentityVerificationsNotFoundException - * @throws PostIdentityVerificationsTooManyRequestsException - * @throws PostIdentityVerificationsInternalServerErrorException - */ - protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) - { - $status = $response->getStatusCode(); - $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, VideoIdentityVerificationCreated::class, 'json'); - } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); - } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); - } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); - } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); - } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); - } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { - throw new PostIdentityVerificationsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); - } - - return null; - } - - public function getAuthenticationScopes(): array - { - return ['bearerAuth']; - } -} diff --git a/generated/Endpoint/PostLabels.php b/generated/Endpoint/PostLabels.php new file mode 100644 index 0000000..f3eec13 --- /dev/null +++ b/generated/Endpoint/PostLabels.php @@ -0,0 +1,103 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/labels'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof CreateLabel) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return Label|null + * + * @throws PostLabelsBadRequestException + * @throws PostLabelsUnauthorizedException + * @throws PostLabelsForbiddenException + * @throws PostLabelsMethodNotAllowedException + * @throws PostLabelsTooManyRequestsException + * @throws PostLabelsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, Label::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostLabelsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostMonitoringsNaturalPersons.php b/generated/Endpoint/PostMonitoringsNaturalPersons.php new file mode 100644 index 0000000..37e55fe --- /dev/null +++ b/generated/Endpoint/PostMonitoringsNaturalPersons.php @@ -0,0 +1,118 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/monitorings/natural_persons'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateNaturalPersonMonitoring) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return NaturalPersonMonitoringFull|null + * + * @throws PostMonitoringsNaturalPersonsBadRequestException + * @throws PostMonitoringsNaturalPersonsUnauthorizedException + * @throws PostMonitoringsNaturalPersonsForbiddenException + * @throws PostMonitoringsNaturalPersonsMethodNotAllowedException + * @throws PostMonitoringsNaturalPersonsUnsupportedMediaTypeException + * @throws PostMonitoringsNaturalPersonsTooManyRequestsException + * @throws PostMonitoringsNaturalPersonsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, NaturalPersonMonitoringFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostMonitoringsNaturalPersonsIdCancel.php b/generated/Endpoint/PostMonitoringsNaturalPersonsIdCancel.php new file mode 100644 index 0000000..7ba4756 --- /dev/null +++ b/generated/Endpoint/PostMonitoringsNaturalPersonsIdCancel.php @@ -0,0 +1,106 @@ +naturalPersonMonitoringId)], '/monitorings/natural_persons/{naturalPersonMonitoringId}/cancel'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return NaturalPersonMonitoringFull|null + * + * @throws PostMonitoringsNaturalPersonsIdCancelBadRequestException + * @throws PostMonitoringsNaturalPersonsIdCancelUnauthorizedException + * @throws PostMonitoringsNaturalPersonsIdCancelForbiddenException + * @throws PostMonitoringsNaturalPersonsIdCancelNotFoundException + * @throws PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException + * @throws PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException + * @throws PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, NaturalPersonMonitoringFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostSignatureRequests.php b/generated/Endpoint/PostSignatureRequests.php index 6646c9a..9480eee 100644 --- a/generated/Endpoint/PostSignatureRequests.php +++ b/generated/Endpoint/PostSignatureRequests.php @@ -6,14 +6,15 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsUnsupportedMediaTypeException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -use Qdequippe\Yousign\Api\Model\CreateSignatureRequest; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignatureRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -31,7 +32,7 @@ class PostSignatureRequests extends BaseEndpoint implements Endpoint /** * Creates a new Signature Request resource. */ - public function __construct(?CreateSignatureRequest $requestBody = null) + public function __construct(?\stdClass $requestBody = null) { $this->body = $requestBody; } @@ -48,7 +49,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof CreateSignatureRequest) { + if ($this->body instanceof \stdClass) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } @@ -67,6 +68,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsUnauthorizedException * @throws PostSignatureRequestsForbiddenException * @throws PostSignatureRequestsNotFoundException + * @throws PostSignatureRequestsMethodNotAllowedException * @throws PostSignatureRequestsUnsupportedMediaTypeException * @throws PostSignatureRequestsTooManyRequestsException * @throws PostSignatureRequestsInternalServerErrorException @@ -75,32 +77,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignatureRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsIdPause.php b/generated/Endpoint/PostSignatureRequestsIdPause.php new file mode 100644 index 0000000..c96c212 --- /dev/null +++ b/generated/Endpoint/PostSignatureRequestsIdPause.php @@ -0,0 +1,104 @@ +signatureRequestId)], '/signature_requests/{signatureRequestId}/pause'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return PostSignatureRequestsIdPause201Response|null + * + * @throws PostSignatureRequestsIdPauseBadRequestException + * @throws PostSignatureRequestsIdPauseUnauthorizedException + * @throws PostSignatureRequestsIdPauseForbiddenException + * @throws PostSignatureRequestsIdPauseNotFoundException + * @throws PostSignatureRequestsIdPauseMethodNotAllowedException + * @throws PostSignatureRequestsIdPauseTooManyRequestsException + * @throws PostSignatureRequestsIdPauseInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, PostSignatureRequestsIdPause201Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdPauseInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostSignatureRequestsIdResume.php b/generated/Endpoint/PostSignatureRequestsIdResume.php new file mode 100644 index 0000000..f4975b4 --- /dev/null +++ b/generated/Endpoint/PostSignatureRequestsIdResume.php @@ -0,0 +1,104 @@ +signatureRequestId)], '/signature_requests/{signatureRequestId}/resume'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return PostSignatureRequestsIdResume201Response|null + * + * @throws PostSignatureRequestsIdResumeBadRequestException + * @throws PostSignatureRequestsIdResumeUnauthorizedException + * @throws PostSignatureRequestsIdResumeForbiddenException + * @throws PostSignatureRequestsIdResumeNotFoundException + * @throws PostSignatureRequestsIdResumeMethodNotAllowedException + * @throws PostSignatureRequestsIdResumeTooManyRequestsException + * @throws PostSignatureRequestsIdResumeInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, PostSignatureRequestsIdResume201Response::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdResumeInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostSignatureRequestsIdSignersIdIdentityVerification.php b/generated/Endpoint/PostSignatureRequestsIdSignersIdIdentityVerification.php new file mode 100644 index 0000000..2e216b3 --- /dev/null +++ b/generated/Endpoint/PostSignatureRequestsIdSignersIdIdentityVerification.php @@ -0,0 +1,142 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/identity_verification'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof SignerIdentityVerification) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['recto' => ['filename' => 'recto'], 'verso' => ['filename' => 'verso']]; + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException + * @throws PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostSignatureRequestsIdSignersIdUnblockIdentification.php b/generated/Endpoint/PostSignatureRequestsIdSignersIdUnblockIdentification.php new file mode 100644 index 0000000..810e0ad --- /dev/null +++ b/generated/Endpoint/PostSignatureRequestsIdSignersIdUnblockIdentification.php @@ -0,0 +1,104 @@ +signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/unblock_identification'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException + * @throws PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdActivate.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdActivate.php index 05887e9..e250996 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdActivate.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdActivate.php @@ -6,12 +6,15 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException; +use Qdequippe\Yousign\Api\Model\ActivateSignatureRequest; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignatureRequestActivated; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -19,6 +22,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdActivate extends BaseEndpoint implements Endpoint @@ -29,10 +33,14 @@ class PostSignatureRequestsSignatureRequestIdActivate extends BaseEndpoint imple * Activates a Signature request, so it is not in `draft` status anymore. * If the `delivery_mode` is not `null`, activating the Signature Request will trigger the notifications to Approvers/Followers/Signers. * - * @param string $signatureRequestId Signature Request Id + * When the Signature Request is set to be archived on Y (`archiving` is `archive_y`), activation fails with a `400` error of type `configuration.archive_y_identifier_required` if no archive Y identifier is configured on its workspace or, as a fallback, on its organization. + * + * @param string $signatureRequestId Signature Request Id + * @param ActivateSignatureRequest|mixed|null $requestBody */ - public function __construct(protected string $signatureRequestId) + public function __construct(protected string $signatureRequestId, $requestBody = null) { + $this->body = $requestBody; } public function getMethod(): string @@ -42,11 +50,18 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/activate'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/activate'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { + if ($this->body instanceof ActivateSignatureRequest) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + if (null !== $this->body) { + return [['Content-Type' => ['*/*']], $this->body]; + } + return [[], null]; } @@ -62,6 +77,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdActivateForbiddenException * @throws PostSignatureRequestsSignatureRequestIdActivateNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException */ @@ -69,29 +85,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignatureRequestActivated::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdActivateInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApprovers.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApprovers.php index 6ebf9b1..9a22cec 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApprovers.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApprovers.php @@ -6,14 +6,17 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException; use Qdequippe\Yousign\Api\Model\Approver; use Qdequippe\Yousign\Api\Model\BadRequestResponse; +use Qdequippe\Yousign\Api\Model\CreateApprover; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -21,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdApprovers extends BaseEndpoint implements Endpoint @@ -32,7 +36,7 @@ class PostSignatureRequestsSignatureRequestIdApprovers extends BaseEndpoint impl * * @param string $signatureRequestId Signature Request Id */ - public function __construct(protected string $signatureRequestId, ?\stdClass $requestBody = null) + public function __construct(protected string $signatureRequestId, ?CreateApprover $requestBody = null) { $this->body = $requestBody; } @@ -44,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/approvers'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/approvers'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + if ($this->body instanceof CreateApprover) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -68,6 +72,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdApproversForbiddenException * @throws PostSignatureRequestsSignatureRequestIdApproversNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException @@ -76,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Approver::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder.php index 8071f70..0b0b5d9 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{approverId}'], [$this->signatureRequestId, $this->approverId], '/signature_requests/{signatureRequestId}/approvers/{approverId}/send_reminder'); + return str_replace(['{signatureRequestId}', '{approverId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->approverId)], '/signature_requests/{signatureRequestId}/approvers/{approverId}/send_reminder'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (201 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdCancel.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdCancel.php index 6112eb7..3c73348 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdCancel.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdCancel.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException; @@ -13,15 +14,17 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; +use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdCancel201Response; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdCancelRequest; -use Qdequippe\Yousign\Api\Model\SignatureRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdCancel extends BaseEndpoint implements Endpoint @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/cancel'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/cancel'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof PostSignatureRequestsSignatureRequestIdCancelRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -63,12 +66,13 @@ public function getExtraHeaders(): array } /** - * @return SignatureRequest|null + * @return PostSignatureRequestsSignatureRequestIdCancel201Response|null * * @throws PostSignatureRequestsSignatureRequestIdCancelBadRequestException * @throws PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdCancelForbiddenException * @throws PostSignatureRequestsSignatureRequestIdCancelNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdCancelUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException @@ -77,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, SignatureRequest::class, 'json'); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, PostSignatureRequestsSignatureRequestIdCancel201Response::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdCancelInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdConsentRequests.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdConsentRequests.php index 6174db0..d67d920 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdConsentRequests.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdConsentRequests.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\CreateSignerConsentRequest; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerConsentRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdConsentRequests extends BaseEndpoint implements Endpoint @@ -29,7 +32,7 @@ class PostSignatureRequestsSignatureRequestIdConsentRequests extends BaseEndpoin use EndpointTrait; /** - * Adds a Signer Consent Request to a given Signature Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer Consent Request to a given Signature Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id */ @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/consent_requests'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/consent_requests'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateSignerConsentRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -69,6 +72,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException @@ -77,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignerConsentRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdConsentRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentRequests.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentRequests.php index 69ef8d9..b12639b 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentRequests.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentRequests.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\CreateSignerDocumentRequest; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerDocumentRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdDocumentRequests extends BaseEndpoint implements Endpoint @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/document_requests'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/document_requests'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateSignerDocumentRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -69,6 +72,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException @@ -77,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignerDocumentRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentRequestsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocuments.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocuments.php index b2f8c9a..8c0905f 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocuments.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocuments.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException; @@ -17,6 +19,7 @@ use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -24,6 +27,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdDocuments extends BaseEndpoint implements Endpoint @@ -31,7 +35,21 @@ class PostSignatureRequestsSignatureRequestIdDocuments extends BaseEndpoint impl use EndpointTrait; /** - * Adds a Document to a given Signature Request. + * Add a Document to a given Signature Request. + * + * **Limits:** a maximum of 50 Documents can be added per Signature Request. + * + * Related guide: [Document](https://developers.youtrust.com/docs/document-1) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file (`PDF`, `DOCX`, `JPEG`, `JPG`, `PNG`). + * - 📝 `application/json` — reference an existing Electronic Seal Document by ID. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `plus`, `pro`, `scale` + * - Add-ons (for production access): _none_ * * @param string $signatureRequestId Signature Request Id * @param CreateDocumentFromMultipart|CreateDocumentFromJson|null $requestBody @@ -48,7 +66,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/documents'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/documents'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -56,15 +74,32 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof CreateDocumentFromMultipart) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; } if ($this->body instanceof CreateDocumentFromJson) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -82,6 +117,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException * @throws PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException @@ -90,32 +126,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Document::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php index 917c1a7..ae004b2 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields.php @@ -2,10 +2,12 @@ namespace Qdequippe\Yousign\Api\Endpoint; +use Jane\Component\JsonSchemaRuntime\Exception\MalformedJsonException; use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException; @@ -13,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -44,13 +47,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -66,6 +69,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException @@ -74,32 +78,37 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace.php index fde3950..87448b0 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplace.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException; @@ -15,6 +17,7 @@ use Qdequippe\Yousign\Api\Model\Document; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -47,7 +50,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}'], [$this->signatureRequestId, $this->documentId], '/signature_requests/{signatureRequestId}/documents/{documentId}/replace'); + return str_replace(['{signatureRequestId}', '{documentId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/replace'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -55,9 +58,26 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceRequest) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -78,6 +98,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException @@ -86,32 +107,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Document::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdFollowers.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdFollowers.php index 0668b50..f653c7f 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdFollowers.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdFollowers.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException; @@ -15,6 +16,7 @@ use Qdequippe\Yousign\Api\Model\Follower; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -46,7 +48,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/followers'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/followers'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -70,6 +72,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdFollowersForbiddenException * @throws PostSignatureRequestsSignatureRequestIdFollowersNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdFollowersUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException @@ -78,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Follower[]', 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdFollowersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdMetadata.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdMetadata.php index 92077ae..f83b513 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdMetadata.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdMetadata.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; use Qdequippe\Yousign\Api\Model\Metadata; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -21,6 +23,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdMetadata extends BaseEndpoint implements Endpoint @@ -44,13 +47,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/metadata'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/metadata'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof Metadata) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -68,6 +71,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdMetadataForbiddenException * @throws PostSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdMetadataUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException @@ -76,32 +80,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Metadata::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdReactivate.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdReactivate.php index 91d89be..87d3659 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdReactivate.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdReactivate.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\PostSignatureRequestsSignatureRequestIdReactivateRequest; use Qdequippe\Yousign\Api\Model\SignatureRequest; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdReactivate extends BaseEndpoint implements Endpoint @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/reactivate'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/reactivate'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof PostSignatureRequestsSignatureRequestIdReactivateRequest) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -69,6 +72,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdReactivateForbiddenException * @throws PostSignatureRequestsSignatureRequestIdReactivateNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdReactivateUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException @@ -77,32 +81,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignatureRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdReactivateInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSigners.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSigners.php index cc0a03a..bb1c7a3 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSigners.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSigners.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException; @@ -13,6 +14,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\Signer; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -44,13 +46,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/signers'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/signers'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -68,6 +70,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdSignersForbiddenException * @throws PostSignatureRequestsSignatureRequestIdSignersNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdSignersUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException @@ -76,32 +79,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Signer::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp.php index 6a3ac2f..260dc6e 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtp.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/send_otp'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/send_otp'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder.php index f1190ff..db345c7 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminder.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/send_reminder'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/send_reminder'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (201 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSign.php b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSign.php index 8739f4b..fd64eda 100644 --- a/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSign.php +++ b/generated/Endpoint/PostSignatureRequestsSignatureRequestIdSignersSignerIdSign.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignBadRequestException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException; @@ -14,6 +16,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerSign; use Qdequippe\Yousign\Api\Model\SignerSignWithUploadedSignatureImage; @@ -23,6 +26,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostSignatureRequestsSignatureRequestIdSignersSignerIdSign extends BaseEndpoint implements Endpoint @@ -32,6 +36,26 @@ class PostSignatureRequestsSignatureRequestIdSignersSignerIdSign extends BaseEnd /** * Sign a Signature Request on behalf of a given Signer. * + * Use this endpoint if you are integrating [your own signing flow](https://developers.youtrust.com/docs/building-your-own-signing-flow) (Signers won't go through Youtrust's pre-made signing flow). + * + * To use this endpoint, you must match the following conditions: + * - The Signature Request `delivery_mode` must be set to `none`. + * - The Signature Request must not have any Approver, Signer Document Request or Signer Consent Request. + * - The Signature Request must not have the parameter `signers_allowed_to_decline` set to `true`. + * - The signature level must be `"Simple eSignature"`. + * + * Related guide: [Building your own signing flow](https://developers.youtrust.com/docs/building-your-own-signing-flow#step-3-collect-the-signer-consent-through-your-own-signing-flow) + * + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📝 `application/json` — sign without uploading a signature image. + * - 📁 `multipart/form-data` — upload a signature image alongside the consent payload. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `scale` + * - Add-ons (for production access): _none_ + * * @param string $signatureRequestId Signature Request Id * @param string $signerId Signer Id * @param SignerSign|SignerSignWithUploadedSignatureImage|null $requestBody @@ -48,20 +72,37 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{signerId}'], [$this->signatureRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/signers/{signerId}/sign'); + return str_replace(['{signatureRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/signers/{signerId}/sign'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof SignerSign) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } if ($this->body instanceof SignerSignWithUploadedSignatureImage) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['signature_image' => ['filename' => 'signature_image']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -80,6 +121,7 @@ public function getExtraHeaders(): array * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException + * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnsupportedMediaTypeException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException * @throws PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException @@ -91,25 +133,28 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostSignatureRequestsSignatureRequestIdSignersSignerIdSignInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PostUsers.php b/generated/Endpoint/PostUsers.php index 7d0964f..fb135ea 100644 --- a/generated/Endpoint/PostUsers.php +++ b/generated/Endpoint/PostUsers.php @@ -6,18 +6,21 @@ use Qdequippe\Yousign\Api\Exception\PostUsersBadRequestException; use Qdequippe\Yousign\Api\Exception\PostUsersForbiddenException; use Qdequippe\Yousign\Api\Exception\PostUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostUsersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostUsersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostUsersUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\CreateUser; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\User; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostUsers extends BaseEndpoint implements Endpoint @@ -26,8 +29,6 @@ class PostUsers extends BaseEndpoint implements Endpoint /** * Creates a new application User and sends them an invitation email. - * `email`: The email address must not match any existing User’s email. - * `workspaces`: The new User must be associated with at least one Workspace in the Organization. */ public function __construct(?CreateUser $requestBody = null) { @@ -47,7 +48,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateUser) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -64,6 +65,7 @@ public function getExtraHeaders(): array * @throws PostUsersBadRequestException * @throws PostUsersUnauthorizedException * @throws PostUsersForbiddenException + * @throws PostUsersMethodNotAllowedException * @throws PostUsersTooManyRequestsException * @throws PostUsersInternalServerErrorException */ @@ -71,26 +73,27 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, User::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostUsersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostUsersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostUsersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostUsersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostUsersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostUsersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostVerificationsBankAccountLookups.php b/generated/Endpoint/PostVerificationsBankAccountLookups.php new file mode 100644 index 0000000..be61fca --- /dev/null +++ b/generated/Endpoint/PostVerificationsBankAccountLookups.php @@ -0,0 +1,136 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/bank_account_lookups'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if (null !== $this->body) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if (null !== $this->body) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return BankAccountLookupFull|null + * + * @throws PostVerificationsBankAccountLookupsBadRequestException + * @throws PostVerificationsBankAccountLookupsUnauthorizedException + * @throws PostVerificationsBankAccountLookupsForbiddenException + * @throws PostVerificationsBankAccountLookupsMethodNotAllowedException + * @throws PostVerificationsBankAccountLookupsUnsupportedMediaTypeException + * @throws PostVerificationsBankAccountLookupsTooManyRequestsException + * @throws PostVerificationsBankAccountLookupsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, BankAccountLookupFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountLookupsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsBankAccounts.php b/generated/Endpoint/PostVerificationsBankAccounts.php new file mode 100644 index 0000000..5c37a09 --- /dev/null +++ b/generated/Endpoint/PostVerificationsBankAccounts.php @@ -0,0 +1,147 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/bank_accounts'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateBankAccountFromApplicant) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + if ($this->body instanceof \stdClass) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return BankAccountFull|null + * + * @throws PostVerificationsBankAccountsBadRequestException + * @throws PostVerificationsBankAccountsUnauthorizedException + * @throws PostVerificationsBankAccountsForbiddenException + * @throws PostVerificationsBankAccountsMethodNotAllowedException + * @throws PostVerificationsBankAccountsUnsupportedMediaTypeException + * @throws PostVerificationsBankAccountsTooManyRequestsException + * @throws PostVerificationsBankAccountsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, BankAccountFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsBankAccountsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsCompanies.php b/generated/Endpoint/PostVerificationsCompanies.php new file mode 100644 index 0000000..50bcd91 --- /dev/null +++ b/generated/Endpoint/PostVerificationsCompanies.php @@ -0,0 +1,157 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/companies'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if (null !== $this->body) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof InitiateCompanyFromFile) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return CompanyFull|null + * + * @throws PostVerificationsCompaniesBadRequestException + * @throws PostVerificationsCompaniesUnauthorizedException + * @throws PostVerificationsCompaniesForbiddenException + * @throws PostVerificationsCompaniesNotFoundException + * @throws PostVerificationsCompaniesMethodNotAllowedException + * @throws PostVerificationsCompaniesUnsupportedMediaTypeException + * @throws PostVerificationsCompaniesTooManyRequestsException + * @throws PostVerificationsCompaniesInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, CompanyFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsCompaniesInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsIdentityDocuments.php b/generated/Endpoint/PostVerificationsIdentityDocuments.php new file mode 100644 index 0000000..c59e506 --- /dev/null +++ b/generated/Endpoint/PostVerificationsIdentityDocuments.php @@ -0,0 +1,142 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/identity_documents'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateIdentityDocumentFromApplicant) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + if ($this->body instanceof \stdClass) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return IdentityDocumentFull|null + * + * @throws PostVerificationsIdentityDocumentsBadRequestException + * @throws PostVerificationsIdentityDocumentsUnauthorizedException + * @throws PostVerificationsIdentityDocumentsForbiddenException + * @throws PostVerificationsIdentityDocumentsMethodNotAllowedException + * @throws PostVerificationsIdentityDocumentsUnsupportedMediaTypeException + * @throws PostVerificationsIdentityDocumentsTooManyRequestsException + * @throws PostVerificationsIdentityDocumentsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, IdentityDocumentFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityDocumentsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsIdentityVideos.php b/generated/Endpoint/PostVerificationsIdentityVideos.php new file mode 100644 index 0000000..17b6b78 --- /dev/null +++ b/generated/Endpoint/PostVerificationsIdentityVideos.php @@ -0,0 +1,109 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/identity_videos'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateIdentityVideo) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return IdentityVideoFull|null + * + * @throws PostVerificationsIdentityVideosBadRequestException + * @throws PostVerificationsIdentityVideosUnauthorizedException + * @throws PostVerificationsIdentityVideosForbiddenException + * @throws PostVerificationsIdentityVideosNotFoundException + * @throws PostVerificationsIdentityVideosMethodNotAllowedException + * @throws PostVerificationsIdentityVideosTooManyRequestsException + * @throws PostVerificationsIdentityVideosInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, IdentityVideoFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsIdentityVideosInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsProofsOfAddress.php b/generated/Endpoint/PostVerificationsProofsOfAddress.php new file mode 100644 index 0000000..9595ccd --- /dev/null +++ b/generated/Endpoint/PostVerificationsProofsOfAddress.php @@ -0,0 +1,151 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/proofs_of_address'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateProofOfAddressFromApplicant) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + if ($this->body instanceof InitiateProofOfAddress) { + $bodyBuilder = new MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; + foreach ($formParameters as $key => $value) { + $value = \is_int($value) ? (string) $value : $value; + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); + } + + return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return ProofOfAddressVerificationFull|null + * + * @throws PostVerificationsProofsOfAddressBadRequestException + * @throws PostVerificationsProofsOfAddressUnauthorizedException + * @throws PostVerificationsProofsOfAddressForbiddenException + * @throws PostVerificationsProofsOfAddressMethodNotAllowedException + * @throws PostVerificationsProofsOfAddressUnsupportedMediaTypeException + * @throws PostVerificationsProofsOfAddressTooManyRequestsException + * @throws PostVerificationsProofsOfAddressInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, ProofOfAddressVerificationFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsProofsOfAddressInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostVerificationsWatchlists.php b/generated/Endpoint/PostVerificationsWatchlists.php new file mode 100644 index 0000000..7edb3aa --- /dev/null +++ b/generated/Endpoint/PostVerificationsWatchlists.php @@ -0,0 +1,109 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/verifications/watchlists'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof InitiateWatchlist) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return WatchlistFull|null + * + * @throws PostVerificationsWatchlistsBadRequestException + * @throws PostVerificationsWatchlistsUnauthorizedException + * @throws PostVerificationsWatchlistsForbiddenException + * @throws PostVerificationsWatchlistsMethodNotAllowedException + * @throws PostVerificationsWatchlistsUnsupportedMediaTypeException + * @throws PostVerificationsWatchlistsTooManyRequestsException + * @throws PostVerificationsWatchlistsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, WatchlistFull::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostVerificationsWatchlistsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostWebhooksSubscriptions.php b/generated/Endpoint/PostWebhooksSubscriptions.php index 7a20441..fe3e643 100644 --- a/generated/Endpoint/PostWebhooksSubscriptions.php +++ b/generated/Endpoint/PostWebhooksSubscriptions.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsBadRequestException; use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsForbiddenException; use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsNotFoundException; use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostWebhooksSubscriptionsUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\CreateWebhookSubscription; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostWebhooksSubscriptions extends BaseEndpoint implements Endpoint @@ -49,7 +52,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateWebhookSubscription) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -67,6 +70,7 @@ public function getExtraHeaders(): array * @throws PostWebhooksSubscriptionsUnauthorizedException * @throws PostWebhooksSubscriptionsForbiddenException * @throws PostWebhooksSubscriptionsNotFoundException + * @throws PostWebhooksSubscriptionsMethodNotAllowedException * @throws PostWebhooksSubscriptionsUnsupportedMediaTypeException * @throws PostWebhooksSubscriptionsTooManyRequestsException * @throws PostWebhooksSubscriptionsInternalServerErrorException @@ -75,32 +79,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, WebhookSubscription::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWebhooksSubscriptionsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWebhooksSubscriptionsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PostWorkflowSessions.php b/generated/Endpoint/PostWorkflowSessions.php new file mode 100644 index 0000000..d6b5ecf --- /dev/null +++ b/generated/Endpoint/PostWorkflowSessions.php @@ -0,0 +1,109 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/workflow_sessions'; + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof CreateWorkflowSession) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return WorkflowSession|null + * + * @throws PostWorkflowSessionsBadRequestException + * @throws PostWorkflowSessionsUnauthorizedException + * @throws PostWorkflowSessionsForbiddenException + * @throws PostWorkflowSessionsNotFoundException + * @throws PostWorkflowSessionsMethodNotAllowedException + * @throws PostWorkflowSessionsTooManyRequestsException + * @throws PostWorkflowSessionsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + return $serializer->deserialize($body, WorkflowSession::class, 'json'); + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostWorkflowSessionsIdApplicants.php b/generated/Endpoint/PostWorkflowSessionsIdApplicants.php new file mode 100644 index 0000000..f00714c --- /dev/null +++ b/generated/Endpoint/PostWorkflowSessionsIdApplicants.php @@ -0,0 +1,112 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{workflowSessionId}'], [rawurlencode($this->workflowSessionId)], '/workflow_sessions/{workflowSessionId}/applicants'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if (null !== $this->body) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PostWorkflowSessionsIdApplicantsBadRequestException + * @throws PostWorkflowSessionsIdApplicantsUnauthorizedException + * @throws PostWorkflowSessionsIdApplicantsForbiddenException + * @throws PostWorkflowSessionsIdApplicantsNotFoundException + * @throws PostWorkflowSessionsIdApplicantsMethodNotAllowedException + * @throws PostWorkflowSessionsIdApplicantsTooManyRequestsException + * @throws PostWorkflowSessionsIdApplicantsInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdApplicantsInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostWorkflowSessionsIdResolveAction.php b/generated/Endpoint/PostWorkflowSessionsIdResolveAction.php new file mode 100644 index 0000000..92a3d27 --- /dev/null +++ b/generated/Endpoint/PostWorkflowSessionsIdResolveAction.php @@ -0,0 +1,111 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{workflowSessionId}'], [rawurlencode($this->workflowSessionId)], '/workflow_sessions/{workflowSessionId}/resolve_action'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof ResolveWorkflowSessionAction) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PostWorkflowSessionsIdResolveActionBadRequestException + * @throws PostWorkflowSessionsIdResolveActionUnauthorizedException + * @throws PostWorkflowSessionsIdResolveActionForbiddenException + * @throws PostWorkflowSessionsIdResolveActionNotFoundException + * @throws PostWorkflowSessionsIdResolveActionMethodNotAllowedException + * @throws PostWorkflowSessionsIdResolveActionTooManyRequestsException + * @throws PostWorkflowSessionsIdResolveActionInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkflowSessionsIdResolveActionInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PostWorkspace.php b/generated/Endpoint/PostWorkspace.php index 639e6ed..a24d38d 100644 --- a/generated/Endpoint/PostWorkspace.php +++ b/generated/Endpoint/PostWorkspace.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PostWorkspaceBadRequestException; use Qdequippe\Yousign\Api\Exception\PostWorkspaceForbiddenException; use Qdequippe\Yousign\Api\Exception\PostWorkspaceInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PostWorkspaceMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PostWorkspaceNotFoundException; use Qdequippe\Yousign\Api\Exception\PostWorkspaceTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PostWorkspaceUnauthorizedException; @@ -14,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\CreateWorkspace; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -22,6 +24,7 @@ use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PostWorkspace extends BaseEndpoint implements Endpoint @@ -49,7 +52,7 @@ public function getUri(): string public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof CreateWorkspace) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -67,6 +70,7 @@ public function getExtraHeaders(): array * @throws PostWorkspaceUnauthorizedException * @throws PostWorkspaceForbiddenException * @throws PostWorkspaceNotFoundException + * @throws PostWorkspaceMethodNotAllowedException * @throws PostWorkspaceUnsupportedMediaTypeException * @throws PostWorkspaceTooManyRequestsException * @throws PostWorkspaceInternalServerErrorException @@ -75,32 +79,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Workspace::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PostWorkspaceMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PostWorkspaceInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PutSignatureRequestsIdLabelsId.php b/generated/Endpoint/PutSignatureRequestsIdLabelsId.php new file mode 100644 index 0000000..089d4d0 --- /dev/null +++ b/generated/Endpoint/PutSignatureRequestsIdLabelsId.php @@ -0,0 +1,104 @@ +signatureRequestId), rawurlencode($this->labelId)], '/signature_requests/{signatureRequestId}/labels/{labelId}'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws PutSignatureRequestsIdLabelsIdBadRequestException + * @throws PutSignatureRequestsIdLabelsIdUnauthorizedException + * @throws PutSignatureRequestsIdLabelsIdForbiddenException + * @throws PutSignatureRequestsIdLabelsIdNotFoundException + * @throws PutSignatureRequestsIdLabelsIdMethodNotAllowedException + * @throws PutSignatureRequestsIdLabelsIdTooManyRequestsException + * @throws PutSignatureRequestsIdLabelsIdInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsIdLabelsIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php index c1340f0..dc9a99a 100644 --- a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php +++ b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -25,7 +27,7 @@ class PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSigne use EndpointTrait; /** - * Adds a Signer to a given Signer Consent Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer to a given Signer Consent Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $consentRequestId Signer Consent Request Id @@ -42,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{consentRequestId}', '{signerId}'], [$this->signatureRequestId, $this->consentRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{consentRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->consentRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -60,6 +62,7 @@ public function getExtraHeaders(): array * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException * @throws PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException */ @@ -70,22 +73,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php index 515d93f..86959b1 100644 --- a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php +++ b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\SignerDocumentRequest; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; @@ -26,7 +28,7 @@ class PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSig use EndpointTrait; /** - * Adds a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft. + * Adds a Signer to a given Signer Document Request. This action is only permitted when the Signature Request is a draft or paused. * * @param string $signatureRequestId Signature Request Id * @param string $documentRequestId Signer Document Request Id @@ -43,7 +45,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentRequestId}', '{signerId}'], [$this->signatureRequestId, $this->documentRequestId, $this->signerId], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}/signers/{signerId}'); + return str_replace(['{signatureRequestId}', '{documentRequestId}', '{signerId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentRequestId), rawurlencode($this->signerId)], '/signature_requests/{signatureRequestId}/document_requests/{documentRequestId}/signers/{signerId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -63,6 +65,7 @@ public function getExtraHeaders(): array * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException * @throws PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException */ @@ -70,29 +73,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, SignerDocumentRequest::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdMetadata.php b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdMetadata.php index 6a41bd7..817eb72 100644 --- a/generated/Endpoint/PutSignatureRequestsSignatureRequestIdMetadata.php +++ b/generated/Endpoint/PutSignatureRequestsSignatureRequestIdMetadata.php @@ -6,6 +6,7 @@ use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataBadRequestException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataForbiddenException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataNotFoundException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException; @@ -13,12 +14,14 @@ use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; use Qdequippe\Yousign\Api\Model\Metadata; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Runtime\Client\BaseEndpoint; use Qdequippe\Yousign\Api\Runtime\Client\Endpoint; use Qdequippe\Yousign\Api\Runtime\Client\EndpointTrait; +use Qdequippe\Yousign\Api\Runtime\Client\JsonPayload; use Symfony\Component\Serializer\SerializerInterface; class PutSignatureRequestsSignatureRequestIdMetadata extends BaseEndpoint implements Endpoint @@ -42,13 +45,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}'], [$this->signatureRequestId], '/signature_requests/{signatureRequestId}/metadata'); + return str_replace(['{signatureRequestId}'], [rawurlencode($this->signatureRequestId)], '/signature_requests/{signatureRequestId}/metadata'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof Metadata) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; } return [[], null]; @@ -66,6 +69,7 @@ public function getExtraHeaders(): array * @throws PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException * @throws PutSignatureRequestsSignatureRequestIdMetadataForbiddenException * @throws PutSignatureRequestsSignatureRequestIdMetadataNotFoundException + * @throws PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException * @throws PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException * @throws PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException */ @@ -73,29 +77,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, Metadata::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutSignatureRequestsSignatureRequestIdMetadataInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/PutWorkspacesWorkspaceIdUsers.php b/generated/Endpoint/PutWorkspacesWorkspaceIdUsers.php index d6946bb..ebbeabb 100644 --- a/generated/Endpoint/PutWorkspacesWorkspaceIdUsers.php +++ b/generated/Endpoint/PutWorkspacesWorkspaceIdUsers.php @@ -6,12 +6,14 @@ use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersBadRequestException; use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersForbiddenException; use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersNotFoundException; use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\PutWorkspacesWorkspaceIdUsersUnauthorizedException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -41,7 +43,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{workspaceId}', '{userId}'], [$this->workspaceId, $this->userId], '/workspaces/{workspaceId}/users/{userId}'); + return str_replace(['{workspaceId}', '{userId}'], [rawurlencode($this->workspaceId), rawurlencode($this->userId)], '/workspaces/{workspaceId}/users/{userId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array @@ -59,6 +61,7 @@ public function getExtraHeaders(): array * @throws PutWorkspacesWorkspaceIdUsersUnauthorizedException * @throws PutWorkspacesWorkspaceIdUsersForbiddenException * @throws PutWorkspacesWorkspaceIdUsersNotFoundException + * @throws PutWorkspacesWorkspaceIdUsersMethodNotAllowedException * @throws PutWorkspacesWorkspaceIdUsersTooManyRequestsException * @throws PutWorkspacesWorkspaceIdUsersInternalServerErrorException */ @@ -69,22 +72,25 @@ protected function transformResponseBody(ResponseInterface $response, Serializer if (204 === $status) { return null; } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new PutWorkspacesWorkspaceIdUsersMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new PutWorkspacesWorkspaceIdUsersInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } diff --git a/generated/Endpoint/SignatureRequestsIdDocumentsIdFieldsIdAnswer.php b/generated/Endpoint/SignatureRequestsIdDocumentsIdFieldsIdAnswer.php new file mode 100644 index 0000000..8ca6828 --- /dev/null +++ b/generated/Endpoint/SignatureRequestsIdDocumentsIdFieldsIdAnswer.php @@ -0,0 +1,113 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{signatureRequestId}', '{documentId}', '{fieldId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId), rawurlencode($this->fieldId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields/{fieldId}/answer'); + } + + public function getBody(SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof FieldAnswer) { + return [['Content-Type' => ['application/json']], JsonPayload::encode($serializer, $this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException + * @throws SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException + */ + protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); + } + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); + } + + return null; + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/generated/Endpoint/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php b/generated/Endpoint/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php index d0e2c92..c632298 100644 --- a/generated/Endpoint/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php +++ b/generated/Endpoint/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldId.php @@ -2,10 +2,12 @@ namespace Qdequippe\Yousign\Api\Endpoint; +use Jane\Component\JsonSchemaRuntime\Exception\MalformedJsonException; use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException; @@ -13,6 +15,7 @@ use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -45,13 +48,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{signatureRequestId}', '{documentId}', '{fieldId}'], [$this->signatureRequestId, $this->documentId, $this->fieldId], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields/{fieldId}'); + return str_replace(['{signatureRequestId}', '{documentId}', '{fieldId}'], [rawurlencode($this->signatureRequestId), rawurlencode($this->documentId), rawurlencode($this->fieldId)], '/signature_requests/{signatureRequestId}/documents/{documentId}/fields/{fieldId}'); } public function getBody(SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body)]; + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -67,6 +70,7 @@ public function getExtraHeaders(): array * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException + * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnsupportedMediaTypeException * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException * @throws UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException @@ -75,32 +79,37 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body); + if ((null === $contentType) === false && (200 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + try { + return json_decode($body, false, 512, \JSON_THROW_ON_ERROR); + } catch (\JsonException $jsonException) { + throw new MalformedJsonException('Malformed JSON response body.', 0, $jsonException); + } } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/UploadElectronicSealDocument.php b/generated/Endpoint/UploadElectronicSealDocument.php index c834943..522bd60 100644 --- a/generated/Endpoint/UploadElectronicSealDocument.php +++ b/generated/Endpoint/UploadElectronicSealDocument.php @@ -4,19 +4,21 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentBadRequestException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentForbiddenException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentNotFoundException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentUnauthorizedException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealDocumentUnsupportedMediaTypeException; use Qdequippe\Yousign\Api\Model\BadRequestResponse; use Qdequippe\Yousign\Api\Model\CreateElectronicSealDocument; -use Qdequippe\Yousign\Api\Model\CreateElectronicSealDocumentFromJson; use Qdequippe\Yousign\Api\Model\ElectronicSealDocument; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\NotFoundResponse; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; @@ -31,9 +33,19 @@ class UploadElectronicSealDocument extends BaseEndpoint implements Endpoint use EndpointTrait; /** - * Create an Electronic Seal Document from an other one. + * Create an Electronic Seal Document. * - * @param CreateElectronicSealDocument|CreateElectronicSealDocumentFromJson|null $requestBody + * **ℹ️ This endpoint accepts two request body formats — pick the one that matches your use case:** + * - 📁 `multipart/form-data` — upload a binary file. + * - 📝 `application/json` — create from a JSON payload referencing a previously sealed source document. + * + * **🔓 Endpoint access** + * - Environments: `production`, `sandbox` + * - API key scopes: `organization`, `workspace` + * - Plans: `pro`, `scale` + * - Add-ons (for production access): `Electronic Seal` or `Advanced Electronic Seal` or `Qualified Electronic Seal` + * + * @param CreateElectronicSealDocument|\stdClass|null $requestBody */ public function __construct($requestBody = null) { @@ -55,14 +67,31 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof CreateElectronicSealDocument) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; } - if ($this->body instanceof CreateElectronicSealDocumentFromJson) { + if ($this->body instanceof \stdClass) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } @@ -81,6 +110,7 @@ public function getExtraHeaders(): array * @throws UploadElectronicSealDocumentUnauthorizedException * @throws UploadElectronicSealDocumentForbiddenException * @throws UploadElectronicSealDocumentNotFoundException + * @throws UploadElectronicSealDocumentMethodNotAllowedException * @throws UploadElectronicSealDocumentUnsupportedMediaTypeException * @throws UploadElectronicSealDocumentTooManyRequestsException * @throws UploadElectronicSealDocumentInternalServerErrorException @@ -89,32 +119,33 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ElectronicSealDocument::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (404 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new UploadElectronicSealDocumentMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealDocumentInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Endpoint/UploadElectronicSealImage.php b/generated/Endpoint/UploadElectronicSealImage.php index dbb21ed..201f612 100644 --- a/generated/Endpoint/UploadElectronicSealImage.php +++ b/generated/Endpoint/UploadElectronicSealImage.php @@ -4,9 +4,11 @@ use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\StreamInterface; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageBadRequestException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageForbiddenException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageInternalServerErrorException; +use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageMethodNotAllowedException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageTooManyRequestsException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageUnauthorizedException; use Qdequippe\Yousign\Api\Exception\UploadElectronicSealImageUnsupportedMediaTypeException; @@ -14,6 +16,7 @@ use Qdequippe\Yousign\Api\Model\ElectronicSealImage; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; use Qdequippe\Yousign\Api\Model\InternalServerError; +use Qdequippe\Yousign\Api\Model\MethodNotAllowed; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; @@ -49,9 +52,26 @@ public function getBody(SerializerInterface $serializer, $streamFactory = null): if ($this->body instanceof \Qdequippe\Yousign\Api\Model\UploadElectronicSealImage) { $bodyBuilder = new MultipartStreamBuilder($streamFactory); $formParameters = $serializer->normalize($this->body, 'json'); + $partOptions = ['file' => ['filename' => 'file']]; foreach ($formParameters as $key => $value) { $value = \is_int($value) ? (string) $value : $value; - $bodyBuilder->addResource($key, $value); + $value = \is_bool($value) ? $value ? 'true' : 'false' : $value; + if (\is_array($value) || $value instanceof \stdClass) { + $value = $serializer->serialize((array) $value, 'json'); + } + $resourceOptions = $partOptions[$key] ?? []; + if (isset($resourceOptions['filename'])) { + $uri = null; + if ($value instanceof StreamInterface) { + $uri = $value->getMetadata('uri'); + } elseif (\is_resource($value)) { + $uri = stream_get_meta_data($value)['uri'] ?? null; + } + if (\is_string($uri) && is_file($uri)) { + unset($resourceOptions['filename']); + } + } + $bodyBuilder->addResource($key, $value, $resourceOptions); } return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; @@ -71,6 +91,7 @@ public function getExtraHeaders(): array * @throws UploadElectronicSealImageBadRequestException * @throws UploadElectronicSealImageUnauthorizedException * @throws UploadElectronicSealImageForbiddenException + * @throws UploadElectronicSealImageMethodNotAllowedException * @throws UploadElectronicSealImageUnsupportedMediaTypeException * @throws UploadElectronicSealImageTooManyRequestsException * @throws UploadElectronicSealImageInternalServerErrorException @@ -79,29 +100,30 @@ protected function transformResponseBody(ResponseInterface $response, Serializer { $status = $response->getStatusCode(); $body = (string) $response->getBody(); - if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (201 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { return $serializer->deserialize($body, ElectronicSealImage::class, 'json'); } - if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (400 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response); } - if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (401 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response); } - if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (403 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response); } - if (null !== $contentType && (415 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (405 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { + throw new UploadElectronicSealImageMethodNotAllowedException($serializer->deserialize($body, MethodNotAllowed::class, 'json'), $response); + } + if ((null === $contentType) === false && (415 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageUnsupportedMediaTypeException($serializer->deserialize($body, UnsupportedMediaTypeResponse::class, 'json'), $response); } - if (null !== $contentType && (429 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (429 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageTooManyRequestsException($serializer->deserialize($body, TooManyRequestsResponse::class, 'json'), $response); } - if (null !== $contentType && (500 === $status && false !== mb_strpos($contentType, 'application/json'))) { + if ((null === $contentType) === false && (500 === $status && false !== stripos(strtolower($contentType), 'application/json'))) { throw new UploadElectronicSealImageInternalServerErrorException($serializer->deserialize($body, InternalServerError::class, 'json'), $response); } - - return null; } public function getAuthenticationScopes(): array diff --git a/generated/Exception/BadRequestException.php b/generated/Exception/BadRequestException.php index 57625f6..d02dcdc 100644 --- a/generated/Exception/BadRequestException.php +++ b/generated/Exception/BadRequestException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class BadRequestException extends \RuntimeException implements ClientException +abstract class BadRequestException extends \RuntimeException implements ClientException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/DeleteContactsContactIdMethodNotAllowedException.php b/generated/Exception/DeleteContactsContactIdMethodNotAllowedException.php new file mode 100644 index 0000000..80a43ca --- /dev/null +++ b/generated/Exception/DeleteContactsContactIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteCustomExperienceLogoMethodNotAllowedException.php b/generated/Exception/DeleteCustomExperienceLogoMethodNotAllowedException.php new file mode 100644 index 0000000..4adb1ee --- /dev/null +++ b/generated/Exception/DeleteCustomExperienceLogoMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteCustomExperienceMethodNotAllowedException.php b/generated/Exception/DeleteCustomExperienceMethodNotAllowedException.php new file mode 100644 index 0000000..67e3112 --- /dev/null +++ b/generated/Exception/DeleteCustomExperienceMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostIdentityVerificationsBadRequestException.php b/generated/Exception/DeleteCustomPropertiesIdBadRequestException.php similarity index 87% rename from generated/Exception/PostIdentityVerificationsBadRequestException.php rename to generated/Exception/DeleteCustomPropertiesIdBadRequestException.php index 0c13c7c..07369eb 100644 --- a/generated/Exception/PostIdentityVerificationsBadRequestException.php +++ b/generated/Exception/DeleteCustomPropertiesIdBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class PostIdentityVerificationsBadRequestException extends BadRequestException +class DeleteCustomPropertiesIdBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostIdentityVerificationsForbiddenException.php b/generated/Exception/DeleteCustomPropertiesIdForbiddenException.php similarity index 87% rename from generated/Exception/PostIdentityVerificationsForbiddenException.php rename to generated/Exception/DeleteCustomPropertiesIdForbiddenException.php index eb2cb26..8128dcf 100644 --- a/generated/Exception/PostIdentityVerificationsForbiddenException.php +++ b/generated/Exception/DeleteCustomPropertiesIdForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class PostIdentityVerificationsForbiddenException extends ForbiddenException +class DeleteCustomPropertiesIdForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostIdentityVerificationsInternalServerErrorException.php b/generated/Exception/DeleteCustomPropertiesIdInternalServerErrorException.php similarity index 85% rename from generated/Exception/PostIdentityVerificationsInternalServerErrorException.php rename to generated/Exception/DeleteCustomPropertiesIdInternalServerErrorException.php index cac9bff..4ed8340 100644 --- a/generated/Exception/PostIdentityVerificationsInternalServerErrorException.php +++ b/generated/Exception/DeleteCustomPropertiesIdInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class PostIdentityVerificationsInternalServerErrorException extends InternalServerErrorException +class DeleteCustomPropertiesIdInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/DeleteCustomPropertiesIdMethodNotAllowedException.php b/generated/Exception/DeleteCustomPropertiesIdMethodNotAllowedException.php new file mode 100644 index 0000000..b100b71 --- /dev/null +++ b/generated/Exception/DeleteCustomPropertiesIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdDocumentVerificationNotFoundException.php b/generated/Exception/DeleteCustomPropertiesIdNotFoundException.php similarity index 88% rename from generated/Exception/GetIdDocumentVerificationNotFoundException.php rename to generated/Exception/DeleteCustomPropertiesIdNotFoundException.php index 4a128fa..f95668e 100644 --- a/generated/Exception/GetIdDocumentVerificationNotFoundException.php +++ b/generated/Exception/DeleteCustomPropertiesIdNotFoundException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\NotFoundResponse; -class GetIdDocumentVerificationNotFoundException extends NotFoundException +class DeleteCustomPropertiesIdNotFoundException extends NotFoundException { public function __construct(private readonly NotFoundResponse $notFoundResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostIdentityVerificationsTooManyRequestsException.php b/generated/Exception/DeleteCustomPropertiesIdTooManyRequestsException.php similarity index 87% rename from generated/Exception/PostIdentityVerificationsTooManyRequestsException.php rename to generated/Exception/DeleteCustomPropertiesIdTooManyRequestsException.php index 97c34ce..ebb762e 100644 --- a/generated/Exception/PostIdentityVerificationsTooManyRequestsException.php +++ b/generated/Exception/DeleteCustomPropertiesIdTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class PostIdentityVerificationsTooManyRequestsException extends TooManyRequestsException +class DeleteCustomPropertiesIdTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostIdentityVerificationsUnauthorizedException.php b/generated/Exception/DeleteCustomPropertiesIdUnauthorizedException.php similarity index 87% rename from generated/Exception/PostIdentityVerificationsUnauthorizedException.php rename to generated/Exception/DeleteCustomPropertiesIdUnauthorizedException.php index 537f593..a63417f 100644 --- a/generated/Exception/PostIdentityVerificationsUnauthorizedException.php +++ b/generated/Exception/DeleteCustomPropertiesIdUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class PostIdentityVerificationsUnauthorizedException extends UnauthorizedException +class DeleteCustomPropertiesIdUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdBadRequestException.php b/generated/Exception/DeleteElectronicSealDocumentsIdBadRequestException.php new file mode 100644 index 0000000..bfbe444 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdForbiddenException.php b/generated/Exception/DeleteElectronicSealDocumentsIdForbiddenException.php new file mode 100644 index 0000000..c416982 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdInternalServerErrorException.php b/generated/Exception/DeleteElectronicSealDocumentsIdInternalServerErrorException.php new file mode 100644 index 0000000..9e74d64 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdMethodNotAllowedException.php b/generated/Exception/DeleteElectronicSealDocumentsIdMethodNotAllowedException.php new file mode 100644 index 0000000..710aec7 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdNotFoundException.php b/generated/Exception/DeleteElectronicSealDocumentsIdNotFoundException.php similarity index 85% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdNotFoundException.php rename to generated/Exception/DeleteElectronicSealDocumentsIdNotFoundException.php index 788a509..cdda2fb 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdNotFoundException.php +++ b/generated/Exception/DeleteElectronicSealDocumentsIdNotFoundException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\NotFoundResponse; -class GetIdentityVerificationsIdentityVerificationIdNotFoundException extends NotFoundException +class DeleteElectronicSealDocumentsIdNotFoundException extends NotFoundException { public function __construct(private readonly NotFoundResponse $notFoundResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdTooManyRequestsException.php b/generated/Exception/DeleteElectronicSealDocumentsIdTooManyRequestsException.php new file mode 100644 index 0000000..73d4004 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteElectronicSealDocumentsIdUnauthorizedException.php b/generated/Exception/DeleteElectronicSealDocumentsIdUnauthorizedException.php new file mode 100644 index 0000000..2c55c32 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealDocumentsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteElectronicSealImageMethodNotAllowedException.php b/generated/Exception/DeleteElectronicSealImageMethodNotAllowedException.php new file mode 100644 index 0000000..aefa477 --- /dev/null +++ b/generated/Exception/DeleteElectronicSealImageMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteLabelsIdBadRequestException.php b/generated/Exception/DeleteLabelsIdBadRequestException.php new file mode 100644 index 0000000..5d62700 --- /dev/null +++ b/generated/Exception/DeleteLabelsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteLabelsIdForbiddenException.php b/generated/Exception/DeleteLabelsIdForbiddenException.php new file mode 100644 index 0000000..4ff81cd --- /dev/null +++ b/generated/Exception/DeleteLabelsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteLabelsIdInternalServerErrorException.php b/generated/Exception/DeleteLabelsIdInternalServerErrorException.php new file mode 100644 index 0000000..8fbc4e0 --- /dev/null +++ b/generated/Exception/DeleteLabelsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteLabelsIdMethodNotAllowedException.php b/generated/Exception/DeleteLabelsIdMethodNotAllowedException.php new file mode 100644 index 0000000..fb7f4f0 --- /dev/null +++ b/generated/Exception/DeleteLabelsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostIdentityVerificationsNotFoundException.php b/generated/Exception/DeleteLabelsIdNotFoundException.php similarity index 88% rename from generated/Exception/PostIdentityVerificationsNotFoundException.php rename to generated/Exception/DeleteLabelsIdNotFoundException.php index ba5b849..e170cbb 100644 --- a/generated/Exception/PostIdentityVerificationsNotFoundException.php +++ b/generated/Exception/DeleteLabelsIdNotFoundException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\NotFoundResponse; -class PostIdentityVerificationsNotFoundException extends NotFoundException +class DeleteLabelsIdNotFoundException extends NotFoundException { public function __construct(private readonly NotFoundResponse $notFoundResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/DeleteLabelsIdTooManyRequestsException.php b/generated/Exception/DeleteLabelsIdTooManyRequestsException.php new file mode 100644 index 0000000..d8bfa4d --- /dev/null +++ b/generated/Exception/DeleteLabelsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteLabelsIdUnauthorizedException.php b/generated/Exception/DeleteLabelsIdUnauthorizedException.php new file mode 100644 index 0000000..0a9c504 --- /dev/null +++ b/generated/Exception/DeleteLabelsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdBadRequestException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdBadRequestException.php new file mode 100644 index 0000000..a4c18cb --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdForbiddenException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdForbiddenException.php new file mode 100644 index 0000000..f9db8f0 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdInternalServerErrorException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdInternalServerErrorException.php new file mode 100644 index 0000000..3c8d29f --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException.php new file mode 100644 index 0000000..b8d884b --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdNotFoundException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdNotFoundException.php new file mode 100644 index 0000000..60f39c9 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdTooManyRequestsException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdTooManyRequestsException.php new file mode 100644 index 0000000..bc3cfe4 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsIdLabelsIdUnauthorizedException.php b/generated/Exception/DeleteSignatureRequestsIdLabelsIdUnauthorizedException.php new file mode 100644 index 0000000..c438042 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsIdLabelsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php new file mode 100644 index 0000000..d36cc54 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..6520f62 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..1495633 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..de28bbe --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..00d9bc3 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php new file mode 100644 index 0000000..3d9f101 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php new file mode 100644 index 0000000..a7ba9e7 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php new file mode 100644 index 0000000..ea2c005 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..d0f8691 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..8089aef --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..c993667 --- /dev/null +++ b/generated/Exception/DeleteSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteUsersUserIdMethodNotAllowedException.php b/generated/Exception/DeleteUsersUserIdMethodNotAllowedException.php new file mode 100644 index 0000000..9a99ae9 --- /dev/null +++ b/generated/Exception/DeleteUsersUserIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteWebhooksWebhookIdMethodNotAllowedException.php b/generated/Exception/DeleteWebhooksWebhookIdMethodNotAllowedException.php new file mode 100644 index 0000000..fea0aec --- /dev/null +++ b/generated/Exception/DeleteWebhooksWebhookIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteWorkspaceMethodNotAllowedException.php b/generated/Exception/DeleteWorkspaceMethodNotAllowedException.php new file mode 100644 index 0000000..21f8372 --- /dev/null +++ b/generated/Exception/DeleteWorkspaceMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException.php b/generated/Exception/DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException.php new file mode 100644 index 0000000..80bc062 --- /dev/null +++ b/generated/Exception/DeleteWorkspaceWorkspaceIdUsersUserIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealAuditTrailMethodNotAllowedException.php b/generated/Exception/DownloadElectronicSealAuditTrailMethodNotAllowedException.php new file mode 100644 index 0000000..0e276fd --- /dev/null +++ b/generated/Exception/DownloadElectronicSealAuditTrailMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealDocumentForbiddenException.php b/generated/Exception/DownloadElectronicSealDocumentForbiddenException.php new file mode 100644 index 0000000..3676be9 --- /dev/null +++ b/generated/Exception/DownloadElectronicSealDocumentForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealDocumentMethodNotAllowedException.php b/generated/Exception/DownloadElectronicSealDocumentMethodNotAllowedException.php new file mode 100644 index 0000000..ae21f30 --- /dev/null +++ b/generated/Exception/DownloadElectronicSealDocumentMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealImageBadRequestException.php b/generated/Exception/DownloadElectronicSealImageBadRequestException.php new file mode 100644 index 0000000..36c0554 --- /dev/null +++ b/generated/Exception/DownloadElectronicSealImageBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealImageForbiddenException.php b/generated/Exception/DownloadElectronicSealImageForbiddenException.php new file mode 100644 index 0000000..ee3ceba --- /dev/null +++ b/generated/Exception/DownloadElectronicSealImageForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/DownloadElectronicSealImageMethodNotAllowedException.php b/generated/Exception/DownloadElectronicSealImageMethodNotAllowedException.php new file mode 100644 index 0000000..4666b4c --- /dev/null +++ b/generated/Exception/DownloadElectronicSealImageMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/ForbiddenException.php b/generated/Exception/ForbiddenException.php index efdf445..30076d0 100644 --- a/generated/Exception/ForbiddenException.php +++ b/generated/Exception/ForbiddenException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class ForbiddenException extends \RuntimeException implements ClientException +abstract class ForbiddenException extends \RuntimeException implements ClientException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/GetArchivesArchivedFileIdDownloadMethodNotAllowedException.php b/generated/Exception/GetArchivesArchivedFileIdDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..1060065 --- /dev/null +++ b/generated/Exception/GetArchivesArchivedFileIdDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionAddonMethodNotAllowedException.php b/generated/Exception/GetConsumptionAddonMethodNotAllowedException.php new file mode 100644 index 0000000..6a17de4 --- /dev/null +++ b/generated/Exception/GetConsumptionAddonMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionDetailMethodNotAllowedException.php b/generated/Exception/GetConsumptionDetailMethodNotAllowedException.php new file mode 100644 index 0000000..e8ea08f --- /dev/null +++ b/generated/Exception/GetConsumptionDetailMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsExportMethodNotAllowedException.php b/generated/Exception/GetConsumptionsExportMethodNotAllowedException.php new file mode 100644 index 0000000..7ca7720 --- /dev/null +++ b/generated/Exception/GetConsumptionsExportMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsMethodNotAllowedException.php b/generated/Exception/GetConsumptionsMethodNotAllowedException.php new file mode 100644 index 0000000..74ac351 --- /dev/null +++ b/generated/Exception/GetConsumptionsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsBadRequestException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsBadRequestException.php new file mode 100644 index 0000000..71fad7c --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsForbiddenException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsForbiddenException.php new file mode 100644 index 0000000..cb6fc02 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsInternalServerErrorException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsInternalServerErrorException.php new file mode 100644 index 0000000..0af9678 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsMethodNotAllowedException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsMethodNotAllowedException.php new file mode 100644 index 0000000..272b8f6 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsNotFoundException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsNotFoundException.php new file mode 100644 index 0000000..359385c --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsTooManyRequestsException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsTooManyRequestsException.php new file mode 100644 index 0000000..50615d0 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsElectronicSealsUnauthorizedException.php b/generated/Exception/GetConsumptionsRecordsElectronicSealsUnauthorizedException.php new file mode 100644 index 0000000..adb7c86 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsElectronicSealsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsBadRequestException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsBadRequestException.php new file mode 100644 index 0000000..1f21986 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsForbiddenException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsForbiddenException.php new file mode 100644 index 0000000..1249ed7 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsInternalServerErrorException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsInternalServerErrorException.php new file mode 100644 index 0000000..a85763a --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsMethodNotAllowedException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsMethodNotAllowedException.php new file mode 100644 index 0000000..9d5b1c2 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsNotFoundException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsNotFoundException.php new file mode 100644 index 0000000..5216397 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsTooManyRequestsException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsTooManyRequestsException.php new file mode 100644 index 0000000..363b63e --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsIdentificationsUnauthorizedException.php b/generated/Exception/GetConsumptionsRecordsIdentificationsUnauthorizedException.php new file mode 100644 index 0000000..d7dafb0 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsIdentificationsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersBadRequestException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersBadRequestException.php new file mode 100644 index 0000000..04e65a3 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersForbiddenException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersForbiddenException.php new file mode 100644 index 0000000..bb44539 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersInternalServerErrorException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersInternalServerErrorException.php new file mode 100644 index 0000000..fc3282e --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersMethodNotAllowedException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersMethodNotAllowedException.php new file mode 100644 index 0000000..d9bf10b --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersNotFoundException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersNotFoundException.php new file mode 100644 index 0000000..b3a14fc --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersTooManyRequestsException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersTooManyRequestsException.php new file mode 100644 index 0000000..0b2d76f --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetConsumptionsRecordsInvitedSignersUnauthorizedException.php b/generated/Exception/GetConsumptionsRecordsInvitedSignersUnauthorizedException.php new file mode 100644 index 0000000..217fa20 --- /dev/null +++ b/generated/Exception/GetConsumptionsRecordsInvitedSignersUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetContactsContactIdForbiddenException.php b/generated/Exception/GetContactsContactIdForbiddenException.php new file mode 100644 index 0000000..d8195b2 --- /dev/null +++ b/generated/Exception/GetContactsContactIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetContactsContactIdMethodNotAllowedException.php b/generated/Exception/GetContactsContactIdMethodNotAllowedException.php new file mode 100644 index 0000000..1e55c3b --- /dev/null +++ b/generated/Exception/GetContactsContactIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetContactsMethodNotAllowedException.php b/generated/Exception/GetContactsMethodNotAllowedException.php new file mode 100644 index 0000000..3d9a895 --- /dev/null +++ b/generated/Exception/GetContactsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomExperiencesCustomExperienceIdMethodNotAllowedException.php b/generated/Exception/GetCustomExperiencesCustomExperienceIdMethodNotAllowedException.php new file mode 100644 index 0000000..fca8e13 --- /dev/null +++ b/generated/Exception/GetCustomExperiencesCustomExperienceIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomExperiencesMethodNotAllowedException.php b/generated/Exception/GetCustomExperiencesMethodNotAllowedException.php new file mode 100644 index 0000000..cccf635 --- /dev/null +++ b/generated/Exception/GetCustomExperiencesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesBadRequestException.php b/generated/Exception/GetCustomPropertiesBadRequestException.php new file mode 100644 index 0000000..b3abea6 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesForbiddenException.php b/generated/Exception/GetCustomPropertiesForbiddenException.php new file mode 100644 index 0000000..9c0933a --- /dev/null +++ b/generated/Exception/GetCustomPropertiesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdBadRequestException.php b/generated/Exception/GetCustomPropertiesIdBadRequestException.php new file mode 100644 index 0000000..7a0e957 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdForbiddenException.php b/generated/Exception/GetCustomPropertiesIdForbiddenException.php new file mode 100644 index 0000000..1a034c7 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdInternalServerErrorException.php b/generated/Exception/GetCustomPropertiesIdInternalServerErrorException.php new file mode 100644 index 0000000..c4443d1 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdMethodNotAllowedException.php b/generated/Exception/GetCustomPropertiesIdMethodNotAllowedException.php new file mode 100644 index 0000000..7b33bc2 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdNotFoundException.php b/generated/Exception/GetCustomPropertiesIdNotFoundException.php new file mode 100644 index 0000000..7511ccd --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdTooManyRequestsException.php b/generated/Exception/GetCustomPropertiesIdTooManyRequestsException.php new file mode 100644 index 0000000..34c9884 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesIdUnauthorizedException.php b/generated/Exception/GetCustomPropertiesIdUnauthorizedException.php new file mode 100644 index 0000000..3741946 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesInternalServerErrorException.php b/generated/Exception/GetCustomPropertiesInternalServerErrorException.php new file mode 100644 index 0000000..f94f9fd --- /dev/null +++ b/generated/Exception/GetCustomPropertiesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesMethodNotAllowedException.php b/generated/Exception/GetCustomPropertiesMethodNotAllowedException.php new file mode 100644 index 0000000..6330de4 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesTooManyRequestsException.php b/generated/Exception/GetCustomPropertiesTooManyRequestsException.php new file mode 100644 index 0000000..57392e6 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetCustomPropertiesUnauthorizedException.php b/generated/Exception/GetCustomPropertiesUnauthorizedException.php new file mode 100644 index 0000000..2f7fb36 --- /dev/null +++ b/generated/Exception/GetCustomPropertiesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesBadRequestException.php b/generated/Exception/GetDocumentAnalysesBadRequestException.php new file mode 100644 index 0000000..eef05ae --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesForbiddenException.php b/generated/Exception/GetDocumentAnalysesForbiddenException.php new file mode 100644 index 0000000..e68d335 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdBadRequestException.php b/generated/Exception/GetDocumentAnalysesIdBadRequestException.php new file mode 100644 index 0000000..89128ed --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdForbiddenException.php b/generated/Exception/GetDocumentAnalysesIdForbiddenException.php new file mode 100644 index 0000000..a2a1b57 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdInternalServerErrorException.php b/generated/Exception/GetDocumentAnalysesIdInternalServerErrorException.php new file mode 100644 index 0000000..f6e5b32 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdMethodNotAllowedException.php b/generated/Exception/GetDocumentAnalysesIdMethodNotAllowedException.php new file mode 100644 index 0000000..c63820c --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdNotFoundException.php b/generated/Exception/GetDocumentAnalysesIdNotFoundException.php new file mode 100644 index 0000000..a83c4c4 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdTooManyRequestsException.php b/generated/Exception/GetDocumentAnalysesIdTooManyRequestsException.php new file mode 100644 index 0000000..f9a5c2d --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesIdUnauthorizedException.php b/generated/Exception/GetDocumentAnalysesIdUnauthorizedException.php new file mode 100644 index 0000000..1049319 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesInternalServerErrorException.php b/generated/Exception/GetDocumentAnalysesInternalServerErrorException.php new file mode 100644 index 0000000..193bba4 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesMethodNotAllowedException.php b/generated/Exception/GetDocumentAnalysesMethodNotAllowedException.php new file mode 100644 index 0000000..42064c9 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesTooManyRequestsException.php b/generated/Exception/GetDocumentAnalysesTooManyRequestsException.php new file mode 100644 index 0000000..d48c62c --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetDocumentAnalysesUnauthorizedException.php b/generated/Exception/GetDocumentAnalysesUnauthorizedException.php new file mode 100644 index 0000000..3ce2919 --- /dev/null +++ b/generated/Exception/GetDocumentAnalysesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetElectronicSealAuditTrailMethodNotAllowedException.php b/generated/Exception/GetElectronicSealAuditTrailMethodNotAllowedException.php new file mode 100644 index 0000000..124d489 --- /dev/null +++ b/generated/Exception/GetElectronicSealAuditTrailMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetElectronicSealForbiddenException.php b/generated/Exception/GetElectronicSealForbiddenException.php new file mode 100644 index 0000000..8960846 --- /dev/null +++ b/generated/Exception/GetElectronicSealForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetElectronicSealMethodNotAllowedException.php b/generated/Exception/GetElectronicSealMethodNotAllowedException.php new file mode 100644 index 0000000..2af9be9 --- /dev/null +++ b/generated/Exception/GetElectronicSealMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetInvitationsMethodNotAllowedException.php b/generated/Exception/GetInvitationsMethodNotAllowedException.php new file mode 100644 index 0000000..0ec26dc --- /dev/null +++ b/generated/Exception/GetInvitationsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsBadRequestException.php b/generated/Exception/GetLabelsBadRequestException.php new file mode 100644 index 0000000..9c99ebe --- /dev/null +++ b/generated/Exception/GetLabelsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdBadRequestException.php b/generated/Exception/GetLabelsIdBadRequestException.php new file mode 100644 index 0000000..8131e87 --- /dev/null +++ b/generated/Exception/GetLabelsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdForbiddenException.php b/generated/Exception/GetLabelsIdForbiddenException.php new file mode 100644 index 0000000..d5efebe --- /dev/null +++ b/generated/Exception/GetLabelsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdInternalServerErrorException.php b/generated/Exception/GetLabelsIdInternalServerErrorException.php new file mode 100644 index 0000000..f873586 --- /dev/null +++ b/generated/Exception/GetLabelsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdMethodNotAllowedException.php b/generated/Exception/GetLabelsIdMethodNotAllowedException.php new file mode 100644 index 0000000..32efd50 --- /dev/null +++ b/generated/Exception/GetLabelsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdNotFoundException.php b/generated/Exception/GetLabelsIdNotFoundException.php new file mode 100644 index 0000000..6f95c8c --- /dev/null +++ b/generated/Exception/GetLabelsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdTooManyRequestsException.php b/generated/Exception/GetLabelsIdTooManyRequestsException.php new file mode 100644 index 0000000..7345660 --- /dev/null +++ b/generated/Exception/GetLabelsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsIdUnauthorizedException.php b/generated/Exception/GetLabelsIdUnauthorizedException.php new file mode 100644 index 0000000..c96156d --- /dev/null +++ b/generated/Exception/GetLabelsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsInternalServerErrorException.php b/generated/Exception/GetLabelsInternalServerErrorException.php new file mode 100644 index 0000000..e86021a --- /dev/null +++ b/generated/Exception/GetLabelsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsMethodNotAllowedException.php b/generated/Exception/GetLabelsMethodNotAllowedException.php new file mode 100644 index 0000000..c06f87e --- /dev/null +++ b/generated/Exception/GetLabelsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsTooManyRequestsException.php b/generated/Exception/GetLabelsTooManyRequestsException.php new file mode 100644 index 0000000..d2bc2dd --- /dev/null +++ b/generated/Exception/GetLabelsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetLabelsUnauthorizedException.php b/generated/Exception/GetLabelsUnauthorizedException.php new file mode 100644 index 0000000..d2b54ec --- /dev/null +++ b/generated/Exception/GetLabelsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/CreateIdDocumentVerificationBadRequestException.php b/generated/Exception/GetMonitoringsNaturalPersonsBadRequestException.php similarity index 89% rename from generated/Exception/CreateIdDocumentVerificationBadRequestException.php rename to generated/Exception/GetMonitoringsNaturalPersonsBadRequestException.php index ec76770..9f95209 100644 --- a/generated/Exception/CreateIdDocumentVerificationBadRequestException.php +++ b/generated/Exception/GetMonitoringsNaturalPersonsBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class CreateIdDocumentVerificationBadRequestException extends BadRequestException +class GetMonitoringsNaturalPersonsBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostBankAccountVerificationsForbiddenException.php b/generated/Exception/GetMonitoringsNaturalPersonsForbiddenException.php similarity index 89% rename from generated/Exception/PostBankAccountVerificationsForbiddenException.php rename to generated/Exception/GetMonitoringsNaturalPersonsForbiddenException.php index 6941e18..18de7e2 100644 --- a/generated/Exception/PostBankAccountVerificationsForbiddenException.php +++ b/generated/Exception/GetMonitoringsNaturalPersonsForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class PostBankAccountVerificationsForbiddenException extends ForbiddenException +class GetMonitoringsNaturalPersonsForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostBankAccountVerificationsInternalServerErrorException.php b/generated/Exception/GetMonitoringsNaturalPersonsInternalServerErrorException.php similarity index 90% rename from generated/Exception/PostBankAccountVerificationsInternalServerErrorException.php rename to generated/Exception/GetMonitoringsNaturalPersonsInternalServerErrorException.php index 7c2652f..4d75dfc 100644 --- a/generated/Exception/PostBankAccountVerificationsInternalServerErrorException.php +++ b/generated/Exception/GetMonitoringsNaturalPersonsInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class PostBankAccountVerificationsInternalServerErrorException extends InternalServerErrorException +class GetMonitoringsNaturalPersonsInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetMonitoringsNaturalPersonsMethodNotAllowedException.php b/generated/Exception/GetMonitoringsNaturalPersonsMethodNotAllowedException.php new file mode 100644 index 0000000..c85f3ea --- /dev/null +++ b/generated/Exception/GetMonitoringsNaturalPersonsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/CreateIdDocumentVerificationTooManyRequestsException.php b/generated/Exception/GetMonitoringsNaturalPersonsTooManyRequestsException.php similarity index 90% rename from generated/Exception/CreateIdDocumentVerificationTooManyRequestsException.php rename to generated/Exception/GetMonitoringsNaturalPersonsTooManyRequestsException.php index a8d04ec..fcf0fd3 100644 --- a/generated/Exception/CreateIdDocumentVerificationTooManyRequestsException.php +++ b/generated/Exception/GetMonitoringsNaturalPersonsTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class CreateIdDocumentVerificationTooManyRequestsException extends TooManyRequestsException +class GetMonitoringsNaturalPersonsTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/CreateIdDocumentVerificationUnauthorizedException.php b/generated/Exception/GetMonitoringsNaturalPersonsUnauthorizedException.php similarity index 90% rename from generated/Exception/CreateIdDocumentVerificationUnauthorizedException.php rename to generated/Exception/GetMonitoringsNaturalPersonsUnauthorizedException.php index 00af02f..c92eed3 100644 --- a/generated/Exception/CreateIdDocumentVerificationUnauthorizedException.php +++ b/generated/Exception/GetMonitoringsNaturalPersonsUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class CreateIdDocumentVerificationUnauthorizedException extends UnauthorizedException +class GetMonitoringsNaturalPersonsUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetSignatureRequestsIdApproversBadRequestException.php b/generated/Exception/GetSignatureRequestsIdApproversBadRequestException.php new file mode 100644 index 0000000..288736c --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversForbiddenException.php b/generated/Exception/GetSignatureRequestsIdApproversForbiddenException.php new file mode 100644 index 0000000..ac78370 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversInternalServerErrorException.php b/generated/Exception/GetSignatureRequestsIdApproversInternalServerErrorException.php new file mode 100644 index 0000000..fbc4b5a --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsIdApproversMethodNotAllowedException.php new file mode 100644 index 0000000..37cd984 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversNotFoundException.php b/generated/Exception/GetSignatureRequestsIdApproversNotFoundException.php new file mode 100644 index 0000000..02b40e1 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversTooManyRequestsException.php b/generated/Exception/GetSignatureRequestsIdApproversTooManyRequestsException.php new file mode 100644 index 0000000..684929c --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdApproversUnauthorizedException.php b/generated/Exception/GetSignatureRequestsIdApproversUnauthorizedException.php new file mode 100644 index 0000000..30f6667 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdApproversUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException.php new file mode 100644 index 0000000..68fc89d --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException.php new file mode 100644 index 0000000..99c9151 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException.php new file mode 100644 index 0000000..51a5c28 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException.php new file mode 100644 index 0000000..e898f88 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException.php new file mode 100644 index 0000000..37c2b62 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException.php new file mode 100644 index 0000000..8ba7a2a --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException.php new file mode 100644 index 0000000..7475318 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException.php b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException.php new file mode 100644 index 0000000..921bc55 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdEmbeddedPreparationLinkUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostBankAccountVerificationsBadRequestException.php b/generated/Exception/GetSignatureRequestsIdLabelsBadRequestException.php similarity index 89% rename from generated/Exception/PostBankAccountVerificationsBadRequestException.php rename to generated/Exception/GetSignatureRequestsIdLabelsBadRequestException.php index 4efbb17..c4037fe 100644 --- a/generated/Exception/PostBankAccountVerificationsBadRequestException.php +++ b/generated/Exception/GetSignatureRequestsIdLabelsBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class PostBankAccountVerificationsBadRequestException extends BadRequestException +class GetSignatureRequestsIdLabelsBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/CreateIdDocumentVerificationForbiddenException.php b/generated/Exception/GetSignatureRequestsIdLabelsForbiddenException.php similarity index 89% rename from generated/Exception/CreateIdDocumentVerificationForbiddenException.php rename to generated/Exception/GetSignatureRequestsIdLabelsForbiddenException.php index 0c10863..97dd2b5 100644 --- a/generated/Exception/CreateIdDocumentVerificationForbiddenException.php +++ b/generated/Exception/GetSignatureRequestsIdLabelsForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class CreateIdDocumentVerificationForbiddenException extends ForbiddenException +class GetSignatureRequestsIdLabelsForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/CreateIdDocumentVerificationInternalServerErrorException.php b/generated/Exception/GetSignatureRequestsIdLabelsInternalServerErrorException.php similarity index 90% rename from generated/Exception/CreateIdDocumentVerificationInternalServerErrorException.php rename to generated/Exception/GetSignatureRequestsIdLabelsInternalServerErrorException.php index f824f77..5bf3390 100644 --- a/generated/Exception/CreateIdDocumentVerificationInternalServerErrorException.php +++ b/generated/Exception/GetSignatureRequestsIdLabelsInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class CreateIdDocumentVerificationInternalServerErrorException extends InternalServerErrorException +class GetSignatureRequestsIdLabelsInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetSignatureRequestsIdLabelsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsIdLabelsMethodNotAllowedException.php new file mode 100644 index 0000000..b8d4e44 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdLabelsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdLabelsNotFoundException.php b/generated/Exception/GetSignatureRequestsIdLabelsNotFoundException.php new file mode 100644 index 0000000..0e7db3c --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdLabelsNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostBankAccountVerificationsTooManyRequestsException.php b/generated/Exception/GetSignatureRequestsIdLabelsTooManyRequestsException.php similarity index 90% rename from generated/Exception/PostBankAccountVerificationsTooManyRequestsException.php rename to generated/Exception/GetSignatureRequestsIdLabelsTooManyRequestsException.php index 2c7424b..f16415c 100644 --- a/generated/Exception/PostBankAccountVerificationsTooManyRequestsException.php +++ b/generated/Exception/GetSignatureRequestsIdLabelsTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class PostBankAccountVerificationsTooManyRequestsException extends TooManyRequestsException +class GetSignatureRequestsIdLabelsTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostBankAccountVerificationsUnauthorizedException.php b/generated/Exception/GetSignatureRequestsIdLabelsUnauthorizedException.php similarity index 90% rename from generated/Exception/PostBankAccountVerificationsUnauthorizedException.php rename to generated/Exception/GetSignatureRequestsIdLabelsUnauthorizedException.php index e0a1a33..d3067b6 100644 --- a/generated/Exception/PostBankAccountVerificationsUnauthorizedException.php +++ b/generated/Exception/GetSignatureRequestsIdLabelsUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class PostBankAccountVerificationsUnauthorizedException extends UnauthorizedException +class GetSignatureRequestsIdLabelsUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException.php new file mode 100644 index 0000000..c089f2b --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException.php new file mode 100644 index 0000000..9c99f6d --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException.php new file mode 100644 index 0000000..8734d4e --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..5549e44 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException.php new file mode 100644 index 0000000..3822f7b --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException.php new file mode 100644 index 0000000..1b3db02 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException.php b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException.php new file mode 100644 index 0000000..6490cdc --- /dev/null +++ b/generated/Exception/GetSignatureRequestsIdSignersIdVerifiedIdentityProofDownloadUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..6dbe198 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php new file mode 100644 index 0000000..da4fc65 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..6ad9264 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdAuditTrailsDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException.php new file mode 100644 index 0000000..49bdd34 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php new file mode 100644 index 0000000..7525670 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php new file mode 100644 index 0000000..3785142 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..54ad1fe --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDocumentsIdDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..4389e9a --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..54d5154 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php new file mode 100644 index 0000000..f2cf9a5 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php new file mode 100644 index 0000000..3b6b34a --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..692357f --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..3a37f2e --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerConsentRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..60f977e --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php new file mode 100644 index 0000000..f1ff41c --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException.php new file mode 100644 index 0000000..2e3ab51 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrailsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..5a117c8 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException.php b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException.php new file mode 100644 index 0000000..433d0b5 --- /dev/null +++ b/generated/Exception/GetSignatureRequestsSignatureRequestIdSignersSignerIdDocumentsSignerDocumentIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException.php b/generated/Exception/GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException.php new file mode 100644 index 0000000..6e8d787 --- /dev/null +++ b/generated/Exception/GetSignersSignerIdAuditTrailsDownloadMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetSignersSignersIdMethodNotAllowedException.php b/generated/Exception/GetSignersSignersIdMethodNotAllowedException.php new file mode 100644 index 0000000..2f5f770 --- /dev/null +++ b/generated/Exception/GetSignersSignersIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetTemplatesMethodNotAllowedException.php b/generated/Exception/GetTemplatesMethodNotAllowedException.php new file mode 100644 index 0000000..1885747 --- /dev/null +++ b/generated/Exception/GetTemplatesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetUsersInvitationInvitationIdMethodNotAllowedException.php b/generated/Exception/GetUsersInvitationInvitationIdMethodNotAllowedException.php new file mode 100644 index 0000000..a1e346e --- /dev/null +++ b/generated/Exception/GetUsersInvitationInvitationIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetUsersMethodNotAllowedException.php b/generated/Exception/GetUsersMethodNotAllowedException.php new file mode 100644 index 0000000..e5a1f90 --- /dev/null +++ b/generated/Exception/GetUsersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetUsersUserIdInvitationMethodNotAllowedException.php b/generated/Exception/GetUsersUserIdInvitationMethodNotAllowedException.php new file mode 100644 index 0000000..d41ce97 --- /dev/null +++ b/generated/Exception/GetUsersUserIdInvitationMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetUsersUserIdMethodNotAllowedException.php b/generated/Exception/GetUsersUserIdMethodNotAllowedException.php new file mode 100644 index 0000000..e0e986c --- /dev/null +++ b/generated/Exception/GetUsersUserIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsBadRequestException.php b/generated/Exception/GetVerificationsBankAccountLookupsBadRequestException.php new file mode 100644 index 0000000..f4fda13 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsForbiddenException.php b/generated/Exception/GetVerificationsBankAccountLookupsForbiddenException.php new file mode 100644 index 0000000..4b7b25d --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdBadRequestException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdBadRequestException.php new file mode 100644 index 0000000..4ee376b --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdForbiddenException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdForbiddenException.php new file mode 100644 index 0000000..547c3fa --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdInternalServerErrorException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdInternalServerErrorException.php new file mode 100644 index 0000000..2878fb3 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdMethodNotAllowedException.php new file mode 100644 index 0000000..afc47ea --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdNotFoundException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdNotFoundException.php new file mode 100644 index 0000000..e4c80ea --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdTooManyRequestsException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdTooManyRequestsException.php new file mode 100644 index 0000000..72249aa --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsIdUnauthorizedException.php b/generated/Exception/GetVerificationsBankAccountLookupsIdUnauthorizedException.php new file mode 100644 index 0000000..b1bff68 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsInternalServerErrorException.php b/generated/Exception/GetVerificationsBankAccountLookupsInternalServerErrorException.php new file mode 100644 index 0000000..e1546f3 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsMethodNotAllowedException.php b/generated/Exception/GetVerificationsBankAccountLookupsMethodNotAllowedException.php new file mode 100644 index 0000000..2d23f76 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsTooManyRequestsException.php b/generated/Exception/GetVerificationsBankAccountLookupsTooManyRequestsException.php new file mode 100644 index 0000000..d204927 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountLookupsUnauthorizedException.php b/generated/Exception/GetVerificationsBankAccountLookupsUnauthorizedException.php new file mode 100644 index 0000000..5cd4d39 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountLookupsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsBadRequestException.php b/generated/Exception/GetVerificationsBankAccountsBadRequestException.php new file mode 100644 index 0000000..db60119 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsForbiddenException.php b/generated/Exception/GetVerificationsBankAccountsForbiddenException.php new file mode 100644 index 0000000..1d479ff --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdBadRequestException.php b/generated/Exception/GetVerificationsBankAccountsIdBadRequestException.php new file mode 100644 index 0000000..534e4cf --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdForbiddenException.php b/generated/Exception/GetVerificationsBankAccountsIdForbiddenException.php new file mode 100644 index 0000000..63c4529 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdInternalServerErrorException.php b/generated/Exception/GetVerificationsBankAccountsIdInternalServerErrorException.php new file mode 100644 index 0000000..e482c76 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsBankAccountsIdMethodNotAllowedException.php new file mode 100644 index 0000000..3b2ce2c --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdNotFoundException.php b/generated/Exception/GetVerificationsBankAccountsIdNotFoundException.php new file mode 100644 index 0000000..1d8fd0d --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdTooManyRequestsException.php b/generated/Exception/GetVerificationsBankAccountsIdTooManyRequestsException.php new file mode 100644 index 0000000..bc56743 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsIdUnauthorizedException.php b/generated/Exception/GetVerificationsBankAccountsIdUnauthorizedException.php new file mode 100644 index 0000000..3680cb4 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsInternalServerErrorException.php b/generated/Exception/GetVerificationsBankAccountsInternalServerErrorException.php new file mode 100644 index 0000000..97bc5db --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsMethodNotAllowedException.php b/generated/Exception/GetVerificationsBankAccountsMethodNotAllowedException.php new file mode 100644 index 0000000..249a505 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsTooManyRequestsException.php b/generated/Exception/GetVerificationsBankAccountsTooManyRequestsException.php new file mode 100644 index 0000000..30d3da3 --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsBankAccountsUnauthorizedException.php b/generated/Exception/GetVerificationsBankAccountsUnauthorizedException.php new file mode 100644 index 0000000..5e1e65c --- /dev/null +++ b/generated/Exception/GetVerificationsBankAccountsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdDocumentVerificationBadRequestException.php b/generated/Exception/GetVerificationsCompaniesBadRequestException.php similarity index 89% rename from generated/Exception/GetIdDocumentVerificationBadRequestException.php rename to generated/Exception/GetVerificationsCompaniesBadRequestException.php index 1f37951..71e237b 100644 --- a/generated/Exception/GetIdDocumentVerificationBadRequestException.php +++ b/generated/Exception/GetVerificationsCompaniesBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class GetIdDocumentVerificationBadRequestException extends BadRequestException +class GetVerificationsCompaniesBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetIdDocumentVerificationForbiddenException.php b/generated/Exception/GetVerificationsCompaniesForbiddenException.php similarity index 89% rename from generated/Exception/GetIdDocumentVerificationForbiddenException.php rename to generated/Exception/GetVerificationsCompaniesForbiddenException.php index 7f26a42..7d20321 100644 --- a/generated/Exception/GetIdDocumentVerificationForbiddenException.php +++ b/generated/Exception/GetVerificationsCompaniesForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class GetIdDocumentVerificationForbiddenException extends ForbiddenException +class GetVerificationsCompaniesForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetVerificationsCompaniesIdBadRequestException.php b/generated/Exception/GetVerificationsCompaniesIdBadRequestException.php new file mode 100644 index 0000000..e79d25a --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdForbiddenException.php b/generated/Exception/GetVerificationsCompaniesIdForbiddenException.php new file mode 100644 index 0000000..c3127d3 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdInternalServerErrorException.php b/generated/Exception/GetVerificationsCompaniesIdInternalServerErrorException.php new file mode 100644 index 0000000..ad2baa3 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsCompaniesIdMethodNotAllowedException.php new file mode 100644 index 0000000..7c2b948 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdNotFoundException.php b/generated/Exception/GetVerificationsCompaniesIdNotFoundException.php new file mode 100644 index 0000000..a9c78d1 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdTooManyRequestsException.php b/generated/Exception/GetVerificationsCompaniesIdTooManyRequestsException.php new file mode 100644 index 0000000..b761472 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsCompaniesIdUnauthorizedException.php b/generated/Exception/GetVerificationsCompaniesIdUnauthorizedException.php new file mode 100644 index 0000000..623a678 --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdDocumentVerificationInternalServerErrorException.php b/generated/Exception/GetVerificationsCompaniesInternalServerErrorException.php similarity index 90% rename from generated/Exception/GetIdDocumentVerificationInternalServerErrorException.php rename to generated/Exception/GetVerificationsCompaniesInternalServerErrorException.php index e8d9608..1225eaa 100644 --- a/generated/Exception/GetIdDocumentVerificationInternalServerErrorException.php +++ b/generated/Exception/GetVerificationsCompaniesInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class GetIdDocumentVerificationInternalServerErrorException extends InternalServerErrorException +class GetVerificationsCompaniesInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetVerificationsCompaniesMethodNotAllowedException.php b/generated/Exception/GetVerificationsCompaniesMethodNotAllowedException.php new file mode 100644 index 0000000..20afaef --- /dev/null +++ b/generated/Exception/GetVerificationsCompaniesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdDocumentVerificationTooManyRequestsException.php b/generated/Exception/GetVerificationsCompaniesTooManyRequestsException.php similarity index 90% rename from generated/Exception/GetIdDocumentVerificationTooManyRequestsException.php rename to generated/Exception/GetVerificationsCompaniesTooManyRequestsException.php index 6890f39..a4474bb 100644 --- a/generated/Exception/GetIdDocumentVerificationTooManyRequestsException.php +++ b/generated/Exception/GetVerificationsCompaniesTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class GetIdDocumentVerificationTooManyRequestsException extends TooManyRequestsException +class GetVerificationsCompaniesTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetIdDocumentVerificationUnauthorizedException.php b/generated/Exception/GetVerificationsCompaniesUnauthorizedException.php similarity index 90% rename from generated/Exception/GetIdDocumentVerificationUnauthorizedException.php rename to generated/Exception/GetVerificationsCompaniesUnauthorizedException.php index f05488f..d53cf61 100644 --- a/generated/Exception/GetIdDocumentVerificationUnauthorizedException.php +++ b/generated/Exception/GetVerificationsCompaniesUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class GetIdDocumentVerificationUnauthorizedException extends UnauthorizedException +class GetVerificationsCompaniesUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetVerificationsIdentityDocumentsBadRequestException.php b/generated/Exception/GetVerificationsIdentityDocumentsBadRequestException.php new file mode 100644 index 0000000..4a69c64 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsForbiddenException.php b/generated/Exception/GetVerificationsIdentityDocumentsForbiddenException.php new file mode 100644 index 0000000..9ea8d99 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdBadRequestException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdBadRequestException.php new file mode 100644 index 0000000..b322978 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdForbiddenException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdForbiddenException.php new file mode 100644 index 0000000..b2f2781 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdInternalServerErrorException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdInternalServerErrorException.php new file mode 100644 index 0000000..bb5251f --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdMethodNotAllowedException.php new file mode 100644 index 0000000..578e6bc --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdNotFoundException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdNotFoundException.php new file mode 100644 index 0000000..7a43aa2 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdTooManyRequestsException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdTooManyRequestsException.php new file mode 100644 index 0000000..426b437 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsIdUnauthorizedException.php b/generated/Exception/GetVerificationsIdentityDocumentsIdUnauthorizedException.php new file mode 100644 index 0000000..fac68de --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsInternalServerErrorException.php b/generated/Exception/GetVerificationsIdentityDocumentsInternalServerErrorException.php new file mode 100644 index 0000000..01876d9 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsMethodNotAllowedException.php b/generated/Exception/GetVerificationsIdentityDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..11912bf --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsTooManyRequestsException.php b/generated/Exception/GetVerificationsIdentityDocumentsTooManyRequestsException.php new file mode 100644 index 0000000..bfb4c5e --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityDocumentsUnauthorizedException.php b/generated/Exception/GetVerificationsIdentityDocumentsUnauthorizedException.php new file mode 100644 index 0000000..31c7289 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityDocumentsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosBadRequestException.php b/generated/Exception/GetVerificationsIdentityVideosBadRequestException.php new file mode 100644 index 0000000..ffefd19 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosForbiddenException.php b/generated/Exception/GetVerificationsIdentityVideosForbiddenException.php new file mode 100644 index 0000000..97e8647 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdBadRequestException.php b/generated/Exception/GetVerificationsIdentityVideosIdBadRequestException.php new file mode 100644 index 0000000..df4d4aa --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdForbiddenException.php b/generated/Exception/GetVerificationsIdentityVideosIdForbiddenException.php new file mode 100644 index 0000000..798bb30 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdInternalServerErrorException.php b/generated/Exception/GetVerificationsIdentityVideosIdInternalServerErrorException.php new file mode 100644 index 0000000..42e38b1 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsIdentityVideosIdMethodNotAllowedException.php new file mode 100644 index 0000000..4e1b633 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdNotFoundException.php b/generated/Exception/GetVerificationsIdentityVideosIdNotFoundException.php new file mode 100644 index 0000000..bf655c2 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdTooManyRequestsException.php b/generated/Exception/GetVerificationsIdentityVideosIdTooManyRequestsException.php new file mode 100644 index 0000000..6075252 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosIdUnauthorizedException.php b/generated/Exception/GetVerificationsIdentityVideosIdUnauthorizedException.php new file mode 100644 index 0000000..d174002 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosInternalServerErrorException.php b/generated/Exception/GetVerificationsIdentityVideosInternalServerErrorException.php new file mode 100644 index 0000000..74b4dc4 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosMethodNotAllowedException.php b/generated/Exception/GetVerificationsIdentityVideosMethodNotAllowedException.php new file mode 100644 index 0000000..a3b3af7 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosTooManyRequestsException.php b/generated/Exception/GetVerificationsIdentityVideosTooManyRequestsException.php new file mode 100644 index 0000000..9370672 --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsIdentityVideosUnauthorizedException.php b/generated/Exception/GetVerificationsIdentityVideosUnauthorizedException.php new file mode 100644 index 0000000..c44ff6a --- /dev/null +++ b/generated/Exception/GetVerificationsIdentityVideosUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressBadRequestException.php b/generated/Exception/GetVerificationsProofsOfAddressBadRequestException.php new file mode 100644 index 0000000..785ee8e --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressForbiddenException.php b/generated/Exception/GetVerificationsProofsOfAddressForbiddenException.php new file mode 100644 index 0000000..db9d216 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdBadRequestException.php b/generated/Exception/GetVerificationsProofsOfAddressIdBadRequestException.php new file mode 100644 index 0000000..ff429aa --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdForbiddenException.php b/generated/Exception/GetVerificationsProofsOfAddressIdForbiddenException.php new file mode 100644 index 0000000..6f8cc1c --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdInternalServerErrorException.php b/generated/Exception/GetVerificationsProofsOfAddressIdInternalServerErrorException.php new file mode 100644 index 0000000..4642e1b --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsProofsOfAddressIdMethodNotAllowedException.php new file mode 100644 index 0000000..ec837a9 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdNotFoundException.php b/generated/Exception/GetVerificationsProofsOfAddressIdNotFoundException.php new file mode 100644 index 0000000..de1f1e4 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdTooManyRequestsException.php b/generated/Exception/GetVerificationsProofsOfAddressIdTooManyRequestsException.php new file mode 100644 index 0000000..13d8d86 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressIdUnauthorizedException.php b/generated/Exception/GetVerificationsProofsOfAddressIdUnauthorizedException.php new file mode 100644 index 0000000..4e63683 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressInternalServerErrorException.php b/generated/Exception/GetVerificationsProofsOfAddressInternalServerErrorException.php new file mode 100644 index 0000000..920efd7 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressMethodNotAllowedException.php b/generated/Exception/GetVerificationsProofsOfAddressMethodNotAllowedException.php new file mode 100644 index 0000000..aa86af8 --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressTooManyRequestsException.php b/generated/Exception/GetVerificationsProofsOfAddressTooManyRequestsException.php new file mode 100644 index 0000000..ff4b85a --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsProofsOfAddressUnauthorizedException.php b/generated/Exception/GetVerificationsProofsOfAddressUnauthorizedException.php new file mode 100644 index 0000000..d71ff6a --- /dev/null +++ b/generated/Exception/GetVerificationsProofsOfAddressUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailBadRequestException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailBadRequestException.php new file mode 100644 index 0000000..d4ca724 --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailForbiddenException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailForbiddenException.php new file mode 100644 index 0000000..8dc41f2 --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailInternalServerErrorException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailInternalServerErrorException.php new file mode 100644 index 0000000..01ad829 --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailMethodNotAllowedException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailMethodNotAllowedException.php new file mode 100644 index 0000000..014fb5a --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailNotFoundException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailNotFoundException.php new file mode 100644 index 0000000..4aa0130 --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailTooManyRequestsException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailTooManyRequestsException.php new file mode 100644 index 0000000..b3f3abe --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsTypeIdAuditTrailUnauthorizedException.php b/generated/Exception/GetVerificationsTypeIdAuditTrailUnauthorizedException.php new file mode 100644 index 0000000..9504f55 --- /dev/null +++ b/generated/Exception/GetVerificationsTypeIdAuditTrailUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsBadRequestException.php b/generated/Exception/GetVerificationsWatchlistsBadRequestException.php new file mode 100644 index 0000000..ea9a754 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsForbiddenException.php b/generated/Exception/GetVerificationsWatchlistsForbiddenException.php new file mode 100644 index 0000000..6a94693 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdBadRequestException.php b/generated/Exception/GetVerificationsWatchlistsIdBadRequestException.php new file mode 100644 index 0000000..c941844 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdForbiddenException.php b/generated/Exception/GetVerificationsWatchlistsIdForbiddenException.php new file mode 100644 index 0000000..0c08811 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdInternalServerErrorException.php b/generated/Exception/GetVerificationsWatchlistsIdInternalServerErrorException.php new file mode 100644 index 0000000..996c2f8 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdMethodNotAllowedException.php b/generated/Exception/GetVerificationsWatchlistsIdMethodNotAllowedException.php new file mode 100644 index 0000000..3d4f922 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdNotFoundException.php b/generated/Exception/GetVerificationsWatchlistsIdNotFoundException.php new file mode 100644 index 0000000..b8cf7a1 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdTooManyRequestsException.php b/generated/Exception/GetVerificationsWatchlistsIdTooManyRequestsException.php new file mode 100644 index 0000000..6322560 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsIdUnauthorizedException.php b/generated/Exception/GetVerificationsWatchlistsIdUnauthorizedException.php new file mode 100644 index 0000000..7875c0c --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsInternalServerErrorException.php b/generated/Exception/GetVerificationsWatchlistsInternalServerErrorException.php new file mode 100644 index 0000000..a537359 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsMethodNotAllowedException.php b/generated/Exception/GetVerificationsWatchlistsMethodNotAllowedException.php new file mode 100644 index 0000000..e330905 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsTooManyRequestsException.php b/generated/Exception/GetVerificationsWatchlistsTooManyRequestsException.php new file mode 100644 index 0000000..4f37773 --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetVerificationsWatchlistsUnauthorizedException.php b/generated/Exception/GetVerificationsWatchlistsUnauthorizedException.php new file mode 100644 index 0000000..14f83cd --- /dev/null +++ b/generated/Exception/GetVerificationsWatchlistsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWebhooksMethodNotAllowedException.php b/generated/Exception/GetWebhooksMethodNotAllowedException.php new file mode 100644 index 0000000..e8c3668 --- /dev/null +++ b/generated/Exception/GetWebhooksMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWebhooksWebhookIdMethodNotAllowedException.php b/generated/Exception/GetWebhooksWebhookIdMethodNotAllowedException.php new file mode 100644 index 0000000..252b88d --- /dev/null +++ b/generated/Exception/GetWebhooksWebhookIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsBadRequestException.php b/generated/Exception/GetWorkflowSessionsBadRequestException.php new file mode 100644 index 0000000..1962352 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsForbiddenException.php b/generated/Exception/GetWorkflowSessionsForbiddenException.php new file mode 100644 index 0000000..ff8be15 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsBadRequestException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsBadRequestException.php new file mode 100644 index 0000000..a09688f --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsForbiddenException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsForbiddenException.php new file mode 100644 index 0000000..11886bc --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdBadRequestException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdBadRequestException.php new file mode 100644 index 0000000..a5a0441 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdForbiddenException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdForbiddenException.php new file mode 100644 index 0000000..23acff3 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdInternalServerErrorException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdInternalServerErrorException.php new file mode 100644 index 0000000..6869fec --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php new file mode 100644 index 0000000..cd695e7 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdNotFoundException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdNotFoundException.php new file mode 100644 index 0000000..cd38f99 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdTooManyRequestsException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdTooManyRequestsException.php new file mode 100644 index 0000000..7dc3d93 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsIdUnauthorizedException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsIdUnauthorizedException.php new file mode 100644 index 0000000..89e2758 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsInternalServerErrorException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsInternalServerErrorException.php new file mode 100644 index 0000000..7293572 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsMethodNotAllowedException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsMethodNotAllowedException.php new file mode 100644 index 0000000..200b44a --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsTooManyRequestsException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsTooManyRequestsException.php new file mode 100644 index 0000000..855297c --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdApplicantsUnauthorizedException.php b/generated/Exception/GetWorkflowSessionsIdApplicantsUnauthorizedException.php new file mode 100644 index 0000000..51487a2 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdApplicantsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdBadRequestException.php b/generated/Exception/GetWorkflowSessionsIdBadRequestException.php new file mode 100644 index 0000000..19d1e35 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdForbiddenException.php b/generated/Exception/GetWorkflowSessionsIdForbiddenException.php new file mode 100644 index 0000000..285a7c7 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdInternalServerErrorException.php b/generated/Exception/GetWorkflowSessionsIdInternalServerErrorException.php new file mode 100644 index 0000000..7bfb239 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksBadRequestException.php b/generated/Exception/GetWorkflowSessionsIdLinksBadRequestException.php new file mode 100644 index 0000000..92d0e0a --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksForbiddenException.php b/generated/Exception/GetWorkflowSessionsIdLinksForbiddenException.php new file mode 100644 index 0000000..d9de3e9 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksInternalServerErrorException.php b/generated/Exception/GetWorkflowSessionsIdLinksInternalServerErrorException.php new file mode 100644 index 0000000..b76b86a --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksMethodNotAllowedException.php b/generated/Exception/GetWorkflowSessionsIdLinksMethodNotAllowedException.php new file mode 100644 index 0000000..08e5bed --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksNotFoundException.php b/generated/Exception/GetWorkflowSessionsIdLinksNotFoundException.php new file mode 100644 index 0000000..d8b4489 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksTooManyRequestsException.php b/generated/Exception/GetWorkflowSessionsIdLinksTooManyRequestsException.php new file mode 100644 index 0000000..5eeebba --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdLinksUnauthorizedException.php b/generated/Exception/GetWorkflowSessionsIdLinksUnauthorizedException.php new file mode 100644 index 0000000..75bc4cb --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdLinksUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdMethodNotAllowedException.php b/generated/Exception/GetWorkflowSessionsIdMethodNotAllowedException.php new file mode 100644 index 0000000..00b8c93 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdNotFoundException.php b/generated/Exception/GetWorkflowSessionsIdNotFoundException.php new file mode 100644 index 0000000..4e710b4 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdTooManyRequestsException.php b/generated/Exception/GetWorkflowSessionsIdTooManyRequestsException.php new file mode 100644 index 0000000..30d15ef --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsIdUnauthorizedException.php b/generated/Exception/GetWorkflowSessionsIdUnauthorizedException.php new file mode 100644 index 0000000..edf2717 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsInternalServerErrorException.php b/generated/Exception/GetWorkflowSessionsInternalServerErrorException.php new file mode 100644 index 0000000..7a92528 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsMethodNotAllowedException.php b/generated/Exception/GetWorkflowSessionsMethodNotAllowedException.php new file mode 100644 index 0000000..55b2371 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsTooManyRequestsException.php b/generated/Exception/GetWorkflowSessionsTooManyRequestsException.php new file mode 100644 index 0000000..19748d7 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowSessionsUnauthorizedException.php b/generated/Exception/GetWorkflowSessionsUnauthorizedException.php new file mode 100644 index 0000000..3fb7704 --- /dev/null +++ b/generated/Exception/GetWorkflowSessionsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesBadRequestException.php b/generated/Exception/GetWorkflowTemplatesBadRequestException.php new file mode 100644 index 0000000..6724a98 --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesForbiddenException.php b/generated/Exception/GetWorkflowTemplatesForbiddenException.php new file mode 100644 index 0000000..205bbd2 --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesInternalServerErrorException.php b/generated/Exception/GetWorkflowTemplatesInternalServerErrorException.php new file mode 100644 index 0000000..46a1637 --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesMethodNotAllowedException.php b/generated/Exception/GetWorkflowTemplatesMethodNotAllowedException.php new file mode 100644 index 0000000..f67732a --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesTooManyRequestsException.php b/generated/Exception/GetWorkflowTemplatesTooManyRequestsException.php new file mode 100644 index 0000000..c8b109d --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkflowTemplatesUnauthorizedException.php b/generated/Exception/GetWorkflowTemplatesUnauthorizedException.php new file mode 100644 index 0000000..266e32b --- /dev/null +++ b/generated/Exception/GetWorkflowTemplatesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkspacesDefaultMethodNotAllowedException.php b/generated/Exception/GetWorkspacesDefaultMethodNotAllowedException.php new file mode 100644 index 0000000..95f8387 --- /dev/null +++ b/generated/Exception/GetWorkspacesDefaultMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkspacesMethodNotAllowedException.php b/generated/Exception/GetWorkspacesMethodNotAllowedException.php new file mode 100644 index 0000000..9c33634 --- /dev/null +++ b/generated/Exception/GetWorkspacesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetWorkspacesWorkspaceIdMethodNotAllowedException.php b/generated/Exception/GetWorkspacesWorkspaceIdMethodNotAllowedException.php new file mode 100644 index 0000000..010ffb7 --- /dev/null +++ b/generated/Exception/GetWorkspacesWorkspaceIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/InternalServerErrorException.php b/generated/Exception/InternalServerErrorException.php index e8d3bc9..13aa423 100644 --- a/generated/Exception/InternalServerErrorException.php +++ b/generated/Exception/InternalServerErrorException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class InternalServerErrorException extends \RuntimeException implements ServerException +abstract class InternalServerErrorException extends \RuntimeException implements ServerException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/ListElectronicSealImagesMethodNotAllowedException.php b/generated/Exception/ListElectronicSealImagesMethodNotAllowedException.php new file mode 100644 index 0000000..64b580f --- /dev/null +++ b/generated/Exception/ListElectronicSealImagesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/MarkWorkspaceAsDefaultMethodNotAllowedException.php b/generated/Exception/MarkWorkspaceAsDefaultMethodNotAllowedException.php new file mode 100644 index 0000000..556506e --- /dev/null +++ b/generated/Exception/MarkWorkspaceAsDefaultMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/MethodNotAllowedException.php b/generated/Exception/MethodNotAllowedException.php new file mode 100644 index 0000000..1c09edb --- /dev/null +++ b/generated/Exception/MethodNotAllowedException.php @@ -0,0 +1,11 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomExperienceLogoMethodNotAllowedException.php b/generated/Exception/PatchCustomExperienceLogoMethodNotAllowedException.php new file mode 100644 index 0000000..17b6087 --- /dev/null +++ b/generated/Exception/PatchCustomExperienceLogoMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException.php b/generated/Exception/PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException.php new file mode 100644 index 0000000..cbdb5bb --- /dev/null +++ b/generated/Exception/PatchCustomExperiencesCustomExperienceIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdBadRequestException.php b/generated/Exception/PatchCustomPropertiesIdBadRequestException.php new file mode 100644 index 0000000..1e4a77b --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdForbiddenException.php b/generated/Exception/PatchCustomPropertiesIdForbiddenException.php new file mode 100644 index 0000000..9efa58f --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdInternalServerErrorException.php b/generated/Exception/PatchCustomPropertiesIdInternalServerErrorException.php new file mode 100644 index 0000000..29746a6 --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdMethodNotAllowedException.php b/generated/Exception/PatchCustomPropertiesIdMethodNotAllowedException.php new file mode 100644 index 0000000..f154e47 --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdNotFoundException.php b/generated/Exception/PatchCustomPropertiesIdNotFoundException.php new file mode 100644 index 0000000..9b47572 --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdTooManyRequestsException.php b/generated/Exception/PatchCustomPropertiesIdTooManyRequestsException.php new file mode 100644 index 0000000..7a66166 --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchCustomPropertiesIdUnauthorizedException.php b/generated/Exception/PatchCustomPropertiesIdUnauthorizedException.php new file mode 100644 index 0000000..da2cf9f --- /dev/null +++ b/generated/Exception/PatchCustomPropertiesIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdBadRequestException.php b/generated/Exception/PatchLabelIdBadRequestException.php new file mode 100644 index 0000000..c702c0c --- /dev/null +++ b/generated/Exception/PatchLabelIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdForbiddenException.php b/generated/Exception/PatchLabelIdForbiddenException.php new file mode 100644 index 0000000..7ae5156 --- /dev/null +++ b/generated/Exception/PatchLabelIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdInternalServerErrorException.php b/generated/Exception/PatchLabelIdInternalServerErrorException.php new file mode 100644 index 0000000..b8b063f --- /dev/null +++ b/generated/Exception/PatchLabelIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdMethodNotAllowedException.php b/generated/Exception/PatchLabelIdMethodNotAllowedException.php new file mode 100644 index 0000000..ae1def0 --- /dev/null +++ b/generated/Exception/PatchLabelIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdNotFoundException.php b/generated/Exception/PatchLabelIdNotFoundException.php new file mode 100644 index 0000000..0ee6b1c --- /dev/null +++ b/generated/Exception/PatchLabelIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdTooManyRequestsException.php b/generated/Exception/PatchLabelIdTooManyRequestsException.php new file mode 100644 index 0000000..0cdfce3 --- /dev/null +++ b/generated/Exception/PatchLabelIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchLabelIdUnauthorizedException.php b/generated/Exception/PatchLabelIdUnauthorizedException.php new file mode 100644 index 0000000..a34d8fa --- /dev/null +++ b/generated/Exception/PatchLabelIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/CreateIdDocumentVerificationUnsupportedMediaTypeException.php b/generated/Exception/PatchLabelIdUnsupportedMediaTypeException.php similarity index 85% rename from generated/Exception/CreateIdDocumentVerificationUnsupportedMediaTypeException.php rename to generated/Exception/PatchLabelIdUnsupportedMediaTypeException.php index 26ab17f..d2108c2 100644 --- a/generated/Exception/CreateIdDocumentVerificationUnsupportedMediaTypeException.php +++ b/generated/Exception/PatchLabelIdUnsupportedMediaTypeException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; -class CreateIdDocumentVerificationUnsupportedMediaTypeException extends UnsupportedMediaTypeException +class PatchLabelIdUnsupportedMediaTypeException extends UnsupportedMediaTypeException { public function __construct(private readonly UnsupportedMediaTypeResponse $unsupportedMediaTypeResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdBadRequestException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdBadRequestException.php new file mode 100644 index 0000000..cd84ebc --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdForbiddenException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdForbiddenException.php new file mode 100644 index 0000000..79d76df --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException.php new file mode 100644 index 0000000..6bee4c6 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException.php new file mode 100644 index 0000000..0b510dc --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdNotFoundException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdNotFoundException.php new file mode 100644 index 0000000..6a4bd24 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException.php new file mode 100644 index 0000000..803d953 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException.php new file mode 100644 index 0000000..92f8f45 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException.php b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException.php new file mode 100644 index 0000000..f3de105 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsIdDocumentRequestsIdUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php new file mode 100644 index 0000000..b451e6a --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsSignatureRequestIdApproversApproverIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..53bb256 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php new file mode 100644 index 0000000..64e0a34 --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsSignatureRequestIdDocumentsDocumentIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException.php new file mode 100644 index 0000000..a610a8f --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsSignatureRequestIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..d26e6de --- /dev/null +++ b/generated/Exception/PatchSignatureRequestsSignatureRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchUsersUserIdMethodNotAllowedException.php b/generated/Exception/PatchUsersUserIdMethodNotAllowedException.php new file mode 100644 index 0000000..a8aeb99 --- /dev/null +++ b/generated/Exception/PatchUsersUserIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWebhooksWebhookIdMethodNotAllowedException.php b/generated/Exception/PatchWebhooksWebhookIdMethodNotAllowedException.php new file mode 100644 index 0000000..8a0412c --- /dev/null +++ b/generated/Exception/PatchWebhooksWebhookIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdBadRequestException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdBadRequestException.php new file mode 100644 index 0000000..7c1a2bf --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdForbiddenException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdForbiddenException.php new file mode 100644 index 0000000..cf35456 --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException.php new file mode 100644 index 0000000..0f16b0c --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php new file mode 100644 index 0000000..56f9172 --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdNotFoundException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdNotFoundException.php new file mode 100644 index 0000000..373bca4 --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException.php new file mode 100644 index 0000000..5a37f70 --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkflowSessionsIdApplicantsIdUnauthorizedException.php b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdUnauthorizedException.php new file mode 100644 index 0000000..c8aef67 --- /dev/null +++ b/generated/Exception/PatchWorkflowSessionsIdApplicantsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PatchWorkspacesWorkspaceIdMethodNotAllowedException.php b/generated/Exception/PatchWorkspacesWorkspaceIdMethodNotAllowedException.php new file mode 100644 index 0000000..494314f --- /dev/null +++ b/generated/Exception/PatchWorkspacesWorkspaceIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostArchivesMethodNotAllowedException.php b/generated/Exception/PostArchivesMethodNotAllowedException.php new file mode 100644 index 0000000..a3cb493 --- /dev/null +++ b/generated/Exception/PostArchivesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostContactMethodNotAllowedException.php b/generated/Exception/PostContactMethodNotAllowedException.php new file mode 100644 index 0000000..e4181fc --- /dev/null +++ b/generated/Exception/PostContactMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomExperienceMethodNotAllowedException.php b/generated/Exception/PostCustomExperienceMethodNotAllowedException.php new file mode 100644 index 0000000..6af0e2c --- /dev/null +++ b/generated/Exception/PostCustomExperienceMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomExperienceNotFoundException.php b/generated/Exception/PostCustomExperienceNotFoundException.php new file mode 100644 index 0000000..40333a2 --- /dev/null +++ b/generated/Exception/PostCustomExperienceNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesBadRequestException.php b/generated/Exception/PostCustomPropertiesBadRequestException.php new file mode 100644 index 0000000..1687228 --- /dev/null +++ b/generated/Exception/PostCustomPropertiesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesForbiddenException.php b/generated/Exception/PostCustomPropertiesForbiddenException.php new file mode 100644 index 0000000..9cdc2d5 --- /dev/null +++ b/generated/Exception/PostCustomPropertiesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesInternalServerErrorException.php b/generated/Exception/PostCustomPropertiesInternalServerErrorException.php new file mode 100644 index 0000000..7f8c0ae --- /dev/null +++ b/generated/Exception/PostCustomPropertiesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesMethodNotAllowedException.php b/generated/Exception/PostCustomPropertiesMethodNotAllowedException.php new file mode 100644 index 0000000..27b5707 --- /dev/null +++ b/generated/Exception/PostCustomPropertiesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesNotFoundException.php b/generated/Exception/PostCustomPropertiesNotFoundException.php new file mode 100644 index 0000000..a1c61d5 --- /dev/null +++ b/generated/Exception/PostCustomPropertiesNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesTooManyRequestsException.php b/generated/Exception/PostCustomPropertiesTooManyRequestsException.php new file mode 100644 index 0000000..85d4a82 --- /dev/null +++ b/generated/Exception/PostCustomPropertiesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostCustomPropertiesUnauthorizedException.php b/generated/Exception/PostCustomPropertiesUnauthorizedException.php new file mode 100644 index 0000000..9c1eefe --- /dev/null +++ b/generated/Exception/PostCustomPropertiesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesBadRequestException.php b/generated/Exception/PostDocumentAnalysesBadRequestException.php new file mode 100644 index 0000000..9798c1e --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesForbiddenException.php b/generated/Exception/PostDocumentAnalysesForbiddenException.php new file mode 100644 index 0000000..ea8dc9f --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesInternalServerErrorException.php b/generated/Exception/PostDocumentAnalysesInternalServerErrorException.php new file mode 100644 index 0000000..9fd3b3e --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesMethodNotAllowedException.php b/generated/Exception/PostDocumentAnalysesMethodNotAllowedException.php new file mode 100644 index 0000000..8d6af80 --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesNotFoundException.php b/generated/Exception/PostDocumentAnalysesNotFoundException.php new file mode 100644 index 0000000..4c67ace --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesTooManyRequestsException.php b/generated/Exception/PostDocumentAnalysesTooManyRequestsException.php new file mode 100644 index 0000000..5a1da1d --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostDocumentAnalysesUnauthorizedException.php b/generated/Exception/PostDocumentAnalysesUnauthorizedException.php new file mode 100644 index 0000000..0d029ce --- /dev/null +++ b/generated/Exception/PostDocumentAnalysesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostBankAccountVerificationsUnsupportedMediaTypeException.php b/generated/Exception/PostDocumentAnalysesUnsupportedMediaTypeException.php similarity index 85% rename from generated/Exception/PostBankAccountVerificationsUnsupportedMediaTypeException.php rename to generated/Exception/PostDocumentAnalysesUnsupportedMediaTypeException.php index e462d4a..0b7c823 100644 --- a/generated/Exception/PostBankAccountVerificationsUnsupportedMediaTypeException.php +++ b/generated/Exception/PostDocumentAnalysesUnsupportedMediaTypeException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnsupportedMediaTypeResponse; -class PostBankAccountVerificationsUnsupportedMediaTypeException extends UnsupportedMediaTypeException +class PostDocumentAnalysesUnsupportedMediaTypeException extends UnsupportedMediaTypeException { public function __construct(private readonly UnsupportedMediaTypeResponse $unsupportedMediaTypeResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostDocumentsMethodNotAllowedException.php b/generated/Exception/PostDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..dc12ec6 --- /dev/null +++ b/generated/Exception/PostDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewBadRequestException.php b/generated/Exception/PostElectronicSealImagesPreviewBadRequestException.php new file mode 100644 index 0000000..efddc6e --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewForbiddenException.php b/generated/Exception/PostElectronicSealImagesPreviewForbiddenException.php new file mode 100644 index 0000000..d208d5e --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewInternalServerErrorException.php b/generated/Exception/PostElectronicSealImagesPreviewInternalServerErrorException.php new file mode 100644 index 0000000..def4e79 --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewMethodNotAllowedException.php b/generated/Exception/PostElectronicSealImagesPreviewMethodNotAllowedException.php new file mode 100644 index 0000000..7fae93e --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewNotFoundException.php b/generated/Exception/PostElectronicSealImagesPreviewNotFoundException.php new file mode 100644 index 0000000..8502caf --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewTooManyRequestsException.php b/generated/Exception/PostElectronicSealImagesPreviewTooManyRequestsException.php new file mode 100644 index 0000000..0f64cab --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealImagesPreviewUnauthorizedException.php b/generated/Exception/PostElectronicSealImagesPreviewUnauthorizedException.php new file mode 100644 index 0000000..fdf5f8c --- /dev/null +++ b/generated/Exception/PostElectronicSealImagesPreviewUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostElectronicSealsMethodNotAllowedException.php b/generated/Exception/PostElectronicSealsMethodNotAllowedException.php new file mode 100644 index 0000000..cdbda41 --- /dev/null +++ b/generated/Exception/PostElectronicSealsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsBadRequestException.php b/generated/Exception/PostLabelsBadRequestException.php new file mode 100644 index 0000000..7a82946 --- /dev/null +++ b/generated/Exception/PostLabelsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsForbiddenException.php b/generated/Exception/PostLabelsForbiddenException.php new file mode 100644 index 0000000..0306eac --- /dev/null +++ b/generated/Exception/PostLabelsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsInternalServerErrorException.php b/generated/Exception/PostLabelsInternalServerErrorException.php new file mode 100644 index 0000000..64d7e25 --- /dev/null +++ b/generated/Exception/PostLabelsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsMethodNotAllowedException.php b/generated/Exception/PostLabelsMethodNotAllowedException.php new file mode 100644 index 0000000..cf2c559 --- /dev/null +++ b/generated/Exception/PostLabelsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsTooManyRequestsException.php b/generated/Exception/PostLabelsTooManyRequestsException.php new file mode 100644 index 0000000..9b294f9 --- /dev/null +++ b/generated/Exception/PostLabelsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostLabelsUnauthorizedException.php b/generated/Exception/PostLabelsUnauthorizedException.php new file mode 100644 index 0000000..8e4bacb --- /dev/null +++ b/generated/Exception/PostLabelsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsBadRequestException.php b/generated/Exception/PostMonitoringsNaturalPersonsBadRequestException.php new file mode 100644 index 0000000..ebf6054 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsForbiddenException.php b/generated/Exception/PostMonitoringsNaturalPersonsForbiddenException.php new file mode 100644 index 0000000..b270b01 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelBadRequestException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelBadRequestException.php new file mode 100644 index 0000000..7e6dc4c --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelForbiddenException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelForbiddenException.php new file mode 100644 index 0000000..dce014f --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException.php new file mode 100644 index 0000000..825e64b --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException.php new file mode 100644 index 0000000..da8f35e --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelNotFoundException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelNotFoundException.php new file mode 100644 index 0000000..a2d2861 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException.php new file mode 100644 index 0000000..618d2d4 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsIdCancelUnauthorizedException.php b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelUnauthorizedException.php new file mode 100644 index 0000000..fe28242 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsIdCancelUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsInternalServerErrorException.php b/generated/Exception/PostMonitoringsNaturalPersonsInternalServerErrorException.php new file mode 100644 index 0000000..7bf0d85 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsMethodNotAllowedException.php b/generated/Exception/PostMonitoringsNaturalPersonsMethodNotAllowedException.php new file mode 100644 index 0000000..fbc3479 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsTooManyRequestsException.php b/generated/Exception/PostMonitoringsNaturalPersonsTooManyRequestsException.php new file mode 100644 index 0000000..60f8032 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsUnauthorizedException.php b/generated/Exception/PostMonitoringsNaturalPersonsUnauthorizedException.php new file mode 100644 index 0000000..4d24096 --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostMonitoringsNaturalPersonsUnsupportedMediaTypeException.php b/generated/Exception/PostMonitoringsNaturalPersonsUnsupportedMediaTypeException.php new file mode 100644 index 0000000..699475b --- /dev/null +++ b/generated/Exception/PostMonitoringsNaturalPersonsUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseBadRequestException.php b/generated/Exception/PostSignatureRequestsIdPauseBadRequestException.php new file mode 100644 index 0000000..9ce8e6e --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseForbiddenException.php b/generated/Exception/PostSignatureRequestsIdPauseForbiddenException.php new file mode 100644 index 0000000..8875a81 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseInternalServerErrorException.php b/generated/Exception/PostSignatureRequestsIdPauseInternalServerErrorException.php new file mode 100644 index 0000000..d105e75 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsIdPauseMethodNotAllowedException.php new file mode 100644 index 0000000..83ec481 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseNotFoundException.php b/generated/Exception/PostSignatureRequestsIdPauseNotFoundException.php new file mode 100644 index 0000000..9a30726 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseTooManyRequestsException.php b/generated/Exception/PostSignatureRequestsIdPauseTooManyRequestsException.php new file mode 100644 index 0000000..9465cb0 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdPauseUnauthorizedException.php b/generated/Exception/PostSignatureRequestsIdPauseUnauthorizedException.php new file mode 100644 index 0000000..cdb71c3 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdPauseUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeBadRequestException.php b/generated/Exception/PostSignatureRequestsIdResumeBadRequestException.php new file mode 100644 index 0000000..6c5f89a --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeForbiddenException.php b/generated/Exception/PostSignatureRequestsIdResumeForbiddenException.php new file mode 100644 index 0000000..701a698 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeInternalServerErrorException.php b/generated/Exception/PostSignatureRequestsIdResumeInternalServerErrorException.php new file mode 100644 index 0000000..262e8d3 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsIdResumeMethodNotAllowedException.php new file mode 100644 index 0000000..1d748dd --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeNotFoundException.php b/generated/Exception/PostSignatureRequestsIdResumeNotFoundException.php new file mode 100644 index 0000000..8e6c0eb --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeTooManyRequestsException.php b/generated/Exception/PostSignatureRequestsIdResumeTooManyRequestsException.php new file mode 100644 index 0000000..fe4159c --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdResumeUnauthorizedException.php b/generated/Exception/PostSignatureRequestsIdResumeUnauthorizedException.php new file mode 100644 index 0000000..257b3dc --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdResumeUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdBadRequestException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException.php similarity index 90% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdBadRequestException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException.php index 50afc07..0ccc1d5 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdBadRequestException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class GetBankAccountVerificationsBankAccountVerificationIdBadRequestException extends BadRequestException +class PostSignatureRequestsIdSignersIdIdentityVerificationBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdForbiddenException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException.php similarity index 90% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdForbiddenException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException.php index e7b5c48..fdcaecf 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdForbiddenException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class GetBankAccountVerificationsBankAccountVerificationIdForbiddenException extends ForbiddenException +class PostSignatureRequestsIdSignersIdIdentityVerificationForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException.php similarity index 90% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException.php index 1c0d7f0..22365d2 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class GetBankAccountVerificationsBankAccountVerificationIdInternalServerErrorException extends InternalServerErrorException +class PostSignatureRequestsIdSignersIdIdentityVerificationInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException.php new file mode 100644 index 0000000..ccc3db7 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdNotFoundException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException.php similarity index 90% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdNotFoundException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException.php index 1133f0d..6f1582d 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdNotFoundException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\NotFoundResponse; -class GetBankAccountVerificationsBankAccountVerificationIdNotFoundException extends NotFoundException +class PostSignatureRequestsIdSignersIdIdentityVerificationNotFoundException extends NotFoundException { public function __construct(private readonly NotFoundResponse $notFoundResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException.php similarity index 91% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException.php index 7d08a93..4e524fd 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class GetBankAccountVerificationsBankAccountVerificationIdTooManyRequestsException extends TooManyRequestsException +class PostSignatureRequestsIdSignersIdIdentityVerificationTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException.php similarity index 90% rename from generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException.php index 134782a..74a3dfc 100644 --- a/generated/Exception/GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class GetBankAccountVerificationsBankAccountVerificationIdUnauthorizedException extends UnauthorizedException +class PostSignatureRequestsIdSignersIdIdentityVerificationUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException.php b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException.php new file mode 100644 index 0000000..68a6b88 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdSignersIdIdentityVerificationUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdBadRequestException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException.php similarity index 83% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdBadRequestException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException.php index 3780114..cd0acc9 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdBadRequestException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\BadRequestResponse; -class GetIdentityVerificationsIdentityVerificationIdBadRequestException extends BadRequestException +class PostSignatureRequestsIdSignersIdUnblockIdentificationBadRequestException extends BadRequestException { public function __construct(private readonly BadRequestResponse $badRequestResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdForbiddenException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException.php similarity index 84% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdForbiddenException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException.php index f34a119..14c4a51 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdForbiddenException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\ForbiddenResponse; -class GetIdentityVerificationsIdentityVerificationIdForbiddenException extends ForbiddenException +class PostSignatureRequestsIdSignersIdUnblockIdentificationForbiddenException extends ForbiddenException { public function __construct(private readonly ForbiddenResponse $forbiddenResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException.php similarity index 82% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException.php index ce62df7..c90428a 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\InternalServerError; -class GetIdentityVerificationsIdentityVerificationIdInternalServerErrorException extends InternalServerErrorException +class PostSignatureRequestsIdSignersIdUnblockIdentificationInternalServerErrorException extends InternalServerErrorException { public function __construct(private readonly InternalServerError $internalServerError, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException.php new file mode 100644 index 0000000..70bbc2e --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException.php new file mode 100644 index 0000000..a18a19e --- /dev/null +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException.php similarity index 84% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException.php index abc6828..4845f42 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\TooManyRequestsResponse; -class GetIdentityVerificationsIdentityVerificationIdTooManyRequestsException extends TooManyRequestsException +class PostSignatureRequestsIdSignersIdUnblockIdentificationTooManyRequestsException extends TooManyRequestsException { public function __construct(private readonly TooManyRequestsResponse $tooManyRequestsResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdUnauthorizedException.php b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException.php similarity index 83% rename from generated/Exception/GetIdentityVerificationsIdentityVerificationIdUnauthorizedException.php rename to generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException.php index e672718..d1d537c 100644 --- a/generated/Exception/GetIdentityVerificationsIdentityVerificationIdUnauthorizedException.php +++ b/generated/Exception/PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ResponseInterface; use Qdequippe\Yousign\Api\Model\UnauthorizedResponse; -class GetIdentityVerificationsIdentityVerificationIdUnauthorizedException extends UnauthorizedException +class PostSignatureRequestsIdSignersIdUnblockIdentificationUnauthorizedException extends UnauthorizedException { public function __construct(private readonly UnauthorizedResponse $unauthorizedResponse, private readonly ResponseInterface $response) { diff --git a/generated/Exception/PostSignatureRequestsMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..2ff5d12 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException.php new file mode 100644 index 0000000..abeadb5 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdActivateMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException.php new file mode 100644 index 0000000..12364d5 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminderMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException.php new file mode 100644 index 0000000..d08ffd5 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdApproversMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException.php new file mode 100644 index 0000000..5692ef5 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdCancelMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..a092b2f --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdConsentRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException.php new file mode 100644 index 0000000..e7457a2 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentRequestsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php new file mode 100644 index 0000000..57ce3b8 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException.php new file mode 100644 index 0000000..69f647a --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdReplaceMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..40a0bad --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php new file mode 100644 index 0000000..a004bd8 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdFollowersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php new file mode 100644 index 0000000..776c028 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException.php new file mode 100644 index 0000000..db66d81 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdReactivateMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php new file mode 100644 index 0000000..8d9cabd --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException.php new file mode 100644 index 0000000..ea082ce --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendOtpMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException.php new file mode 100644 index 0000000..a6c31c5 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSendReminderMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException.php b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException.php new file mode 100644 index 0000000..ed74ff4 --- /dev/null +++ b/generated/Exception/PostSignatureRequestsSignatureRequestIdSignersSignerIdSignMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostUsersMethodNotAllowedException.php b/generated/Exception/PostUsersMethodNotAllowedException.php new file mode 100644 index 0000000..9676a97 --- /dev/null +++ b/generated/Exception/PostUsersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsBadRequestException.php b/generated/Exception/PostVerificationsBankAccountLookupsBadRequestException.php new file mode 100644 index 0000000..4c209a6 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsForbiddenException.php b/generated/Exception/PostVerificationsBankAccountLookupsForbiddenException.php new file mode 100644 index 0000000..e9d2b2d --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsInternalServerErrorException.php b/generated/Exception/PostVerificationsBankAccountLookupsInternalServerErrorException.php new file mode 100644 index 0000000..e0eb116 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsMethodNotAllowedException.php b/generated/Exception/PostVerificationsBankAccountLookupsMethodNotAllowedException.php new file mode 100644 index 0000000..3d90f7b --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsTooManyRequestsException.php b/generated/Exception/PostVerificationsBankAccountLookupsTooManyRequestsException.php new file mode 100644 index 0000000..562bf9f --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsUnauthorizedException.php b/generated/Exception/PostVerificationsBankAccountLookupsUnauthorizedException.php new file mode 100644 index 0000000..1f6f79b --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountLookupsUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsBankAccountLookupsUnsupportedMediaTypeException.php new file mode 100644 index 0000000..844ddc3 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountLookupsUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsBadRequestException.php b/generated/Exception/PostVerificationsBankAccountsBadRequestException.php new file mode 100644 index 0000000..e094311 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsForbiddenException.php b/generated/Exception/PostVerificationsBankAccountsForbiddenException.php new file mode 100644 index 0000000..e218cda --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsInternalServerErrorException.php b/generated/Exception/PostVerificationsBankAccountsInternalServerErrorException.php new file mode 100644 index 0000000..e04abeb --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsMethodNotAllowedException.php b/generated/Exception/PostVerificationsBankAccountsMethodNotAllowedException.php new file mode 100644 index 0000000..5429c82 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsTooManyRequestsException.php b/generated/Exception/PostVerificationsBankAccountsTooManyRequestsException.php new file mode 100644 index 0000000..18b209c --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsUnauthorizedException.php b/generated/Exception/PostVerificationsBankAccountsUnauthorizedException.php new file mode 100644 index 0000000..b140eb5 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsBankAccountsUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsBankAccountsUnsupportedMediaTypeException.php new file mode 100644 index 0000000..e483ae3 --- /dev/null +++ b/generated/Exception/PostVerificationsBankAccountsUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesBadRequestException.php b/generated/Exception/PostVerificationsCompaniesBadRequestException.php new file mode 100644 index 0000000..a4c65f2 --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesForbiddenException.php b/generated/Exception/PostVerificationsCompaniesForbiddenException.php new file mode 100644 index 0000000..363a784 --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesInternalServerErrorException.php b/generated/Exception/PostVerificationsCompaniesInternalServerErrorException.php new file mode 100644 index 0000000..d0632bd --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesMethodNotAllowedException.php b/generated/Exception/PostVerificationsCompaniesMethodNotAllowedException.php new file mode 100644 index 0000000..dac3edd --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesNotFoundException.php b/generated/Exception/PostVerificationsCompaniesNotFoundException.php new file mode 100644 index 0000000..b5640cc --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesTooManyRequestsException.php b/generated/Exception/PostVerificationsCompaniesTooManyRequestsException.php new file mode 100644 index 0000000..d0c7c76 --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesUnauthorizedException.php b/generated/Exception/PostVerificationsCompaniesUnauthorizedException.php new file mode 100644 index 0000000..f1c6569 --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsCompaniesUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsCompaniesUnsupportedMediaTypeException.php new file mode 100644 index 0000000..952a498 --- /dev/null +++ b/generated/Exception/PostVerificationsCompaniesUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsBadRequestException.php b/generated/Exception/PostVerificationsIdentityDocumentsBadRequestException.php new file mode 100644 index 0000000..734880c --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsForbiddenException.php b/generated/Exception/PostVerificationsIdentityDocumentsForbiddenException.php new file mode 100644 index 0000000..6b5e78f --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsInternalServerErrorException.php b/generated/Exception/PostVerificationsIdentityDocumentsInternalServerErrorException.php new file mode 100644 index 0000000..139d8fb --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsMethodNotAllowedException.php b/generated/Exception/PostVerificationsIdentityDocumentsMethodNotAllowedException.php new file mode 100644 index 0000000..1e41648 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsTooManyRequestsException.php b/generated/Exception/PostVerificationsIdentityDocumentsTooManyRequestsException.php new file mode 100644 index 0000000..b58ceb4 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsUnauthorizedException.php b/generated/Exception/PostVerificationsIdentityDocumentsUnauthorizedException.php new file mode 100644 index 0000000..faf299a --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityDocumentsUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsIdentityDocumentsUnsupportedMediaTypeException.php new file mode 100644 index 0000000..3a9ef1a --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityDocumentsUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosBadRequestException.php b/generated/Exception/PostVerificationsIdentityVideosBadRequestException.php new file mode 100644 index 0000000..1cacfce --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosForbiddenException.php b/generated/Exception/PostVerificationsIdentityVideosForbiddenException.php new file mode 100644 index 0000000..534a31c --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosInternalServerErrorException.php b/generated/Exception/PostVerificationsIdentityVideosInternalServerErrorException.php new file mode 100644 index 0000000..13b8f9a --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosMethodNotAllowedException.php b/generated/Exception/PostVerificationsIdentityVideosMethodNotAllowedException.php new file mode 100644 index 0000000..2b33b09 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosNotFoundException.php b/generated/Exception/PostVerificationsIdentityVideosNotFoundException.php new file mode 100644 index 0000000..59864f4 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosTooManyRequestsException.php b/generated/Exception/PostVerificationsIdentityVideosTooManyRequestsException.php new file mode 100644 index 0000000..17913f7 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsIdentityVideosUnauthorizedException.php b/generated/Exception/PostVerificationsIdentityVideosUnauthorizedException.php new file mode 100644 index 0000000..c83f8f8 --- /dev/null +++ b/generated/Exception/PostVerificationsIdentityVideosUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressBadRequestException.php b/generated/Exception/PostVerificationsProofsOfAddressBadRequestException.php new file mode 100644 index 0000000..6270e1b --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressForbiddenException.php b/generated/Exception/PostVerificationsProofsOfAddressForbiddenException.php new file mode 100644 index 0000000..1c2e742 --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressInternalServerErrorException.php b/generated/Exception/PostVerificationsProofsOfAddressInternalServerErrorException.php new file mode 100644 index 0000000..8a03b96 --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressMethodNotAllowedException.php b/generated/Exception/PostVerificationsProofsOfAddressMethodNotAllowedException.php new file mode 100644 index 0000000..af1246d --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressTooManyRequestsException.php b/generated/Exception/PostVerificationsProofsOfAddressTooManyRequestsException.php new file mode 100644 index 0000000..3b18710 --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressUnauthorizedException.php b/generated/Exception/PostVerificationsProofsOfAddressUnauthorizedException.php new file mode 100644 index 0000000..3ca44fb --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsProofsOfAddressUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsProofsOfAddressUnsupportedMediaTypeException.php new file mode 100644 index 0000000..3f0bf65 --- /dev/null +++ b/generated/Exception/PostVerificationsProofsOfAddressUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsBadRequestException.php b/generated/Exception/PostVerificationsWatchlistsBadRequestException.php new file mode 100644 index 0000000..078128b --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsForbiddenException.php b/generated/Exception/PostVerificationsWatchlistsForbiddenException.php new file mode 100644 index 0000000..80438b0 --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsInternalServerErrorException.php b/generated/Exception/PostVerificationsWatchlistsInternalServerErrorException.php new file mode 100644 index 0000000..0b49b40 --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsMethodNotAllowedException.php b/generated/Exception/PostVerificationsWatchlistsMethodNotAllowedException.php new file mode 100644 index 0000000..8723f2a --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsTooManyRequestsException.php b/generated/Exception/PostVerificationsWatchlistsTooManyRequestsException.php new file mode 100644 index 0000000..5fb5e85 --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsUnauthorizedException.php b/generated/Exception/PostVerificationsWatchlistsUnauthorizedException.php new file mode 100644 index 0000000..c81aa81 --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostVerificationsWatchlistsUnsupportedMediaTypeException.php b/generated/Exception/PostVerificationsWatchlistsUnsupportedMediaTypeException.php new file mode 100644 index 0000000..06a56de --- /dev/null +++ b/generated/Exception/PostVerificationsWatchlistsUnsupportedMediaTypeException.php @@ -0,0 +1,24 @@ +unsupportedMediaTypeResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWebhooksSubscriptionsMethodNotAllowedException.php b/generated/Exception/PostWebhooksSubscriptionsMethodNotAllowedException.php new file mode 100644 index 0000000..0f116de --- /dev/null +++ b/generated/Exception/PostWebhooksSubscriptionsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsBadRequestException.php b/generated/Exception/PostWorkflowSessionsBadRequestException.php new file mode 100644 index 0000000..9ca5d21 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsForbiddenException.php b/generated/Exception/PostWorkflowSessionsForbiddenException.php new file mode 100644 index 0000000..27dd5e6 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsBadRequestException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsBadRequestException.php new file mode 100644 index 0000000..ae5bb1d --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsForbiddenException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsForbiddenException.php new file mode 100644 index 0000000..e1fd6e6 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsInternalServerErrorException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsInternalServerErrorException.php new file mode 100644 index 0000000..5a5ae32 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsMethodNotAllowedException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsMethodNotAllowedException.php new file mode 100644 index 0000000..4a66b2e --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsNotFoundException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsNotFoundException.php new file mode 100644 index 0000000..7a7fa5c --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsTooManyRequestsException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsTooManyRequestsException.php new file mode 100644 index 0000000..e46d4f6 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdApplicantsUnauthorizedException.php b/generated/Exception/PostWorkflowSessionsIdApplicantsUnauthorizedException.php new file mode 100644 index 0000000..274822d --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdApplicantsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionBadRequestException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionBadRequestException.php new file mode 100644 index 0000000..14eb887 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionForbiddenException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionForbiddenException.php new file mode 100644 index 0000000..ba03414 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionInternalServerErrorException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionInternalServerErrorException.php new file mode 100644 index 0000000..762a08c --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionMethodNotAllowedException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionMethodNotAllowedException.php new file mode 100644 index 0000000..1e7c82c --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionNotFoundException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionNotFoundException.php new file mode 100644 index 0000000..1b4d875 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionTooManyRequestsException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionTooManyRequestsException.php new file mode 100644 index 0000000..e10f08f --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsIdResolveActionUnauthorizedException.php b/generated/Exception/PostWorkflowSessionsIdResolveActionUnauthorizedException.php new file mode 100644 index 0000000..6a232af --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsIdResolveActionUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsInternalServerErrorException.php b/generated/Exception/PostWorkflowSessionsInternalServerErrorException.php new file mode 100644 index 0000000..93c8508 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsMethodNotAllowedException.php b/generated/Exception/PostWorkflowSessionsMethodNotAllowedException.php new file mode 100644 index 0000000..1d71369 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsNotFoundException.php b/generated/Exception/PostWorkflowSessionsNotFoundException.php new file mode 100644 index 0000000..2ae465d --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsTooManyRequestsException.php b/generated/Exception/PostWorkflowSessionsTooManyRequestsException.php new file mode 100644 index 0000000..c941c1f --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkflowSessionsUnauthorizedException.php b/generated/Exception/PostWorkflowSessionsUnauthorizedException.php new file mode 100644 index 0000000..e7145f8 --- /dev/null +++ b/generated/Exception/PostWorkflowSessionsUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PostWorkspaceMethodNotAllowedException.php b/generated/Exception/PostWorkspaceMethodNotAllowedException.php new file mode 100644 index 0000000..c246958 --- /dev/null +++ b/generated/Exception/PostWorkspaceMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdBadRequestException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdBadRequestException.php new file mode 100644 index 0000000..ca23df4 --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdForbiddenException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdForbiddenException.php new file mode 100644 index 0000000..8562ffd --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdInternalServerErrorException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdInternalServerErrorException.php new file mode 100644 index 0000000..334a87b --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdMethodNotAllowedException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdMethodNotAllowedException.php new file mode 100644 index 0000000..5b8d892 --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdNotFoundException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdNotFoundException.php new file mode 100644 index 0000000..85f153d --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdTooManyRequestsException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdTooManyRequestsException.php new file mode 100644 index 0000000..1c0d067 --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsIdLabelsIdUnauthorizedException.php b/generated/Exception/PutSignatureRequestsIdLabelsIdUnauthorizedException.php new file mode 100644 index 0000000..ac9df08 --- /dev/null +++ b/generated/Exception/PutSignatureRequestsIdLabelsIdUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..59acecb --- /dev/null +++ b/generated/Exception/PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php b/generated/Exception/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php new file mode 100644 index 0000000..c007825 --- /dev/null +++ b/generated/Exception/PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php b/generated/Exception/PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php new file mode 100644 index 0000000..6e9e9bb --- /dev/null +++ b/generated/Exception/PutSignatureRequestsSignatureRequestIdMetadataMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/PutWorkspacesWorkspaceIdUsersMethodNotAllowedException.php b/generated/Exception/PutWorkspacesWorkspaceIdUsersMethodNotAllowedException.php new file mode 100644 index 0000000..28bbb63 --- /dev/null +++ b/generated/Exception/PutWorkspacesWorkspaceIdUsersMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException.php new file mode 100644 index 0000000..98b764a --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerBadRequestException.php @@ -0,0 +1,24 @@ +badRequestResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException.php new file mode 100644 index 0000000..3842711 --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerForbiddenException.php @@ -0,0 +1,24 @@ +forbiddenResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException.php new file mode 100644 index 0000000..33d7a4e --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerInternalServerErrorException.php @@ -0,0 +1,24 @@ +internalServerError; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException.php new file mode 100644 index 0000000..8520381 --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException.php new file mode 100644 index 0000000..038d07d --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerNotFoundException.php @@ -0,0 +1,24 @@ +notFoundResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException.php new file mode 100644 index 0000000..0ed8c40 --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerTooManyRequestsException.php @@ -0,0 +1,24 @@ +tooManyRequestsResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException.php b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException.php new file mode 100644 index 0000000..a95a152 --- /dev/null +++ b/generated/Exception/SignatureRequestsIdDocumentsIdFieldsIdAnswerUnauthorizedException.php @@ -0,0 +1,24 @@ +unauthorizedResponse; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/TooManyRequestsException.php b/generated/Exception/TooManyRequestsException.php index 9bc6600..db2f2cb 100644 --- a/generated/Exception/TooManyRequestsException.php +++ b/generated/Exception/TooManyRequestsException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class TooManyRequestsException extends \RuntimeException implements ClientException +abstract class TooManyRequestsException extends \RuntimeException implements ClientException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/UnauthorizedException.php b/generated/Exception/UnauthorizedException.php index 42c6f40..246a5d7 100644 --- a/generated/Exception/UnauthorizedException.php +++ b/generated/Exception/UnauthorizedException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class UnauthorizedException extends \RuntimeException implements ClientException +abstract class UnauthorizedException extends \RuntimeException implements ClientException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/UnsupportedMediaTypeException.php b/generated/Exception/UnsupportedMediaTypeException.php index 5d453d4..77b29e2 100644 --- a/generated/Exception/UnsupportedMediaTypeException.php +++ b/generated/Exception/UnsupportedMediaTypeException.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Exception; -class UnsupportedMediaTypeException extends \RuntimeException implements ClientException +abstract class UnsupportedMediaTypeException extends \RuntimeException implements ClientException, WithResponseInterface { public function __construct(string $message) { diff --git a/generated/Exception/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php b/generated/Exception/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php new file mode 100644 index 0000000..3632d43 --- /dev/null +++ b/generated/Exception/UpdateSignatureRequestsSignatureRequestIdDocumentsDocumentIdFieldsFieldIdMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/UploadElectronicSealDocumentMethodNotAllowedException.php b/generated/Exception/UploadElectronicSealDocumentMethodNotAllowedException.php new file mode 100644 index 0000000..9d27cce --- /dev/null +++ b/generated/Exception/UploadElectronicSealDocumentMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/UploadElectronicSealImageMethodNotAllowedException.php b/generated/Exception/UploadElectronicSealImageMethodNotAllowedException.php new file mode 100644 index 0000000..31a85dc --- /dev/null +++ b/generated/Exception/UploadElectronicSealImageMethodNotAllowedException.php @@ -0,0 +1,24 @@ +methodNotAllowed; + } + + public function getResponse(): ResponseInterface + { + return $this->response; + } +} diff --git a/generated/Exception/WithResponseInterface.php b/generated/Exception/WithResponseInterface.php new file mode 100644 index 0000000..87020dd --- /dev/null +++ b/generated/Exception/WithResponseInterface.php @@ -0,0 +1,10 @@ +initialized); + } + /** + * The Id of the User that should be considered as the Signature Request sender. + * They must be part of the Workspace of the Signature Request and be active. + * Mandatory with `sender_type: "user"`, must be omitted otherwise. + * + * @var string|null + */ + protected $senderId; + + /** + * The Id of the User that should be considered as the Signature Request sender. + * They must be part of the Workspace of the Signature Request and be active. + * Mandatory with `sender_type: "user"`, must be omitted otherwise. + */ + public function getSenderId(): ?string + { + return $this->senderId; + } + + /** + * The Id of the User that should be considered as the Signature Request sender. + * They must be part of the Workspace of the Signature Request and be active. + * Mandatory with `sender_type: "user"`, must be omitted otherwise. + */ + public function setSenderId(?string $senderId): self + { + $this->initialized['senderId'] = true; + $this->senderId = $senderId; + + return $this; + } + + public function definedProperties(): array + { + return ['senderId' => ['sender_id', 'getSenderId', 'setSenderId']]; + } +} diff --git a/generated/Model/AddonConsumption.php b/generated/Model/AddonConsumption.php index b85faca..7a9f216 100644 --- a/generated/Model/AddonConsumption.php +++ b/generated/Model/AddonConsumption.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class AddonConsumption extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class AddonConsumption implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -139,4 +143,9 @@ public function setProvisioned(?int $provisioned): self return $this; } + + public function definedProperties(): array + { + return ['name' => ['name', 'getName', 'setName'], 'startAt' => ['start_at', 'getStartAt', 'setStartAt'], 'endAt' => ['end_at', 'getEndAt', 'setEndAt'], 'quota' => ['quota', 'getQuota', 'setQuota'], 'consumed' => ['consumed', 'getConsumed', 'setConsumed'], 'provisioned' => ['provisioned', 'getProvisioned', 'setProvisioned']]; + } } diff --git a/generated/Model/Address.php b/generated/Model/Address.php new file mode 100644 index 0000000..cd4bd6e --- /dev/null +++ b/generated/Model/Address.php @@ -0,0 +1,116 @@ +initialized); + } + /** + * The first line of the address, typically the street name and number. + * + * @var string|null + */ + protected $line1; + /** + * If needed, the second line of the address, typically an apartment or suite number. + * + * @var string|null + */ + protected $line2; + /** + * The postal code of the address. + * + * @var string|null + */ + protected $postalCode; + /** + * The city of the address. + * + * @var string|null + */ + protected $city; + + /** + * The first line of the address, typically the street name and number. + */ + public function getLine1(): ?string + { + return $this->line1; + } + + /** + * The first line of the address, typically the street name and number. + */ + public function setLine1(?string $line1): self + { + $this->initialized['line1'] = true; + $this->line1 = $line1; + + return $this; + } + + /** + * If needed, the second line of the address, typically an apartment or suite number. + */ + public function getLine2(): ?string + { + return $this->line2; + } + + /** + * If needed, the second line of the address, typically an apartment or suite number. + */ + public function setLine2(?string $line2): self + { + $this->initialized['line2'] = true; + $this->line2 = $line2; + + return $this; + } + + /** + * The postal code of the address. + */ + public function getPostalCode(): ?string + { + return $this->postalCode; + } + + /** + * The postal code of the address. + */ + public function setPostalCode(?string $postalCode): self + { + $this->initialized['postalCode'] = true; + $this->postalCode = $postalCode; + + return $this; + } + + /** + * The city of the address. + */ + public function getCity(): ?string + { + return $this->city; + } + + /** + * The city of the address. + */ + public function setCity(?string $city): self + { + $this->initialized['city'] = true; + $this->city = $city; + + return $this; + } +} diff --git a/generated/Model/AnalysisType.php b/generated/Model/AnalysisType.php new file mode 100644 index 0000000..aee57f1 --- /dev/null +++ b/generated/Model/AnalysisType.php @@ -0,0 +1,72 @@ +initialized); + } + /** + * Whether to extract data from the document. Defaults to `true` when omitted. + * Set to `false` to run a fraud-only analysis (no data extraction). + * + * @var bool|null + */ + protected $extraction = true; + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `standard` or `advanced` when `extraction` is `false`. + * + * @var string|null + */ + protected $fraudLevel; + + /** + * Whether to extract data from the document. Defaults to `true` when omitted. + * Set to `false` to run a fraud-only analysis (no data extraction). + */ + public function getExtraction(): ?bool + { + return $this->extraction; + } + + /** + * Whether to extract data from the document. Defaults to `true` when omitted. + * Set to `false` to run a fraud-only analysis (no data extraction). + */ + public function setExtraction(?bool $extraction): self + { + $this->initialized['extraction'] = true; + $this->extraction = $extraction; + + return $this; + } + + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `standard` or `advanced` when `extraction` is `false`. + */ + public function getFraudLevel(): ?string + { + return $this->fraudLevel; + } + + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `standard` or `advanced` when `extraction` is `false`. + */ + public function setFraudLevel(?string $fraudLevel): self + { + $this->initialized['fraudLevel'] = true; + $this->fraudLevel = $fraudLevel; + + return $this; + } +} diff --git a/generated/Model/AnalysisTypeMultipart.php b/generated/Model/AnalysisTypeMultipart.php new file mode 100644 index 0000000..3f52fbc --- /dev/null +++ b/generated/Model/AnalysisTypeMultipart.php @@ -0,0 +1,72 @@ +initialized); + } + /** + * Whether to extract data from the document. Defaults to `"true"` when omitted. + * Set to `"false"` to run a fraud-only analysis (no data extraction). + * + * @var string|null + */ + protected $extraction = 'true'; + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `advanced` when `extraction` is `"false"`. + * + * @var string|null + */ + protected $fraudLevel; + + /** + * Whether to extract data from the document. Defaults to `"true"` when omitted. + * Set to `"false"` to run a fraud-only analysis (no data extraction). + */ + public function getExtraction(): ?string + { + return $this->extraction; + } + + /** + * Whether to extract data from the document. Defaults to `"true"` when omitted. + * Set to `"false"` to run a fraud-only analysis (no data extraction). + */ + public function setExtraction(?string $extraction): self + { + $this->initialized['extraction'] = true; + $this->extraction = $extraction; + + return $this; + } + + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `advanced` when `extraction` is `"false"`. + */ + public function getFraudLevel(): ?string + { + return $this->fraudLevel; + } + + /** + * Level of fraud detection to run. `null` (default) disables fraud detection. + * Not supported for type `tax_notice`. Must be `advanced` when `extraction` is `"false"`. + */ + public function setFraudLevel(?string $fraudLevel): self + { + $this->initialized['fraudLevel'] = true; + $this->fraudLevel = $fraudLevel; + + return $this; + } +} diff --git a/generated/Model/Approver.php b/generated/Model/Approver.php index 2fef43a..dabf950 100644 --- a/generated/Model/Approver.php +++ b/generated/Model/Approver.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Approver extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Approver implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -33,6 +37,28 @@ public function isInitialized($property): bool * @var \DateTime|null */ protected $approvalLinkExpirationDate; + /** + * Custom Text. + * + * @var CustomText|null + */ + protected $customText; + /** + * @var \DateTime|null + */ + protected $approvedAt; + /** + * Position of the recipient in the signing flow. Recipients with the same index are notified simultaneously. + * + * @var int|null + */ + protected $recipientStageIndex; + /** + * List of Document IDs not visible to this Approver. + * + * @var list|null + */ + protected $excludedDocuments; public function getId(): ?string { @@ -98,4 +124,83 @@ public function setApprovalLinkExpirationDate(?\DateTime $approvalLinkExpiration return $this; } + + /** + * Custom Text. + */ + public function getCustomText(): ?CustomText + { + return $this->customText; + } + + /** + * Custom Text. + */ + public function setCustomText(?CustomText $customText): self + { + $this->initialized['customText'] = true; + $this->customText = $customText; + + return $this; + } + + public function getApprovedAt(): ?\DateTime + { + return $this->approvedAt; + } + + public function setApprovedAt(?\DateTime $approvedAt): self + { + $this->initialized['approvedAt'] = true; + $this->approvedAt = $approvedAt; + + return $this; + } + + /** + * Position of the recipient in the signing flow. Recipients with the same index are notified simultaneously. + */ + public function getRecipientStageIndex(): ?int + { + return $this->recipientStageIndex; + } + + /** + * Position of the recipient in the signing flow. Recipients with the same index are notified simultaneously. + */ + public function setRecipientStageIndex(?int $recipientStageIndex): self + { + $this->initialized['recipientStageIndex'] = true; + $this->recipientStageIndex = $recipientStageIndex; + + return $this; + } + + /** + * List of Document IDs not visible to this Approver. + * + * @return list|null + */ + public function getExcludedDocuments(): ?array + { + return $this->excludedDocuments; + } + + /** + * List of Document IDs not visible to this Approver. + * + * @param list|null $excludedDocuments + */ + public function setExcludedDocuments(?array $excludedDocuments): self + { + $this->initialized['excludedDocuments'] = true; + $this->excludedDocuments = $excludedDocuments; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'status' => ['status', 'getStatus', 'setStatus'], 'info' => ['info', 'getInfo', 'setInfo'], 'approvalLink' => ['approval_link', 'getApprovalLink', 'setApprovalLink'], 'approvalLinkExpirationDate' => ['approval_link_expiration_date', 'getApprovalLinkExpirationDate', 'setApprovalLinkExpirationDate'], 'customText' => ['custom_text', 'getCustomText', 'setCustomText'], 'approvedAt' => ['approved_at', 'getApprovedAt', 'setApprovedAt'], 'recipientStageIndex' => ['recipient_stage_index', 'getRecipientStageIndex', 'setRecipientStageIndex'], 'excludedDocuments' => ['excluded_documents', 'getExcludedDocuments', 'setExcludedDocuments']]; + } } diff --git a/generated/Model/ApproverInfo.php b/generated/Model/ApproverInfo.php index 6a07c6a..5c01ee8 100644 --- a/generated/Model/ApproverInfo.php +++ b/generated/Model/ApproverInfo.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ApproverInfo extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ApproverInfo implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -114,4 +118,9 @@ public function setLocale(?string $locale): self return $this; } + + public function definedProperties(): array + { + return ['firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'email' => ['email', 'getEmail', 'setEmail'], 'phoneNumber' => ['phone_number', 'getPhoneNumber', 'setPhoneNumber'], 'locale' => ['locale', 'getLocale', 'setLocale']]; + } } diff --git a/generated/Model/ApproverToNotify.php b/generated/Model/ApproverToNotify.php index 39f4e75..be16515 100644 --- a/generated/Model/ApproverToNotify.php +++ b/generated/Model/ApproverToNotify.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ApproverToNotify extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ApproverToNotify implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,27 +18,41 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** + * Unique identifier of the Approver. + * * @var string|null */ protected $id; /** + * Current status of the Approver. + * * @var string|null */ protected $status; /** + * Approval link for the Approver; `null` when `delivery_mode` is `email`. + * * @var string|null */ protected $approvalLink; /** + * Expiration timestamp of the approval link. + * * @var \DateTime|null */ protected $approvalLinkExpirationDate; + /** + * Unique identifier of the Approver. + */ public function getId(): ?string { return $this->id; } + /** + * Unique identifier of the Approver. + */ public function setId(?string $id): self { $this->initialized['id'] = true; @@ -43,11 +61,17 @@ public function setId(?string $id): self return $this; } + /** + * Current status of the Approver. + */ public function getStatus(): ?string { return $this->status; } + /** + * Current status of the Approver. + */ public function setStatus(?string $status): self { $this->initialized['status'] = true; @@ -56,11 +80,17 @@ public function setStatus(?string $status): self return $this; } + /** + * Approval link for the Approver; `null` when `delivery_mode` is `email`. + */ public function getApprovalLink(): ?string { return $this->approvalLink; } + /** + * Approval link for the Approver; `null` when `delivery_mode` is `email`. + */ public function setApprovalLink(?string $approvalLink): self { $this->initialized['approvalLink'] = true; @@ -69,11 +99,17 @@ public function setApprovalLink(?string $approvalLink): self return $this; } + /** + * Expiration timestamp of the approval link. + */ public function getApprovalLinkExpirationDate(): ?\DateTime { return $this->approvalLinkExpirationDate; } + /** + * Expiration timestamp of the approval link. + */ public function setApprovalLinkExpirationDate(?\DateTime $approvalLinkExpirationDate): self { $this->initialized['approvalLinkExpirationDate'] = true; @@ -81,4 +117,9 @@ public function setApprovalLinkExpirationDate(?\DateTime $approvalLinkExpiration return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'status' => ['status', 'getStatus', 'setStatus'], 'approvalLink' => ['approval_link', 'getApprovalLink', 'setApprovalLink'], 'approvalLinkExpirationDate' => ['approval_link_expiration_date', 'getApprovalLinkExpirationDate', 'setApprovalLinkExpirationDate']]; + } } diff --git a/generated/Model/ArchivedFile.php b/generated/Model/ArchivedFile.php index 8d4061b..c74ad38 100644 --- a/generated/Model/ArchivedFile.php +++ b/generated/Model/ArchivedFile.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ArchivedFile extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ArchivedFile implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -227,4 +231,9 @@ public function setWorkspaceId(?string $workspaceId): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'sha256' => ['sha256', 'getSha256', 'setSha256'], 'filename' => ['filename', 'getFilename', 'setFilename'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'expiredAt' => ['expired_at', 'getExpiredAt', 'setExpiredAt'], 'contentType' => ['content_type', 'getContentType', 'setContentType'], 'size' => ['size', 'getSize', 'setSize'], 'archiveYIdentifier' => ['archive_y_identifier', 'getArchiveYIdentifier', 'setArchiveYIdentifier'], 'tags' => ['tags', 'getTags', 'setTags'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/AutoInsuranceClaimsHistoryCheck.php b/generated/Model/AutoInsuranceClaimsHistoryCheck.php new file mode 100644 index 0000000..d5a75cb --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryCheck.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * Check result for the policy holder. + * + * @var AutoInsuranceClaimsHistoryCheckPolicyHolder|null + */ + protected $policyHolder; + + /** + * Check result for the policy holder. + */ + public function getPolicyHolder(): ?AutoInsuranceClaimsHistoryCheckPolicyHolder + { + return $this->policyHolder; + } + + /** + * Check result for the policy holder. + */ + public function setPolicyHolder(?AutoInsuranceClaimsHistoryCheckPolicyHolder $policyHolder): self + { + $this->initialized['policyHolder'] = true; + $this->policyHolder = $policyHolder; + + return $this; + } +} diff --git a/generated/Model/AutoInsuranceClaimsHistoryCheckPolicyHolder.php b/generated/Model/AutoInsuranceClaimsHistoryCheckPolicyHolder.php new file mode 100644 index 0000000..58afc1b --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryCheckPolicyHolder.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + * + * @var DocumentAnalysisCheck|null + */ + protected $ownerName; + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function getOwnerName(): ?DocumentAnalysisCheck + { + return $this->ownerName; + } + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function setOwnerName(?DocumentAnalysisCheck $ownerName): self + { + $this->initialized['ownerName'] = true; + $this->ownerName = $ownerName; + + return $this; + } +} diff --git a/generated/Model/AutoInsuranceClaimsHistoryExtraction.php b/generated/Model/AutoInsuranceClaimsHistoryExtraction.php new file mode 100644 index 0000000..f2fed93 --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryExtraction.php @@ -0,0 +1,349 @@ +initialized); + } + /** + * Full name of the policy holder extracted from the document. + * + * @var string|null + */ + protected $policyHolderFullName; + /** + * Address of the policy holder extracted from the document. + * + * @var string|null + */ + protected $policyHolderAddress; + /** + * Birth date of the policy holder extracted from the document. + * + * @var \DateTime|null + */ + protected $policyHolderBirthDate; + /** + * Insurance score (bonus/malus coefficient) extracted from the document. + * + * @var string|null + */ + protected $insuranceScore; + /** + * Issuance date of the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * Effective start date of the insurance contract. + * + * @var \DateTime|null + */ + protected $effectiveStartDate; + /** + * Whether the insurance contract is currently active. + * + * @var bool|null + */ + protected $activeContract; + /** + * Cancellation date of the insurance contract, if applicable. + * + * @var \DateTime|null + */ + protected $contractCancellationDate; + /** + * Model of the insured vehicle extracted from the document. + * + * @var string|null + */ + protected $vehicleModel; + /** + * License plate number of the insured vehicle extracted from the document. + * + * @var string|null + */ + protected $vehicleLicensePlate; + /** + * List of drivers covered by the insurance policy. + * + * @var list|null + */ + protected $driversInformation; + /** + * List of incidents (claims) recorded in the insurance history. + * + * @var list|null + */ + protected $incidentsInformation; + /** + * Classification label extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * Full name of the policy holder extracted from the document. + */ + public function getPolicyHolderFullName(): ?string + { + return $this->policyHolderFullName; + } + + /** + * Full name of the policy holder extracted from the document. + */ + public function setPolicyHolderFullName(?string $policyHolderFullName): self + { + $this->initialized['policyHolderFullName'] = true; + $this->policyHolderFullName = $policyHolderFullName; + + return $this; + } + + /** + * Address of the policy holder extracted from the document. + */ + public function getPolicyHolderAddress(): ?string + { + return $this->policyHolderAddress; + } + + /** + * Address of the policy holder extracted from the document. + */ + public function setPolicyHolderAddress(?string $policyHolderAddress): self + { + $this->initialized['policyHolderAddress'] = true; + $this->policyHolderAddress = $policyHolderAddress; + + return $this; + } + + /** + * Birth date of the policy holder extracted from the document. + */ + public function getPolicyHolderBirthDate(): ?\DateTime + { + return $this->policyHolderBirthDate; + } + + /** + * Birth date of the policy holder extracted from the document. + */ + public function setPolicyHolderBirthDate(?\DateTime $policyHolderBirthDate): self + { + $this->initialized['policyHolderBirthDate'] = true; + $this->policyHolderBirthDate = $policyHolderBirthDate; + + return $this; + } + + /** + * Insurance score (bonus/malus coefficient) extracted from the document. + */ + public function getInsuranceScore(): ?string + { + return $this->insuranceScore; + } + + /** + * Insurance score (bonus/malus coefficient) extracted from the document. + */ + public function setInsuranceScore(?string $insuranceScore): self + { + $this->initialized['insuranceScore'] = true; + $this->insuranceScore = $insuranceScore; + + return $this; + } + + /** + * Issuance date of the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * Issuance date of the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * Effective start date of the insurance contract. + */ + public function getEffectiveStartDate(): ?\DateTime + { + return $this->effectiveStartDate; + } + + /** + * Effective start date of the insurance contract. + */ + public function setEffectiveStartDate(?\DateTime $effectiveStartDate): self + { + $this->initialized['effectiveStartDate'] = true; + $this->effectiveStartDate = $effectiveStartDate; + + return $this; + } + + /** + * Whether the insurance contract is currently active. + */ + public function getActiveContract(): ?bool + { + return $this->activeContract; + } + + /** + * Whether the insurance contract is currently active. + */ + public function setActiveContract(?bool $activeContract): self + { + $this->initialized['activeContract'] = true; + $this->activeContract = $activeContract; + + return $this; + } + + /** + * Cancellation date of the insurance contract, if applicable. + */ + public function getContractCancellationDate(): ?\DateTime + { + return $this->contractCancellationDate; + } + + /** + * Cancellation date of the insurance contract, if applicable. + */ + public function setContractCancellationDate(?\DateTime $contractCancellationDate): self + { + $this->initialized['contractCancellationDate'] = true; + $this->contractCancellationDate = $contractCancellationDate; + + return $this; + } + + /** + * Model of the insured vehicle extracted from the document. + */ + public function getVehicleModel(): ?string + { + return $this->vehicleModel; + } + + /** + * Model of the insured vehicle extracted from the document. + */ + public function setVehicleModel(?string $vehicleModel): self + { + $this->initialized['vehicleModel'] = true; + $this->vehicleModel = $vehicleModel; + + return $this; + } + + /** + * License plate number of the insured vehicle extracted from the document. + */ + public function getVehicleLicensePlate(): ?string + { + return $this->vehicleLicensePlate; + } + + /** + * License plate number of the insured vehicle extracted from the document. + */ + public function setVehicleLicensePlate(?string $vehicleLicensePlate): self + { + $this->initialized['vehicleLicensePlate'] = true; + $this->vehicleLicensePlate = $vehicleLicensePlate; + + return $this; + } + + /** + * List of drivers covered by the insurance policy. + * + * @return list|null + */ + public function getDriversInformation(): ?array + { + return $this->driversInformation; + } + + /** + * List of drivers covered by the insurance policy. + * + * @param list|null $driversInformation + */ + public function setDriversInformation(?array $driversInformation): self + { + $this->initialized['driversInformation'] = true; + $this->driversInformation = $driversInformation; + + return $this; + } + + /** + * List of incidents (claims) recorded in the insurance history. + * + * @return list|null + */ + public function getIncidentsInformation(): ?array + { + return $this->incidentsInformation; + } + + /** + * List of incidents (claims) recorded in the insurance history. + * + * @param list|null $incidentsInformation + */ + public function setIncidentsInformation(?array $incidentsInformation): self + { + $this->initialized['incidentsInformation'] = true; + $this->incidentsInformation = $incidentsInformation; + + return $this; + } + + /** + * Classification label extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * Classification label extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/AutoInsuranceClaimsHistoryExtractionDriversInformationInner.php b/generated/Model/AutoInsuranceClaimsHistoryExtractionDriversInformationInner.php new file mode 100644 index 0000000..8dc0570 --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryExtractionDriversInformationInner.php @@ -0,0 +1,191 @@ +initialized); + } + /** + * Full name of the driver. + * + * @var string|null + */ + protected $driverFullName; + /** + * Birth date of the driver. + * + * @var \DateTime|null + */ + protected $driverBirthDate; + /** + * Start date of the driver's coverage. + * + * @var \DateTime|null + */ + protected $coverageStartDate; + /** + * End date of the driver's coverage, if applicable. + * + * @var \DateTime|null + */ + protected $coverageEndDate; + /** + * License number of the driver. + * + * @var string|null + */ + protected $driverLicenseNumber; + /** + * License category of the driver. + * + * @var string|null + */ + protected $driverLicenseCategory; + /** + * Issuance date of the driver's license. + * + * @var \DateTime|null + */ + protected $driverLicenseIssuanceDate; + + /** + * Full name of the driver. + */ + public function getDriverFullName(): ?string + { + return $this->driverFullName; + } + + /** + * Full name of the driver. + */ + public function setDriverFullName(?string $driverFullName): self + { + $this->initialized['driverFullName'] = true; + $this->driverFullName = $driverFullName; + + return $this; + } + + /** + * Birth date of the driver. + */ + public function getDriverBirthDate(): ?\DateTime + { + return $this->driverBirthDate; + } + + /** + * Birth date of the driver. + */ + public function setDriverBirthDate(?\DateTime $driverBirthDate): self + { + $this->initialized['driverBirthDate'] = true; + $this->driverBirthDate = $driverBirthDate; + + return $this; + } + + /** + * Start date of the driver's coverage. + */ + public function getCoverageStartDate(): ?\DateTime + { + return $this->coverageStartDate; + } + + /** + * Start date of the driver's coverage. + */ + public function setCoverageStartDate(?\DateTime $coverageStartDate): self + { + $this->initialized['coverageStartDate'] = true; + $this->coverageStartDate = $coverageStartDate; + + return $this; + } + + /** + * End date of the driver's coverage, if applicable. + */ + public function getCoverageEndDate(): ?\DateTime + { + return $this->coverageEndDate; + } + + /** + * End date of the driver's coverage, if applicable. + */ + public function setCoverageEndDate(?\DateTime $coverageEndDate): self + { + $this->initialized['coverageEndDate'] = true; + $this->coverageEndDate = $coverageEndDate; + + return $this; + } + + /** + * License number of the driver. + */ + public function getDriverLicenseNumber(): ?string + { + return $this->driverLicenseNumber; + } + + /** + * License number of the driver. + */ + public function setDriverLicenseNumber(?string $driverLicenseNumber): self + { + $this->initialized['driverLicenseNumber'] = true; + $this->driverLicenseNumber = $driverLicenseNumber; + + return $this; + } + + /** + * License category of the driver. + */ + public function getDriverLicenseCategory(): ?string + { + return $this->driverLicenseCategory; + } + + /** + * License category of the driver. + */ + public function setDriverLicenseCategory(?string $driverLicenseCategory): self + { + $this->initialized['driverLicenseCategory'] = true; + $this->driverLicenseCategory = $driverLicenseCategory; + + return $this; + } + + /** + * Issuance date of the driver's license. + */ + public function getDriverLicenseIssuanceDate(): ?\DateTime + { + return $this->driverLicenseIssuanceDate; + } + + /** + * Issuance date of the driver's license. + */ + public function setDriverLicenseIssuanceDate(?\DateTime $driverLicenseIssuanceDate): self + { + $this->initialized['driverLicenseIssuanceDate'] = true; + $this->driverLicenseIssuanceDate = $driverLicenseIssuanceDate; + + return $this; + } +} diff --git a/generated/Model/AutoInsuranceClaimsHistoryExtractionIncidentsInformationInner.php b/generated/Model/AutoInsuranceClaimsHistoryExtractionIncidentsInformationInner.php new file mode 100644 index 0000000..56a0f95 --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryExtractionIncidentsInformationInner.php @@ -0,0 +1,141 @@ +initialized); + } + /** + * Date of the incident. + * + * @var \DateTime|null + */ + protected $incidentDate; + /** + * Description of the incident. + * + * @var string|null + */ + protected $incidentDescription; + /** + * Type of the incident. + * + * @var string|null + */ + protected $incidentType; + /** + * Responsibility level for the incident. + * + * @var string|null + */ + protected $incidentResponsability; + /** + * Full name of the driver involved in the incident. + * + * @var string|null + */ + protected $driversFullName; + + /** + * Date of the incident. + */ + public function getIncidentDate(): ?\DateTime + { + return $this->incidentDate; + } + + /** + * Date of the incident. + */ + public function setIncidentDate(?\DateTime $incidentDate): self + { + $this->initialized['incidentDate'] = true; + $this->incidentDate = $incidentDate; + + return $this; + } + + /** + * Description of the incident. + */ + public function getIncidentDescription(): ?string + { + return $this->incidentDescription; + } + + /** + * Description of the incident. + */ + public function setIncidentDescription(?string $incidentDescription): self + { + $this->initialized['incidentDescription'] = true; + $this->incidentDescription = $incidentDescription; + + return $this; + } + + /** + * Type of the incident. + */ + public function getIncidentType(): ?string + { + return $this->incidentType; + } + + /** + * Type of the incident. + */ + public function setIncidentType(?string $incidentType): self + { + $this->initialized['incidentType'] = true; + $this->incidentType = $incidentType; + + return $this; + } + + /** + * Responsibility level for the incident. + */ + public function getIncidentResponsability(): ?string + { + return $this->incidentResponsability; + } + + /** + * Responsibility level for the incident. + */ + public function setIncidentResponsability(?string $incidentResponsability): self + { + $this->initialized['incidentResponsability'] = true; + $this->incidentResponsability = $incidentResponsability; + + return $this; + } + + /** + * Full name of the driver involved in the incident. + */ + public function getDriversFullName(): ?string + { + return $this->driversFullName; + } + + /** + * Full name of the driver involved in the incident. + */ + public function setDriversFullName(?string $driversFullName): self + { + $this->initialized['driversFullName'] = true; + $this->driversFullName = $driversFullName; + + return $this; + } +} diff --git a/generated/Model/AutoInsuranceClaimsHistoryFull.php b/generated/Model/AutoInsuranceClaimsHistoryFull.php new file mode 100644 index 0000000..992e0ce --- /dev/null +++ b/generated/Model/AutoInsuranceClaimsHistoryFull.php @@ -0,0 +1,485 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var AutoInsuranceClaimsHistoryExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var AutoInsuranceClaimsHistoryCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?AutoInsuranceClaimsHistoryExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?AutoInsuranceClaimsHistoryExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?AutoInsuranceClaimsHistoryCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?AutoInsuranceClaimsHistoryCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/BadRequestResponse.php b/generated/Model/BadRequestResponse.php index 33abc33..794dcb8 100644 --- a/generated/Model/BadRequestResponse.php +++ b/generated/Model/BadRequestResponse.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class BadRequestResponse extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class BadRequestResponse implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -47,4 +51,9 @@ public function setDetail(?string $detail): self return $this; } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'detail' => ['detail', 'getDetail', 'setDetail']]; + } } diff --git a/generated/Model/BankAccount.php b/generated/Model/BankAccount.php new file mode 100644 index 0000000..3c0bec4 --- /dev/null +++ b/generated/Model/BankAccount.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * International Bank Account Number. + * + * @var string|null + */ + protected $iban; + /** + * Business Identifier Code. + * + * @var string|null + */ + protected $bic; + + /** + * International Bank Account Number. + */ + public function getIban(): ?string + { + return $this->iban; + } + + /** + * International Bank Account Number. + */ + public function setIban(?string $iban): self + { + $this->initialized['iban'] = true; + $this->iban = $iban; + + return $this; + } + + /** + * Business Identifier Code. + */ + public function getBic(): ?string + { + return $this->bic; + } + + /** + * Business Identifier Code. + */ + public function setBic(?string $bic): self + { + $this->initialized['bic'] = true; + $this->bic = $bic; + + return $this; + } +} diff --git a/generated/Model/BankAccountFull.php b/generated/Model/BankAccountFull.php new file mode 100644 index 0000000..2d9546c --- /dev/null +++ b/generated/Model/BankAccountFull.php @@ -0,0 +1,305 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Creation date of the Bank Account Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Bank Account Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Bank Account Verification. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @var list|null + */ + protected $statusCodes; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * @var BankAccountFullAllOfData|null + */ + protected $data; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Creation date of the Bank Account Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Bank Account Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Bank Account Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Bank Account Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Bank Account Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Bank Account Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + public function getData(): ?BankAccountFullAllOfData + { + return $this->data; + } + + public function setData(?BankAccountFullAllOfData $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/BankAccountFullAllOfData.php b/generated/Model/BankAccountFullAllOfData.php new file mode 100644 index 0000000..6ccdc73 --- /dev/null +++ b/generated/Model/BankAccountFullAllOfData.php @@ -0,0 +1,50 @@ +initialized); + } + /** + * Data extracted from the provided bank account document. + * + * @var BankAccountFullAllOfDataExtractedFromDocument|null + */ + protected $extractedFromDocument; + + /** + * Data extracted from the provided bank account document. + */ + public function getExtractedFromDocument(): ?BankAccountFullAllOfDataExtractedFromDocument + { + return $this->extractedFromDocument; + } + + /** + * Data extracted from the provided bank account document. + */ + public function setExtractedFromDocument(?BankAccountFullAllOfDataExtractedFromDocument $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + public function definedProperties(): array + { + return ['extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument']]; + } +} diff --git a/generated/Model/BankAccountVerificationExtractedFromDocument.php b/generated/Model/BankAccountFullAllOfDataExtractedFromDocument.php similarity index 73% rename from generated/Model/BankAccountVerificationExtractedFromDocument.php rename to generated/Model/BankAccountFullAllOfDataExtractedFromDocument.php index d617b47..cb84453 100644 --- a/generated/Model/BankAccountVerificationExtractedFromDocument.php +++ b/generated/Model/BankAccountFullAllOfDataExtractedFromDocument.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class BankAccountVerificationExtractedFromDocument extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class BankAccountFullAllOfDataExtractedFromDocument implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -63,4 +67,9 @@ public function setBic(?string $bic): self return $this; } + + public function definedProperties(): array + { + return ['iban' => ['iban', 'getIban', 'setIban'], 'bic' => ['bic', 'getBic', 'setBic']]; + } } diff --git a/generated/Model/BankAccountLookupFull.php b/generated/Model/BankAccountLookupFull.php new file mode 100644 index 0000000..c9f05be --- /dev/null +++ b/generated/Model/BankAccountLookupFull.php @@ -0,0 +1,305 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Bank Account Lookup Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Bank Account Lookup Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Bank Account Lookup Verification. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @var list|null + */ + protected $statusCodes; + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * @var BankAccountLookupFullData|null + */ + protected $data; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Bank Account Lookup Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Bank Account Lookup Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Bank Account Lookup Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Bank Account Lookup Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Bank Account Lookup Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Bank Account Lookup Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + public function getData(): ?BankAccountLookupFullData + { + return $this->data; + } + + public function setData(?BankAccountLookupFullData $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/BankAccountLookupFullData.php b/generated/Model/BankAccountLookupFullData.php new file mode 100644 index 0000000..fb7f846 --- /dev/null +++ b/generated/Model/BankAccountLookupFullData.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var BankAccountLookupFullDataExtractedFromDocument|null + */ + protected $extractedFromDocument; + /** + * The account holder name as the bank holds it, disclosed when the name you submitted is a + * close match. Best effort: the bank does not always disclose it. + * + * @var string|null + */ + protected $accountHolder; + + public function getExtractedFromDocument(): ?BankAccountLookupFullDataExtractedFromDocument + { + return $this->extractedFromDocument; + } + + public function setExtractedFromDocument(?BankAccountLookupFullDataExtractedFromDocument $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * The account holder name as the bank holds it, disclosed when the name you submitted is a + * close match. Best effort: the bank does not always disclose it. + */ + public function getAccountHolder(): ?string + { + return $this->accountHolder; + } + + /** + * The account holder name as the bank holds it, disclosed when the name you submitted is a + * close match. Best effort: the bank does not always disclose it. + */ + public function setAccountHolder(?string $accountHolder): self + { + $this->initialized['accountHolder'] = true; + $this->accountHolder = $accountHolder; + + return $this; + } + + public function definedProperties(): array + { + return ['extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'accountHolder' => ['account_holder', 'getAccountHolder', 'setAccountHolder']]; + } +} diff --git a/generated/Model/BankAccountLookupFullDataExtractedFromDocument.php b/generated/Model/BankAccountLookupFullDataExtractedFromDocument.php new file mode 100644 index 0000000..cc73cf4 --- /dev/null +++ b/generated/Model/BankAccountLookupFullDataExtractedFromDocument.php @@ -0,0 +1,50 @@ +initialized); + } + /** + * The IBAN number extracted from the document. + * + * @var string|null + */ + protected $iban; + + /** + * The IBAN number extracted from the document. + */ + public function getIban(): ?string + { + return $this->iban; + } + + /** + * The IBAN number extracted from the document. + */ + public function setIban(?string $iban): self + { + $this->initialized['iban'] = true; + $this->iban = $iban; + + return $this; + } + + public function definedProperties(): array + { + return ['iban' => ['iban', 'getIban', 'setIban']]; + } +} diff --git a/generated/Model/BankAccountLookupMeta.php b/generated/Model/BankAccountLookupMeta.php new file mode 100644 index 0000000..2fbf447 --- /dev/null +++ b/generated/Model/BankAccountLookupMeta.php @@ -0,0 +1,263 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Creation date of the Bank Account Lookup Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Bank Account Lookup Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Bank Account Lookup Verification. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @var list|null + */ + protected $statusCodes; + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Creation date of the Bank Account Lookup Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Bank Account Lookup Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Bank Account Lookup Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Bank Account Lookup Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Bank Account Lookup Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Bank Account Lookup Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the Bank Account Lookup Verification data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId']]; + } +} diff --git a/generated/Model/BankAccountMeta.php b/generated/Model/BankAccountMeta.php new file mode 100644 index 0000000..36973b9 --- /dev/null +++ b/generated/Model/BankAccountMeta.php @@ -0,0 +1,288 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Creation date of the Bank Account Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Bank Account Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Bank Account Verification. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @var list|null + */ + protected $statusCodes; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Creation date of the Bank Account Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Bank Account Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Bank Account Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Bank Account Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Bank Account Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Bank Account Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed` or `inconclusive`. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId']]; + } +} diff --git a/generated/Model/BankAccountVerification.php b/generated/Model/BankAccountVerification.php deleted file mode 100644 index 8e39201..0000000 --- a/generated/Model/BankAccountVerification.php +++ /dev/null @@ -1,104 +0,0 @@ -initialized); - } - /** - * The unique identifier for a resource. - * - * @var string|null - */ - protected $id; - /** - * @var string|null - */ - protected $status; - /** - * List of response codes. - * - * @var list|null - */ - protected $statusCodes; - /** - * @var BankAccountVerificationExtractedFromDocument|null - */ - protected $extractedFromDocument; - - /** - * The unique identifier for a resource. - */ - public function getId(): ?string - { - return $this->id; - } - - /** - * The unique identifier for a resource. - */ - public function setId(?string $id): self - { - $this->initialized['id'] = true; - $this->id = $id; - - return $this; - } - - public function getStatus(): ?string - { - return $this->status; - } - - public function setStatus(?string $status): self - { - $this->initialized['status'] = true; - $this->status = $status; - - return $this; - } - - /** - * List of response codes. - * - * @return list|null - */ - public function getStatusCodes(): ?array - { - return $this->statusCodes; - } - - /** - * List of response codes. - * - * @param list|null $statusCodes - */ - public function setStatusCodes(?array $statusCodes): self - { - $this->initialized['statusCodes'] = true; - $this->statusCodes = $statusCodes; - - return $this; - } - - public function getExtractedFromDocument(): ?BankAccountVerificationExtractedFromDocument - { - return $this->extractedFromDocument; - } - - public function setExtractedFromDocument(?BankAccountVerificationExtractedFromDocument $extractedFromDocument): self - { - $this->initialized['extractedFromDocument'] = true; - $this->extractedFromDocument = $extractedFromDocument; - - return $this; - } -} diff --git a/generated/Model/BusinessRegistrationCertificateCheck.php b/generated/Model/BusinessRegistrationCertificateCheck.php new file mode 100644 index 0000000..46e7fa3 --- /dev/null +++ b/generated/Model/BusinessRegistrationCertificateCheck.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + * + * @var DocumentAnalysisCheck|null + */ + protected $fullName; + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function getFullName(): ?DocumentAnalysisCheck + { + return $this->fullName; + } + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function setFullName(?DocumentAnalysisCheck $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } +} diff --git a/generated/Model/BusinessRegistrationCertificateExtraction.php b/generated/Model/BusinessRegistrationCertificateExtraction.php new file mode 100644 index 0000000..a91eaf7 --- /dev/null +++ b/generated/Model/BusinessRegistrationCertificateExtraction.php @@ -0,0 +1,100 @@ +initialized); + } + /** + * Issuance date extracted from the document. + * + * @var string|null + */ + protected $issuanceDate; + /** + * @var BusinessRegistrationCertificateExtractionCompanyDescription|null + */ + protected $companyDescription; + /** + * @var BusinessRegistrationCertificateExtractionBranchDescription|null + */ + protected $branchDescription; + /** + * Classification label extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * Issuance date extracted from the document. + */ + public function getIssuanceDate(): ?string + { + return $this->issuanceDate; + } + + /** + * Issuance date extracted from the document. + */ + public function setIssuanceDate(?string $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + public function getCompanyDescription(): ?BusinessRegistrationCertificateExtractionCompanyDescription + { + return $this->companyDescription; + } + + public function setCompanyDescription(?BusinessRegistrationCertificateExtractionCompanyDescription $companyDescription): self + { + $this->initialized['companyDescription'] = true; + $this->companyDescription = $companyDescription; + + return $this; + } + + public function getBranchDescription(): ?BusinessRegistrationCertificateExtractionBranchDescription + { + return $this->branchDescription; + } + + public function setBranchDescription(?BusinessRegistrationCertificateExtractionBranchDescription $branchDescription): self + { + $this->initialized['branchDescription'] = true; + $this->branchDescription = $branchDescription; + + return $this; + } + + /** + * Classification label extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * Classification label extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/BusinessRegistrationCertificateExtractionBranchDescription.php b/generated/Model/BusinessRegistrationCertificateExtractionBranchDescription.php new file mode 100644 index 0000000..4146ba9 --- /dev/null +++ b/generated/Model/BusinessRegistrationCertificateExtractionBranchDescription.php @@ -0,0 +1,150 @@ +initialized); + } + /** + * Address extracted from the document. + * + * @var string|null + */ + protected $address; + /** + * City extracted from the document. + * + * @var string|null + */ + protected $city; + /** + * Postal code extracted from the document. + * + * @var string|null + */ + protected $postalCode; + /** + * Indicates whether the branch is active or not. + * + * @var bool|null + */ + protected $active; + /** + * Branch company number extracted from the document. + * + * @var string|null + */ + protected $branchCompanyNumber; + + /** + * Address extracted from the document. + */ + public function getAddress(): ?string + { + return $this->address; + } + + /** + * Address extracted from the document. + */ + public function setAddress(?string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + /** + * City extracted from the document. + */ + public function getCity(): ?string + { + return $this->city; + } + + /** + * City extracted from the document. + */ + public function setCity(?string $city): self + { + $this->initialized['city'] = true; + $this->city = $city; + + return $this; + } + + /** + * Postal code extracted from the document. + */ + public function getPostalCode(): ?string + { + return $this->postalCode; + } + + /** + * Postal code extracted from the document. + */ + public function setPostalCode(?string $postalCode): self + { + $this->initialized['postalCode'] = true; + $this->postalCode = $postalCode; + + return $this; + } + + /** + * Indicates whether the branch is active or not. + */ + public function getActive(): ?bool + { + return $this->active; + } + + /** + * Indicates whether the branch is active or not. + */ + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + /** + * Branch company number extracted from the document. + */ + public function getBranchCompanyNumber(): ?string + { + return $this->branchCompanyNumber; + } + + /** + * Branch company number extracted from the document. + */ + public function setBranchCompanyNumber(?string $branchCompanyNumber): self + { + $this->initialized['branchCompanyNumber'] = true; + $this->branchCompanyNumber = $branchCompanyNumber; + + return $this; + } + + public function definedProperties(): array + { + return ['address' => ['address', 'getAddress', 'setAddress'], 'city' => ['city', 'getCity', 'setCity'], 'postalCode' => ['postal_code', 'getPostalCode', 'setPostalCode'], 'active' => ['active', 'getActive', 'setActive'], 'branchCompanyNumber' => ['branch_company_number', 'getBranchCompanyNumber', 'setBranchCompanyNumber']]; + } +} diff --git a/generated/Model/BusinessRegistrationCertificateExtractionCompanyDescription.php b/generated/Model/BusinessRegistrationCertificateExtractionCompanyDescription.php new file mode 100644 index 0000000..be4314f --- /dev/null +++ b/generated/Model/BusinessRegistrationCertificateExtractionCompanyDescription.php @@ -0,0 +1,225 @@ +initialized); + } + /** + * Indicates whether the company is active or not. + * + * @var bool|null + */ + protected $active; + /** + * Legal form extracted from the document. + * + * @var string|null + */ + protected $legalForm; + /** + * Company name extracted from the document. + * + * @var string|null + */ + protected $companyName; + /** + * Company number extracted from the document. + * + * @var string|null + */ + protected $companyNumber; + /** + * Headquarter company number extracted from the document. + * + * @var string|null + */ + protected $headquarterCompanyNumber; + /** + * First name of the individual extracted from the document. Null if not a sole proprietor. + * + * @var string|null + */ + protected $firstName; + /** + * Last name of the individual extracted from the document. Null if not a sole proprietor. + * + * @var string|null + */ + protected $lastName; + /** + * Full name of the individual extracted from the document. Null if not a sole proprietor. + * + * @var string|null + */ + protected $fullName; + + /** + * Indicates whether the company is active or not. + */ + public function getActive(): ?bool + { + return $this->active; + } + + /** + * Indicates whether the company is active or not. + */ + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + /** + * Legal form extracted from the document. + */ + public function getLegalForm(): ?string + { + return $this->legalForm; + } + + /** + * Legal form extracted from the document. + */ + public function setLegalForm(?string $legalForm): self + { + $this->initialized['legalForm'] = true; + $this->legalForm = $legalForm; + + return $this; + } + + /** + * Company name extracted from the document. + */ + public function getCompanyName(): ?string + { + return $this->companyName; + } + + /** + * Company name extracted from the document. + */ + public function setCompanyName(?string $companyName): self + { + $this->initialized['companyName'] = true; + $this->companyName = $companyName; + + return $this; + } + + /** + * Company number extracted from the document. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * Company number extracted from the document. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + /** + * Headquarter company number extracted from the document. + */ + public function getHeadquarterCompanyNumber(): ?string + { + return $this->headquarterCompanyNumber; + } + + /** + * Headquarter company number extracted from the document. + */ + public function setHeadquarterCompanyNumber(?string $headquarterCompanyNumber): self + { + $this->initialized['headquarterCompanyNumber'] = true; + $this->headquarterCompanyNumber = $headquarterCompanyNumber; + + return $this; + } + + /** + * First name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * First name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * Last name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * Last name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * Full name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function getFullName(): ?string + { + return $this->fullName; + } + + /** + * Full name of the individual extracted from the document. Null if not a sole proprietor. + */ + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function definedProperties(): array + { + return ['active' => ['active', 'getActive', 'setActive'], 'legalForm' => ['legal_form', 'getLegalForm', 'setLegalForm'], 'companyName' => ['company_name', 'getCompanyName', 'setCompanyName'], 'companyNumber' => ['company_number', 'getCompanyNumber', 'setCompanyNumber'], 'headquarterCompanyNumber' => ['headquarter_company_number', 'getHeadquarterCompanyNumber', 'setHeadquarterCompanyNumber'], 'firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'fullName' => ['full_name', 'getFullName', 'setFullName']]; + } +} diff --git a/generated/Model/BusinessRegistrationCertificateFull.php b/generated/Model/BusinessRegistrationCertificateFull.php new file mode 100644 index 0000000..4e38310 --- /dev/null +++ b/generated/Model/BusinessRegistrationCertificateFull.php @@ -0,0 +1,485 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var BusinessRegistrationCertificateExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var BusinessRegistrationCertificateCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?BusinessRegistrationCertificateExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?BusinessRegistrationCertificateExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?BusinessRegistrationCertificateCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?BusinessRegistrationCertificateCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/Checkbox.php b/generated/Model/Checkbox.php index f67fd76..a29c35b 100644 --- a/generated/Model/Checkbox.php +++ b/generated/Model/Checkbox.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Checkbox extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Checkbox implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -49,6 +53,12 @@ public function isInitialized($property): bool * @var bool|null */ protected $checked = false; + /** + * If set to `true`, the checkbox cannot be modified by the signer. + * + * @var bool|null + */ + protected $readOnly = false; public function getSignerId(): ?string { @@ -166,4 +176,28 @@ public function setChecked(?bool $checked): self return $this; } + + /** + * If set to `true`, the checkbox cannot be modified by the signer. + */ + public function getReadOnly(): ?bool + { + return $this->readOnly; + } + + /** + * If set to `true`, the checkbox cannot be modified by the signer. + */ + public function setReadOnly(?bool $readOnly): self + { + $this->initialized['readOnly'] = true; + $this->readOnly = $readOnly; + + return $this; + } + + public function definedProperties(): array + { + return ['signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'size' => ['size', 'getSize', 'setSize'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'name' => ['name', 'getName', 'setName'], 'checked' => ['checked', 'getChecked', 'setChecked'], 'readOnly' => ['read_only', 'getReadOnly', 'setReadOnly']]; + } } diff --git a/generated/Model/Checkbox1.php b/generated/Model/Checkbox1.php index b3b7502..5f78d70 100644 --- a/generated/Model/Checkbox1.php +++ b/generated/Model/Checkbox1.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Checkbox1 extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Checkbox1 implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -45,6 +49,12 @@ public function isInitialized($property): bool * @var bool|null */ protected $checked = false; + /** + * If set to `true`, the checkbox cannot be modified by the Signer. + * + * @var bool|null + */ + protected $readOnly = false; public function getSignerId(): ?string { @@ -149,4 +159,28 @@ public function setChecked(?bool $checked): self return $this; } + + /** + * If set to `true`, the checkbox cannot be modified by the Signer. + */ + public function getReadOnly(): ?bool + { + return $this->readOnly; + } + + /** + * If set to `true`, the checkbox cannot be modified by the Signer. + */ + public function setReadOnly(?bool $readOnly): self + { + $this->initialized['readOnly'] = true; + $this->readOnly = $readOnly; + + return $this; + } + + public function definedProperties(): array + { + return ['signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'size' => ['size', 'getSize', 'setSize'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'name' => ['name', 'getName', 'setName'], 'checked' => ['checked', 'getChecked', 'setChecked'], 'readOnly' => ['read_only', 'getReadOnly', 'setReadOnly']]; + } } diff --git a/generated/Model/Checkbox2.php b/generated/Model/Checkbox2.php index 11ef6c2..0fbda7d 100644 --- a/generated/Model/Checkbox2.php +++ b/generated/Model/Checkbox2.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Checkbox2 extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Checkbox2 implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,22 +18,32 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** + * Identifier of the Document the checkbox Field is placed on. + * * @var string|null */ protected $documentId; /** + * Field type discriminator. + * * @var string|null */ protected $type; /** + * Page number where the Field is placed. + * * @var int|null */ protected $page; /** + * Horizontal position (points from left). + * * @var int|null */ protected $x; /** + * Vertical position (points from top). + * * @var int|null */ protected $y; @@ -40,23 +54,47 @@ public function isInitialized($property): bool */ protected $size; /** + * Whether ticking this checkbox is optional. + * * @var bool|null */ protected $optional; /** + * Name of the checkbox Field. + * * @var string|null */ protected $name; /** + * Current checked state of the checkbox. + * * @var bool|null */ protected $checked; + /** + * Whether the checkbox is initially checked. + * + * @var bool|null + */ + protected $defaultChecked; + /** + * If set to `true`, the checkbox cannot be modified by the signer. + * + * @var bool|null + */ + protected $readOnly = false; + /** + * Identifier of the Document the checkbox Field is placed on. + */ public function getDocumentId(): ?string { return $this->documentId; } + /** + * Identifier of the Document the checkbox Field is placed on. + */ public function setDocumentId(?string $documentId): self { $this->initialized['documentId'] = true; @@ -65,11 +103,17 @@ public function setDocumentId(?string $documentId): self return $this; } + /** + * Field type discriminator. + */ public function getType(): ?string { return $this->type; } + /** + * Field type discriminator. + */ public function setType(?string $type): self { $this->initialized['type'] = true; @@ -78,11 +122,17 @@ public function setType(?string $type): self return $this; } + /** + * Page number where the Field is placed. + */ public function getPage(): ?int { return $this->page; } + /** + * Page number where the Field is placed. + */ public function setPage(?int $page): self { $this->initialized['page'] = true; @@ -91,11 +141,17 @@ public function setPage(?int $page): self return $this; } + /** + * Horizontal position (points from left). + */ public function getX(): ?int { return $this->x; } + /** + * Horizontal position (points from left). + */ public function setX(?int $x): self { $this->initialized['x'] = true; @@ -104,11 +160,17 @@ public function setX(?int $x): self return $this; } + /** + * Vertical position (points from top). + */ public function getY(): ?int { return $this->y; } + /** + * Vertical position (points from top). + */ public function setY(?int $y): self { $this->initialized['y'] = true; @@ -136,11 +198,17 @@ public function setSize(?int $size): self return $this; } + /** + * Whether ticking this checkbox is optional. + */ public function getOptional(): ?bool { return $this->optional; } + /** + * Whether ticking this checkbox is optional. + */ public function setOptional(?bool $optional): self { $this->initialized['optional'] = true; @@ -149,11 +217,17 @@ public function setOptional(?bool $optional): self return $this; } + /** + * Name of the checkbox Field. + */ public function getName(): ?string { return $this->name; } + /** + * Name of the checkbox Field. + */ public function setName(?string $name): self { $this->initialized['name'] = true; @@ -162,11 +236,17 @@ public function setName(?string $name): self return $this; } + /** + * Current checked state of the checkbox. + */ public function getChecked(): ?bool { return $this->checked; } + /** + * Current checked state of the checkbox. + */ public function setChecked(?bool $checked): self { $this->initialized['checked'] = true; @@ -174,4 +254,47 @@ public function setChecked(?bool $checked): self return $this; } + + /** + * Whether the checkbox is initially checked. + */ + public function getDefaultChecked(): ?bool + { + return $this->defaultChecked; + } + + /** + * Whether the checkbox is initially checked. + */ + public function setDefaultChecked(?bool $defaultChecked): self + { + $this->initialized['defaultChecked'] = true; + $this->defaultChecked = $defaultChecked; + + return $this; + } + + /** + * If set to `true`, the checkbox cannot be modified by the signer. + */ + public function getReadOnly(): ?bool + { + return $this->readOnly; + } + + /** + * If set to `true`, the checkbox cannot be modified by the signer. + */ + public function setReadOnly(?bool $readOnly): self + { + $this->initialized['readOnly'] = true; + $this->readOnly = $readOnly; + + return $this; + } + + public function definedProperties(): array + { + return ['documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'type' => ['type', 'getType', 'setType'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'size' => ['size', 'getSize', 'setSize'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'name' => ['name', 'getName', 'setName'], 'checked' => ['checked', 'getChecked', 'setChecked'], 'defaultChecked' => ['default_checked', 'getDefaultChecked', 'setDefaultChecked'], 'readOnly' => ['read_only', 'getReadOnly', 'setReadOnly']]; + } } diff --git a/generated/Model/CompanyCertificateCheck.php b/generated/Model/CompanyCertificateCheck.php new file mode 100644 index 0000000..2fdaf04 --- /dev/null +++ b/generated/Model/CompanyCertificateCheck.php @@ -0,0 +1,39 @@ +initialized); + } + /** + * @var list|null + */ + protected $legalRepresentatives; + + /** + * @return list|null + */ + public function getLegalRepresentatives(): ?array + { + return $this->legalRepresentatives; + } + + /** + * @param list|null $legalRepresentatives + */ + public function setLegalRepresentatives(?array $legalRepresentatives): self + { + $this->initialized['legalRepresentatives'] = true; + $this->legalRepresentatives = $legalRepresentatives; + + return $this; + } +} diff --git a/generated/Model/CompanyCertificateCheckLegalRepresentativesInner.php b/generated/Model/CompanyCertificateCheckLegalRepresentativesInner.php new file mode 100644 index 0000000..96b1634 --- /dev/null +++ b/generated/Model/CompanyCertificateCheckLegalRepresentativesInner.php @@ -0,0 +1,50 @@ +initialized); + } + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + * + * @var DocumentAnalysisCheck|null + */ + protected $fullName; + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function getFullName(): ?DocumentAnalysisCheck + { + return $this->fullName; + } + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function setFullName(?DocumentAnalysisCheck $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + public function definedProperties(): array + { + return ['fullName' => ['full_name', 'getFullName', 'setFullName']]; + } +} diff --git a/generated/Model/CompanyCertificateExtraction.php b/generated/Model/CompanyCertificateExtraction.php new file mode 100644 index 0000000..9686645 --- /dev/null +++ b/generated/Model/CompanyCertificateExtraction.php @@ -0,0 +1,195 @@ +initialized); + } + /** + * Verification number extracted from the document. + * + * @var string|null + */ + protected $verificationNumber; + /** + * Company name extracted from the document. + * + * @var string|null + */ + protected $companyName; + /** + * Company number extracted from the document. + * + * @var string|null + */ + protected $companyNumber; + /** + * Registered address extracted from the document. + * + * @var string|null + */ + protected $registeredAddress; + /** + * Issuance date extracted from the document. + * + * @var string|null + */ + protected $issuanceDate; + /** + * List of legal representatives extracted from the document. + * + * @var list|null + */ + protected $legalRepresentatives; + /** + * Classification label extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * Verification number extracted from the document. + */ + public function getVerificationNumber(): ?string + { + return $this->verificationNumber; + } + + /** + * Verification number extracted from the document. + */ + public function setVerificationNumber(?string $verificationNumber): self + { + $this->initialized['verificationNumber'] = true; + $this->verificationNumber = $verificationNumber; + + return $this; + } + + /** + * Company name extracted from the document. + */ + public function getCompanyName(): ?string + { + return $this->companyName; + } + + /** + * Company name extracted from the document. + */ + public function setCompanyName(?string $companyName): self + { + $this->initialized['companyName'] = true; + $this->companyName = $companyName; + + return $this; + } + + /** + * Company number extracted from the document. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * Company number extracted from the document. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + /** + * Registered address extracted from the document. + */ + public function getRegisteredAddress(): ?string + { + return $this->registeredAddress; + } + + /** + * Registered address extracted from the document. + */ + public function setRegisteredAddress(?string $registeredAddress): self + { + $this->initialized['registeredAddress'] = true; + $this->registeredAddress = $registeredAddress; + + return $this; + } + + /** + * Issuance date extracted from the document. + */ + public function getIssuanceDate(): ?string + { + return $this->issuanceDate; + } + + /** + * Issuance date extracted from the document. + */ + public function setIssuanceDate(?string $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * List of legal representatives extracted from the document. + * + * @return list|null + */ + public function getLegalRepresentatives(): ?array + { + return $this->legalRepresentatives; + } + + /** + * List of legal representatives extracted from the document. + * + * @param list|null $legalRepresentatives + */ + public function setLegalRepresentatives(?array $legalRepresentatives): self + { + $this->initialized['legalRepresentatives'] = true; + $this->legalRepresentatives = $legalRepresentatives; + + return $this; + } + + /** + * Classification label extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * Classification label extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/CompanyCertificateExtractionLegalRepresentativesInner.php b/generated/Model/CompanyCertificateExtractionLegalRepresentativesInner.php new file mode 100644 index 0000000..e6f84e8 --- /dev/null +++ b/generated/Model/CompanyCertificateExtractionLegalRepresentativesInner.php @@ -0,0 +1,200 @@ +initialized); + } + /** + * Type of the legal representative extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $type; + /** + * Function of the individual extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $function; + /** + * First name of the individual extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $firstName; + /** + * Last name of the individual extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $lastName; + /** + * Full name of the individual extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $fullName; + /** + * Company name extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $companyName; + /** + * Company number extracted from the list of legal representatives in the document. + * + * @var string|null + */ + protected $companyNumber; + + /** + * Type of the legal representative extracted from the list of legal representatives in the document. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the legal representative extracted from the list of legal representatives in the document. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Function of the individual extracted from the list of legal representatives in the document. + */ + public function getFunction(): ?string + { + return $this->function; + } + + /** + * Function of the individual extracted from the list of legal representatives in the document. + */ + public function setFunction(?string $function): self + { + $this->initialized['function'] = true; + $this->function = $function; + + return $this; + } + + /** + * First name of the individual extracted from the list of legal representatives in the document. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * First name of the individual extracted from the list of legal representatives in the document. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * Last name of the individual extracted from the list of legal representatives in the document. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * Last name of the individual extracted from the list of legal representatives in the document. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * Full name of the individual extracted from the list of legal representatives in the document. + */ + public function getFullName(): ?string + { + return $this->fullName; + } + + /** + * Full name of the individual extracted from the list of legal representatives in the document. + */ + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + /** + * Company name extracted from the list of legal representatives in the document. + */ + public function getCompanyName(): ?string + { + return $this->companyName; + } + + /** + * Company name extracted from the list of legal representatives in the document. + */ + public function setCompanyName(?string $companyName): self + { + $this->initialized['companyName'] = true; + $this->companyName = $companyName; + + return $this; + } + + /** + * Company number extracted from the list of legal representatives in the document. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * Company number extracted from the list of legal representatives in the document. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'function' => ['function', 'getFunction', 'setFunction'], 'firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'fullName' => ['full_name', 'getFullName', 'setFullName'], 'companyName' => ['company_name', 'getCompanyName', 'setCompanyName'], 'companyNumber' => ['company_number', 'getCompanyNumber', 'setCompanyNumber']]; + } +} diff --git a/generated/Model/CompanyCertificateFull.php b/generated/Model/CompanyCertificateFull.php new file mode 100644 index 0000000..4cf88d6 --- /dev/null +++ b/generated/Model/CompanyCertificateFull.php @@ -0,0 +1,485 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var CompanyCertificateExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var CompanyCertificateCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?CompanyCertificateExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?CompanyCertificateExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?CompanyCertificateCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?CompanyCertificateCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/CompanyFull.php b/generated/Model/CompanyFull.php new file mode 100644 index 0000000..9cdc496 --- /dev/null +++ b/generated/Model/CompanyFull.php @@ -0,0 +1,276 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Creation date of the Company Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Company Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Company Verification. + * + * @var string|null + */ + protected $status; + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * @var CompanyFullAllOfData|null + */ + protected $data; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Creation date of the Company Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Company Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Company Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Company Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Company Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Company Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + public function getData(): ?CompanyFullAllOfData + { + return $this->data; + } + + public function setData(?CompanyFullAllOfData $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/CompanyFullAllOfData.php b/generated/Model/CompanyFullAllOfData.php new file mode 100644 index 0000000..384efcb --- /dev/null +++ b/generated/Model/CompanyFullAllOfData.php @@ -0,0 +1,128 @@ +initialized); + } + /** + * @var CompanyFullAllOfDataExtractedFromDocument|null + */ + protected $extractedFromDocument; + /** + * @var CompanyFullAllOfDataCompanyInformation|null + */ + protected $companyInformation; + /** + * @var CompanyFullAllOfDataHeadquarter|null + */ + protected $headquarter; + /** + * @var list|null + */ + protected $legalRepresentatives; + /** + * The company's ultimate beneficial owners, as declared in the local beneficial ownership register. Only available for French companies, and only if your organization subscribed to the corresponding add-on. Empty otherwise, and empty while the verification is still pending or once its data has been anonymized. + * + * @var list|null + */ + protected $beneficialOwners; + + public function getExtractedFromDocument(): ?CompanyFullAllOfDataExtractedFromDocument + { + return $this->extractedFromDocument; + } + + public function setExtractedFromDocument(?CompanyFullAllOfDataExtractedFromDocument $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + public function getCompanyInformation(): ?CompanyFullAllOfDataCompanyInformation + { + return $this->companyInformation; + } + + public function setCompanyInformation(?CompanyFullAllOfDataCompanyInformation $companyInformation): self + { + $this->initialized['companyInformation'] = true; + $this->companyInformation = $companyInformation; + + return $this; + } + + public function getHeadquarter(): ?CompanyFullAllOfDataHeadquarter + { + return $this->headquarter; + } + + public function setHeadquarter(?CompanyFullAllOfDataHeadquarter $headquarter): self + { + $this->initialized['headquarter'] = true; + $this->headquarter = $headquarter; + + return $this; + } + + /** + * @return list|null + */ + public function getLegalRepresentatives(): ?array + { + return $this->legalRepresentatives; + } + + /** + * @param list|null $legalRepresentatives + */ + public function setLegalRepresentatives(?array $legalRepresentatives): self + { + $this->initialized['legalRepresentatives'] = true; + $this->legalRepresentatives = $legalRepresentatives; + + return $this; + } + + /** + * The company's ultimate beneficial owners, as declared in the local beneficial ownership register. Only available for French companies, and only if your organization subscribed to the corresponding add-on. Empty otherwise, and empty while the verification is still pending or once its data has been anonymized. + * + * @return list|null + */ + public function getBeneficialOwners(): ?array + { + return $this->beneficialOwners; + } + + /** + * The company's ultimate beneficial owners, as declared in the local beneficial ownership register. Only available for French companies, and only if your organization subscribed to the corresponding add-on. Empty otherwise, and empty while the verification is still pending or once its data has been anonymized. + * + * @param list|null $beneficialOwners + */ + public function setBeneficialOwners(?array $beneficialOwners): self + { + $this->initialized['beneficialOwners'] = true; + $this->beneficialOwners = $beneficialOwners; + + return $this; + } + + public function definedProperties(): array + { + return ['extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'companyInformation' => ['company_information', 'getCompanyInformation', 'setCompanyInformation'], 'headquarter' => ['headquarter', 'getHeadquarter', 'setHeadquarter'], 'legalRepresentatives' => ['legal_representatives', 'getLegalRepresentatives', 'setLegalRepresentatives'], 'beneficialOwners' => ['beneficial_owners', 'getBeneficialOwners', 'setBeneficialOwners']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataBeneficialOwners.php b/generated/Model/CompanyFullAllOfDataBeneficialOwners.php new file mode 100644 index 0000000..b602fe9 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataBeneficialOwners.php @@ -0,0 +1,175 @@ +initialized); + } + /** + * The beneficial owner's first name. + * + * @var string|null + */ + protected $firstName; + /** + * The beneficial owner's last name. + * + * @var string|null + */ + protected $lastName; + /** + * The beneficial owner's gender, as declared in the register. "f" for Female, "m" for Male, "x" for Non-binary or unspecified. + * + * @var string|null + */ + protected $gender; + /** + * The beneficial owner's date of birth, as declared in the register. Registers are only required to publish the month of birth, so this is usually a partial date (`YYYY-MM`) rather than a full one (`YYYY-MM-DD`). + * + * @var string|null + */ + protected $bornOn; + /** + * Share of the company's capital held by the beneficial owner, in percent. Null when the register does not declare it. + * + * @var float|null + */ + protected $percentageOfShares; + /** + * Share of the company's voting rights held by the beneficial owner, in percent. Null when the register does not declare it. + * + * @var float|null + */ + protected $votingPercentage; + + /** + * The beneficial owner's first name. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * The beneficial owner's first name. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * The beneficial owner's last name. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * The beneficial owner's last name. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * The beneficial owner's gender, as declared in the register. "f" for Female, "m" for Male, "x" for Non-binary or unspecified. + */ + public function getGender(): ?string + { + return $this->gender; + } + + /** + * The beneficial owner's gender, as declared in the register. "f" for Female, "m" for Male, "x" for Non-binary or unspecified. + */ + public function setGender(?string $gender): self + { + $this->initialized['gender'] = true; + $this->gender = $gender; + + return $this; + } + + /** + * The beneficial owner's date of birth, as declared in the register. Registers are only required to publish the month of birth, so this is usually a partial date (`YYYY-MM`) rather than a full one (`YYYY-MM-DD`). + */ + public function getBornOn(): ?string + { + return $this->bornOn; + } + + /** + * The beneficial owner's date of birth, as declared in the register. Registers are only required to publish the month of birth, so this is usually a partial date (`YYYY-MM`) rather than a full one (`YYYY-MM-DD`). + */ + public function setBornOn(?string $bornOn): self + { + $this->initialized['bornOn'] = true; + $this->bornOn = $bornOn; + + return $this; + } + + /** + * Share of the company's capital held by the beneficial owner, in percent. Null when the register does not declare it. + */ + public function getPercentageOfShares(): ?float + { + return $this->percentageOfShares; + } + + /** + * Share of the company's capital held by the beneficial owner, in percent. Null when the register does not declare it. + */ + public function setPercentageOfShares(?float $percentageOfShares): self + { + $this->initialized['percentageOfShares'] = true; + $this->percentageOfShares = $percentageOfShares; + + return $this; + } + + /** + * Share of the company's voting rights held by the beneficial owner, in percent. Null when the register does not declare it. + */ + public function getVotingPercentage(): ?float + { + return $this->votingPercentage; + } + + /** + * Share of the company's voting rights held by the beneficial owner, in percent. Null when the register does not declare it. + */ + public function setVotingPercentage(?float $votingPercentage): self + { + $this->initialized['votingPercentage'] = true; + $this->votingPercentage = $votingPercentage; + + return $this; + } + + public function definedProperties(): array + { + return ['firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'gender' => ['gender', 'getGender', 'setGender'], 'bornOn' => ['born_on', 'getBornOn', 'setBornOn'], 'percentageOfShares' => ['percentage_of_shares', 'getPercentageOfShares', 'setPercentageOfShares'], 'votingPercentage' => ['voting_percentage', 'getVotingPercentage', 'setVotingPercentage']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataCompanyInformation.php b/generated/Model/CompanyFullAllOfDataCompanyInformation.php new file mode 100644 index 0000000..8dd7aa5 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataCompanyInformation.php @@ -0,0 +1,336 @@ +initialized); + } + /** + * Denomination of the company. + * + * @var string|null + */ + protected $name; + /** + * Trade name of the company. + * + * @var string|null + */ + protected $tradeName; + /** + * The number of the company entity. + * + * @var string|null + */ + protected $companyNumber; + /** + * Describes if a company has declined to make some of her data public (ie : legal representatives personal data), when true data might be missing from the response. + * + * @var bool|null + */ + protected $partialData; + /** + * Provides the right document type to request for a given company based on its registry. ie: company_certificate, rne_certificate or business_registration_certificate. You can use those types when calling Document Analysis. + * + * @var list|null + */ + protected $requiredDocumentType; + /** + * @var CompanyFullAllOfDataCompanyInformationLegalForm|null + */ + protected $legalForm; + /** + * Tax number of the company. + * + * @var string|null + */ + protected $vatNumber; + /** + * @var list|null + */ + protected $activities; + /** + * Company's creation date. + * + * @var \DateTime|null + */ + protected $foundedOn; + /** + * Indicates the company's cessation date if company is inactive, otherwise null. + * + * @var \DateTime|null + */ + protected $ceasedOn; + /** + * Indicates whether or not the company is still active. + * + * @var bool|null + */ + protected $active; + /** + * @var CompanyFullAllOfDataCompanyInformationCommercialRegistration|null + */ + protected $commercialRegistration; + /** + * True if the company has at least one employee. + * + * @var bool|null + */ + protected $hasWorkforce; + + /** + * Denomination of the company. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Denomination of the company. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Trade name of the company. + */ + public function getTradeName(): ?string + { + return $this->tradeName; + } + + /** + * Trade name of the company. + */ + public function setTradeName(?string $tradeName): self + { + $this->initialized['tradeName'] = true; + $this->tradeName = $tradeName; + + return $this; + } + + /** + * The number of the company entity. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * The number of the company entity. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + /** + * Describes if a company has declined to make some of her data public (ie : legal representatives personal data), when true data might be missing from the response. + */ + public function getPartialData(): ?bool + { + return $this->partialData; + } + + /** + * Describes if a company has declined to make some of her data public (ie : legal representatives personal data), when true data might be missing from the response. + */ + public function setPartialData(?bool $partialData): self + { + $this->initialized['partialData'] = true; + $this->partialData = $partialData; + + return $this; + } + + /** + * Provides the right document type to request for a given company based on its registry. ie: company_certificate, rne_certificate or business_registration_certificate. You can use those types when calling Document Analysis. + * + * @return list|null + */ + public function getRequiredDocumentType(): ?array + { + return $this->requiredDocumentType; + } + + /** + * Provides the right document type to request for a given company based on its registry. ie: company_certificate, rne_certificate or business_registration_certificate. You can use those types when calling Document Analysis. + * + * @param list|null $requiredDocumentType + */ + public function setRequiredDocumentType(?array $requiredDocumentType): self + { + $this->initialized['requiredDocumentType'] = true; + $this->requiredDocumentType = $requiredDocumentType; + + return $this; + } + + public function getLegalForm(): ?CompanyFullAllOfDataCompanyInformationLegalForm + { + return $this->legalForm; + } + + public function setLegalForm(?CompanyFullAllOfDataCompanyInformationLegalForm $legalForm): self + { + $this->initialized['legalForm'] = true; + $this->legalForm = $legalForm; + + return $this; + } + + /** + * Tax number of the company. + */ + public function getVatNumber(): ?string + { + return $this->vatNumber; + } + + /** + * Tax number of the company. + */ + public function setVatNumber(?string $vatNumber): self + { + $this->initialized['vatNumber'] = true; + $this->vatNumber = $vatNumber; + + return $this; + } + + /** + * @return list|null + */ + public function getActivities(): ?array + { + return $this->activities; + } + + /** + * @param list|null $activities + */ + public function setActivities(?array $activities): self + { + $this->initialized['activities'] = true; + $this->activities = $activities; + + return $this; + } + + /** + * Company's creation date. + */ + public function getFoundedOn(): ?\DateTime + { + return $this->foundedOn; + } + + /** + * Company's creation date. + */ + public function setFoundedOn(?\DateTime $foundedOn): self + { + $this->initialized['foundedOn'] = true; + $this->foundedOn = $foundedOn; + + return $this; + } + + /** + * Indicates the company's cessation date if company is inactive, otherwise null. + */ + public function getCeasedOn(): ?\DateTime + { + return $this->ceasedOn; + } + + /** + * Indicates the company's cessation date if company is inactive, otherwise null. + */ + public function setCeasedOn(?\DateTime $ceasedOn): self + { + $this->initialized['ceasedOn'] = true; + $this->ceasedOn = $ceasedOn; + + return $this; + } + + /** + * Indicates whether or not the company is still active. + */ + public function getActive(): ?bool + { + return $this->active; + } + + /** + * Indicates whether or not the company is still active. + */ + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getCommercialRegistration(): ?CompanyFullAllOfDataCompanyInformationCommercialRegistration + { + return $this->commercialRegistration; + } + + public function setCommercialRegistration(?CompanyFullAllOfDataCompanyInformationCommercialRegistration $commercialRegistration): self + { + $this->initialized['commercialRegistration'] = true; + $this->commercialRegistration = $commercialRegistration; + + return $this; + } + + /** + * True if the company has at least one employee. + */ + public function getHasWorkforce(): ?bool + { + return $this->hasWorkforce; + } + + /** + * True if the company has at least one employee. + */ + public function setHasWorkforce(?bool $hasWorkforce): self + { + $this->initialized['hasWorkforce'] = true; + $this->hasWorkforce = $hasWorkforce; + + return $this; + } + + public function definedProperties(): array + { + return ['name' => ['name', 'getName', 'setName'], 'tradeName' => ['trade_name', 'getTradeName', 'setTradeName'], 'companyNumber' => ['company_number', 'getCompanyNumber', 'setCompanyNumber'], 'partialData' => ['partial_data', 'getPartialData', 'setPartialData'], 'requiredDocumentType' => ['required_document_type', 'getRequiredDocumentType', 'setRequiredDocumentType'], 'legalForm' => ['legal_form', 'getLegalForm', 'setLegalForm'], 'vatNumber' => ['vat_number', 'getVatNumber', 'setVatNumber'], 'activities' => ['activities', 'getActivities', 'setActivities'], 'foundedOn' => ['founded_on', 'getFoundedOn', 'setFoundedOn'], 'ceasedOn' => ['ceased_on', 'getCeasedOn', 'setCeasedOn'], 'active' => ['active', 'getActive', 'setActive'], 'commercialRegistration' => ['commercial_registration', 'getCommercialRegistration', 'setCommercialRegistration'], 'hasWorkforce' => ['has_workforce', 'getHasWorkforce', 'setHasWorkforce']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataCompanyInformationActivities.php b/generated/Model/CompanyFullAllOfDataCompanyInformationActivities.php new file mode 100644 index 0000000..86e480f --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataCompanyInformationActivities.php @@ -0,0 +1,100 @@ +initialized); + } + /** + * Activity code. + * + * @var string|null + */ + protected $code; + /** + * Activity name. + * + * @var string|null + */ + protected $description; + /** + * Activity classification. + * + * @var string|null + */ + protected $classification; + + /** + * Activity code. + */ + public function getCode(): ?string + { + return $this->code; + } + + /** + * Activity code. + */ + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + /** + * Activity name. + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Activity name. + */ + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * Activity classification. + */ + public function getClassification(): ?string + { + return $this->classification; + } + + /** + * Activity classification. + */ + public function setClassification(?string $classification): self + { + $this->initialized['classification'] = true; + $this->classification = $classification; + + return $this; + } + + public function definedProperties(): array + { + return ['code' => ['code', 'getCode', 'setCode'], 'description' => ['description', 'getDescription', 'setDescription'], 'classification' => ['classification', 'getClassification', 'setClassification']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataCompanyInformationCommercialRegistration.php b/generated/Model/CompanyFullAllOfDataCompanyInformationCommercialRegistration.php new file mode 100644 index 0000000..e8dfbfe --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataCompanyInformationCommercialRegistration.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Indicates the location of the company's commercial register. + * + * @var string|null + */ + protected $location; + /** + * Indicates the company's registration date in the commercial register. + * + * @var \DateTime|null + */ + protected $registeredOn; + + /** + * Indicates the location of the company's commercial register. + */ + public function getLocation(): ?string + { + return $this->location; + } + + /** + * Indicates the location of the company's commercial register. + */ + public function setLocation(?string $location): self + { + $this->initialized['location'] = true; + $this->location = $location; + + return $this; + } + + /** + * Indicates the company's registration date in the commercial register. + */ + public function getRegisteredOn(): ?\DateTime + { + return $this->registeredOn; + } + + /** + * Indicates the company's registration date in the commercial register. + */ + public function setRegisteredOn(?\DateTime $registeredOn): self + { + $this->initialized['registeredOn'] = true; + $this->registeredOn = $registeredOn; + + return $this; + } + + public function definedProperties(): array + { + return ['location' => ['location', 'getLocation', 'setLocation'], 'registeredOn' => ['registered_on', 'getRegisteredOn', 'setRegisteredOn']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataCompanyInformationLegalForm.php b/generated/Model/CompanyFullAllOfDataCompanyInformationLegalForm.php new file mode 100644 index 0000000..92cd2f7 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataCompanyInformationLegalForm.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Legal form code (ISO 20275). + * + * @var string|null + */ + protected $code; + /** + * Local legal form name. + * + * @var string|null + */ + protected $description; + + /** + * Legal form code (ISO 20275). + */ + public function getCode(): ?string + { + return $this->code; + } + + /** + * Legal form code (ISO 20275). + */ + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + /** + * Local legal form name. + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Local legal form name. + */ + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + public function definedProperties(): array + { + return ['code' => ['code', 'getCode', 'setCode'], 'description' => ['description', 'getDescription', 'setDescription']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataExtractedFromDocument.php b/generated/Model/CompanyFullAllOfDataExtractedFromDocument.php new file mode 100644 index 0000000..1595604 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataExtractedFromDocument.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Company number extracted from the document. + * + * @var string|null + */ + protected $companyNumber; + /** + * Date when the document was issued. + * + * @var \DateTime|null + */ + protected $issuedOn; + + /** + * Company number extracted from the document. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * Company number extracted from the document. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + /** + * Date when the document was issued. + */ + public function getIssuedOn(): ?\DateTime + { + return $this->issuedOn; + } + + /** + * Date when the document was issued. + */ + public function setIssuedOn(?\DateTime $issuedOn): self + { + $this->initialized['issuedOn'] = true; + $this->issuedOn = $issuedOn; + + return $this; + } + + public function definedProperties(): array + { + return ['companyNumber' => ['company_number', 'getCompanyNumber', 'setCompanyNumber'], 'issuedOn' => ['issued_on', 'getIssuedOn', 'setIssuedOn']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataHeadquarter.php b/generated/Model/CompanyFullAllOfDataHeadquarter.php new file mode 100644 index 0000000..2988465 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataHeadquarter.php @@ -0,0 +1,110 @@ +initialized); + } + /** + * @var string|null + */ + protected $addressLine1; + /** + * @var string|null + */ + protected $addressLine2; + /** + * @var string|null + */ + protected $postalCode; + /** + * @var string|null + */ + protected $city; + /** + * @var string|null + */ + protected $countryCode; + + public function getAddressLine1(): ?string + { + return $this->addressLine1; + } + + public function setAddressLine1(?string $addressLine1): self + { + $this->initialized['addressLine1'] = true; + $this->addressLine1 = $addressLine1; + + return $this; + } + + public function getAddressLine2(): ?string + { + return $this->addressLine2; + } + + public function setAddressLine2(?string $addressLine2): self + { + $this->initialized['addressLine2'] = true; + $this->addressLine2 = $addressLine2; + + return $this; + } + + public function getPostalCode(): ?string + { + return $this->postalCode; + } + + public function setPostalCode(?string $postalCode): self + { + $this->initialized['postalCode'] = true; + $this->postalCode = $postalCode; + + return $this; + } + + public function getCity(): ?string + { + return $this->city; + } + + public function setCity(?string $city): self + { + $this->initialized['city'] = true; + $this->city = $city; + + return $this; + } + + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + public function definedProperties(): array + { + return ['addressLine1' => ['address_line_1', 'getAddressLine1', 'setAddressLine1'], 'addressLine2' => ['address_line_2', 'getAddressLine2', 'setAddressLine2'], 'postalCode' => ['postal_code', 'getPostalCode', 'setPostalCode'], 'city' => ['city', 'getCity', 'setCity'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode']]; + } +} diff --git a/generated/Model/CompanyFullAllOfDataLegalRepresentatives.php b/generated/Model/CompanyFullAllOfDataLegalRepresentatives.php new file mode 100644 index 0000000..2c60ef5 --- /dev/null +++ b/generated/Model/CompanyFullAllOfDataLegalRepresentatives.php @@ -0,0 +1,225 @@ +initialized); + } + /** + * The representative's role within the company. + * + * @var string|null + */ + protected $title; + /** + * Indicates whether the representative is a natural person or a legal entity. + * + * @var string|null + */ + protected $type; + /** + * The representative's first name in case of a natural person, otherwise null. + * + * @var string|null + */ + protected $firstName; + /** + * The representative's last name in case of a natural person, otherwise null. + * + * @var string|null + */ + protected $lastName; + /** + * The representative's birth name in case of a natural person, otherwise null. + * + * @var string|null + */ + protected $birthName; + /** + * The representative's birthdate in case of a natural person, otherwise null. + * + * @var \DateTime|null + */ + protected $bornOn; + /** + * The representative's company name in case of a legal person, otherwise null. + * + * @var string|null + */ + protected $companyName; + /** + * The representative's company number in case of a legal person, otherwise null. + * + * @var string|null + */ + protected $companyNumber; + + /** + * The representative's role within the company. + */ + public function getTitle(): ?string + { + return $this->title; + } + + /** + * The representative's role within the company. + */ + public function setTitle(?string $title): self + { + $this->initialized['title'] = true; + $this->title = $title; + + return $this; + } + + /** + * Indicates whether the representative is a natural person or a legal entity. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Indicates whether the representative is a natural person or a legal entity. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * The representative's first name in case of a natural person, otherwise null. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * The representative's first name in case of a natural person, otherwise null. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * The representative's last name in case of a natural person, otherwise null. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * The representative's last name in case of a natural person, otherwise null. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * The representative's birth name in case of a natural person, otherwise null. + */ + public function getBirthName(): ?string + { + return $this->birthName; + } + + /** + * The representative's birth name in case of a natural person, otherwise null. + */ + public function setBirthName(?string $birthName): self + { + $this->initialized['birthName'] = true; + $this->birthName = $birthName; + + return $this; + } + + /** + * The representative's birthdate in case of a natural person, otherwise null. + */ + public function getBornOn(): ?\DateTime + { + return $this->bornOn; + } + + /** + * The representative's birthdate in case of a natural person, otherwise null. + */ + public function setBornOn(?\DateTime $bornOn): self + { + $this->initialized['bornOn'] = true; + $this->bornOn = $bornOn; + + return $this; + } + + /** + * The representative's company name in case of a legal person, otherwise null. + */ + public function getCompanyName(): ?string + { + return $this->companyName; + } + + /** + * The representative's company name in case of a legal person, otherwise null. + */ + public function setCompanyName(?string $companyName): self + { + $this->initialized['companyName'] = true; + $this->companyName = $companyName; + + return $this; + } + + /** + * The representative's company number in case of a legal person, otherwise null. + */ + public function getCompanyNumber(): ?string + { + return $this->companyNumber; + } + + /** + * The representative's company number in case of a legal person, otherwise null. + */ + public function setCompanyNumber(?string $companyNumber): self + { + $this->initialized['companyNumber'] = true; + $this->companyNumber = $companyNumber; + + return $this; + } + + public function definedProperties(): array + { + return ['title' => ['title', 'getTitle', 'setTitle'], 'type' => ['type', 'getType', 'setType'], 'firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'birthName' => ['birth_name', 'getBirthName', 'setBirthName'], 'bornOn' => ['born_on', 'getBornOn', 'setBornOn'], 'companyName' => ['company_name', 'getCompanyName', 'setCompanyName'], 'companyNumber' => ['company_number', 'getCompanyNumber', 'setCompanyNumber']]; + } +} diff --git a/generated/Model/CompanyMeta.php b/generated/Model/CompanyMeta.php new file mode 100644 index 0000000..91ceebb --- /dev/null +++ b/generated/Model/CompanyMeta.php @@ -0,0 +1,259 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the verification has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Creation date of the Company Verification. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Company Verification. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Company Verification. + * + * @var string|null + */ + protected $status; + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the verification has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Creation date of the Company Verification. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Company Verification. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Company Verification. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Company Verification. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Company Verification. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Company Verification. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the company data has been anonymized. + * If set to `true`, all fields in the `data` field are set to NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId']]; + } +} diff --git a/generated/Model/Consumption.php b/generated/Model/Consumption.php index 06a8c19..25ed574 100644 --- a/generated/Model/Consumption.php +++ b/generated/Model/Consumption.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Consumption extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Consumption implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -64,4 +68,9 @@ public function setConnector(?ConsumptionApp $connector): self return $this; } + + public function definedProperties(): array + { + return ['app' => ['app', 'getApp', 'setApp'], 'api' => ['api', 'getApi', 'setApi'], 'connector' => ['connector', 'getConnector', 'setConnector']]; + } } diff --git a/generated/Model/ConsumptionApi.php b/generated/Model/ConsumptionApi.php index 17d1daf..83914bb 100644 --- a/generated/Model/ConsumptionApi.php +++ b/generated/Model/ConsumptionApi.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ConsumptionApi extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ConsumptionApi implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -115,4 +119,9 @@ public function setQualifiedElectronicSignatureIdentificationMode(?ConsumptionAp return $this; } + + public function definedProperties(): array + { + return ['electronicSignature' => ['electronic_signature', 'getElectronicSignature', 'setElectronicSignature'], 'advancedElectronicSignature' => ['advanced_electronic_signature', 'getAdvancedElectronicSignature', 'setAdvancedElectronicSignature'], 'advancedElectronicSignatureWithQualifiedCertificate' => ['advanced_electronic_signature_with_qualified_certificate', 'getAdvancedElectronicSignatureWithQualifiedCertificate', 'setAdvancedElectronicSignatureWithQualifiedCertificate'], 'electronicSeal' => ['electronic_seal', 'getElectronicSeal', 'setElectronicSeal'], 'advancedElectronicSeal' => ['advanced_electronic_seal', 'getAdvancedElectronicSeal', 'setAdvancedElectronicSeal'], 'qualifiedElectronicSignatureIdentificationMode' => ['qualified_electronic_signature_identification_mode', 'getQualifiedElectronicSignatureIdentificationMode', 'setQualifiedElectronicSignatureIdentificationMode']]; + } } diff --git a/generated/Model/ConsumptionApp.php b/generated/Model/ConsumptionApp.php index e434019..7978fd8 100644 --- a/generated/Model/ConsumptionApp.php +++ b/generated/Model/ConsumptionApp.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ConsumptionApp extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ConsumptionApp implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -81,4 +85,9 @@ public function setQualifiedElectronicSignatureIdentificationMode(?ConsumptionAp return $this; } + + public function definedProperties(): array + { + return ['electronicSignature' => ['electronic_signature', 'getElectronicSignature', 'setElectronicSignature'], 'advancedElectronicSignature' => ['advanced_electronic_signature', 'getAdvancedElectronicSignature', 'setAdvancedElectronicSignature'], 'advancedElectronicSignatureWithQualifiedCertificate' => ['advanced_electronic_signature_with_qualified_certificate', 'getAdvancedElectronicSignatureWithQualifiedCertificate', 'setAdvancedElectronicSignatureWithQualifiedCertificate'], 'qualifiedElectronicSignatureIdentificationMode' => ['qualified_electronic_signature_identification_mode', 'getQualifiedElectronicSignatureIdentificationMode', 'setQualifiedElectronicSignatureIdentificationMode']]; + } } diff --git a/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationMode.php b/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationMode.php index cb34b78..9a86da9 100644 --- a/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationMode.php +++ b/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationMode.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ConsumptionAppQualifiedElectronicSignatureIdentificationMode extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ConsumptionAppQualifiedElectronicSignatureIdentificationMode implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -47,4 +51,9 @@ public function setSavedIdentity(?int $savedIdentity): self return $this; } + + public function definedProperties(): array + { + return ['identityVerification' => ['identity_verification', 'getIdentityVerification', 'setIdentityVerification'], 'savedIdentity' => ['saved_identity', 'getSavedIdentity', 'setSavedIdentity']]; + } } diff --git a/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification.php b/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification.php index 5f78e4d..354b398 100644 --- a/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification.php +++ b/generated/Model/ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ConsumptionAppQualifiedElectronicSignatureIdentificationModeIdentityVerification implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -21,6 +25,10 @@ public function isInitialized($property): bool * @var int|null */ protected $rejected; + /** + * @var int|null + */ + protected $expiredAfterSucceeded; public function getSucceeded(): ?int { @@ -47,4 +55,22 @@ public function setRejected(?int $rejected): self return $this; } + + public function getExpiredAfterSucceeded(): ?int + { + return $this->expiredAfterSucceeded; + } + + public function setExpiredAfterSucceeded(?int $expiredAfterSucceeded): self + { + $this->initialized['expiredAfterSucceeded'] = true; + $this->expiredAfterSucceeded = $expiredAfterSucceeded; + + return $this; + } + + public function definedProperties(): array + { + return ['succeeded' => ['succeeded', 'getSucceeded', 'setSucceeded'], 'rejected' => ['rejected', 'getRejected', 'setRejected'], 'expiredAfterSucceeded' => ['expired_after_succeeded', 'getExpiredAfterSucceeded', 'setExpiredAfterSucceeded']]; + } } diff --git a/generated/Model/Contact.php b/generated/Model/Contact.php index e0591d0..40ebd42 100644 --- a/generated/Model/Contact.php +++ b/generated/Model/Contact.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Contact extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Contact implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -259,4 +263,9 @@ public function setWorkspaceId(?string $workspaceId): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'email' => ['email', 'getEmail', 'setEmail'], 'locale' => ['locale', 'getLocale', 'setLocale'], 'phoneNumber' => ['phone_number', 'getPhoneNumber', 'setPhoneNumber'], 'companyName' => ['company_name', 'getCompanyName', 'setCompanyName'], 'jobTitle' => ['job_title', 'getJobTitle', 'setJobTitle'], 'addressLine1' => ['address_line_1', 'getAddressLine1', 'setAddressLine1'], 'addressLine2' => ['address_line_2', 'getAddressLine2', 'setAddressLine2'], 'addressCity' => ['address_city', 'getAddressCity', 'setAddressCity'], 'addressPostalCode' => ['address_postal_code', 'getAddressPostalCode', 'setAddressPostalCode'], 'addressCountry' => ['address_country', 'getAddressCountry', 'setAddressCountry'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/CreateApprover.php b/generated/Model/CreateApprover.php new file mode 100644 index 0000000..5bb32d6 --- /dev/null +++ b/generated/Model/CreateApprover.php @@ -0,0 +1,138 @@ +initialized); + } + /** + * Custom Text. + * + * @var CustomText|null + */ + protected $customText; + /** + * ID of the recipient this one must follow in an ordered flow; they will only be asked to act after that recipient. + * When `custom_recipient_order` is enabled, this can reference any approver or signer. + * When `custom_recipient_order` is disabled, the referenced ID must be an approver. `ordered_approvers` must be enabled on the Signature Request. + * + * @var string|null + */ + protected $insertAfterId; + /** + * ID of another recipient (Approver or Signer); both will be allowed to act in parallel in an ordered flow. + * Only available when `custom_recipient_order` is enabled. + * + * @var string|null + */ + protected $groupWithId; + /** + * List of Document IDs not visible to this Recipient. When omitted, the Recipient can see all Documents. Only available when the document_visibility feature is enabled on the organization. + * + * @var list|null + */ + protected $excludedDocuments; + + /** + * Custom Text. + */ + public function getCustomText(): ?CustomText + { + return $this->customText; + } + + /** + * Custom Text. + */ + public function setCustomText(?CustomText $customText): self + { + $this->initialized['customText'] = true; + $this->customText = $customText; + + return $this; + } + + /** + * ID of the recipient this one must follow in an ordered flow; they will only be asked to act after that recipient. + * When `custom_recipient_order` is enabled, this can reference any approver or signer. + * When `custom_recipient_order` is disabled, the referenced ID must be an approver. `ordered_approvers` must be enabled on the Signature Request. + */ + public function getInsertAfterId(): ?string + { + return $this->insertAfterId; + } + + /** + * ID of the recipient this one must follow in an ordered flow; they will only be asked to act after that recipient. + * When `custom_recipient_order` is enabled, this can reference any approver or signer. + * When `custom_recipient_order` is disabled, the referenced ID must be an approver. `ordered_approvers` must be enabled on the Signature Request. + */ + public function setInsertAfterId(?string $insertAfterId): self + { + $this->initialized['insertAfterId'] = true; + $this->insertAfterId = $insertAfterId; + + return $this; + } + + /** + * ID of another recipient (Approver or Signer); both will be allowed to act in parallel in an ordered flow. + * Only available when `custom_recipient_order` is enabled. + */ + public function getGroupWithId(): ?string + { + return $this->groupWithId; + } + + /** + * ID of another recipient (Approver or Signer); both will be allowed to act in parallel in an ordered flow. + * Only available when `custom_recipient_order` is enabled. + */ + public function setGroupWithId(?string $groupWithId): self + { + $this->initialized['groupWithId'] = true; + $this->groupWithId = $groupWithId; + + return $this; + } + + /** + * List of Document IDs not visible to this Recipient. When omitted, the Recipient can see all Documents. Only available when the document_visibility feature is enabled on the organization. + * + * @return list|null + */ + public function getExcludedDocuments(): ?array + { + return $this->excludedDocuments; + } + + /** + * List of Document IDs not visible to this Recipient. When omitted, the Recipient can see all Documents. Only available when the document_visibility feature is enabled on the organization. + * + * @param list|null $excludedDocuments + */ + public function setExcludedDocuments(?array $excludedDocuments): self + { + $this->initialized['excludedDocuments'] = true; + $this->excludedDocuments = $excludedDocuments; + + return $this; + } + + public function definedProperties(): array + { + return ['customText' => ['custom_text', 'getCustomText', 'setCustomText'], 'insertAfterId' => ['insert_after_id', 'getInsertAfterId', 'setInsertAfterId'], 'groupWithId' => ['group_with_id', 'getGroupWithId', 'setGroupWithId'], 'excludedDocuments' => ['excluded_documents', 'getExcludedDocuments', 'setExcludedDocuments']]; + } +} diff --git a/generated/Model/CreateBankAccountVerification.php b/generated/Model/CreateBankAccountVerification.php deleted file mode 100644 index 717adf9..0000000 --- a/generated/Model/CreateBankAccountVerification.php +++ /dev/null @@ -1,166 +0,0 @@ -initialized); - } - /** - * Please provide the holder first name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - * - * @var string|null - */ - protected $firstName; - /** - * Please provide the holder last name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - * - * @var string|null - */ - protected $lastName; - /** - * Binary file. - * - * @var string|null - */ - protected $file; - /** - * International Bank Account Number (IBAN). - * - * @var string|null - */ - protected $iban; - /** - * Business Identifier Codes (BIC). - * - * @var string|null - */ - protected $bic; - /** - * Please provide the legal entity name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. If provided, fields "first_name" and "last_name" are ignored. - * - * @var string|null - */ - protected $legalEntityName; - - /** - * Please provide the holder first name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - */ - public function getFirstName(): ?string - { - return $this->firstName; - } - - /** - * Please provide the holder first name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - */ - public function setFirstName(?string $firstName): self - { - $this->initialized['firstName'] = true; - $this->firstName = $firstName; - - return $this; - } - - /** - * Please provide the holder last name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - */ - public function getLastName(): ?string - { - return $this->lastName; - } - - /** - * Please provide the holder last name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. One exception: if the document mentions an honorary title, please don't provide it as part of the name. Ignored if field "legal_entity_name" is provided. - */ - public function setLastName(?string $lastName): self - { - $this->initialized['lastName'] = true; - $this->lastName = $lastName; - - return $this; - } - - /** - * Binary file. - */ - public function getFile(): ?string - { - return $this->file; - } - - /** - * Binary file. - */ - public function setFile(?string $file): self - { - $this->initialized['file'] = true; - $this->file = $file; - - return $this; - } - - /** - * International Bank Account Number (IBAN). - */ - public function getIban(): ?string - { - return $this->iban; - } - - /** - * International Bank Account Number (IBAN). - */ - public function setIban(?string $iban): self - { - $this->initialized['iban'] = true; - $this->iban = $iban; - - return $this; - } - - /** - * Business Identifier Codes (BIC). - */ - public function getBic(): ?string - { - return $this->bic; - } - - /** - * Business Identifier Codes (BIC). - */ - public function setBic(?string $bic): self - { - $this->initialized['bic'] = true; - $this->bic = $bic; - - return $this; - } - - /** - * Please provide the legal entity name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. If provided, fields "first_name" and "last_name" are ignored. - */ - public function getLegalEntityName(): ?string - { - return $this->legalEntityName; - } - - /** - * Please provide the legal entity name, exactly as it appears on the bank account document. Please match it exactly, with the same characters, same case. If provided, fields "first_name" and "last_name" are ignored. - */ - public function setLegalEntityName(?string $legalEntityName): self - { - $this->initialized['legalEntityName'] = true; - $this->legalEntityName = $legalEntityName; - - return $this; - } -} diff --git a/generated/Model/CreateContact.php b/generated/Model/CreateContact.php index ca1a92e..a7050f0 100644 --- a/generated/Model/CreateContact.php +++ b/generated/Model/CreateContact.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateContact extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateContact implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -38,43 +42,43 @@ public function isInitialized($property): bool */ protected $phoneNumber; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $companyName; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $jobTitle; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $addressLine1; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $addressLine2; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $addressCity; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ protected $addressPostalCode; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ @@ -162,7 +166,7 @@ public function setPhoneNumber(?string $phoneNumber): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getCompanyName(): ?string { @@ -170,7 +174,7 @@ public function getCompanyName(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setCompanyName(?string $companyName): self { @@ -181,7 +185,7 @@ public function setCompanyName(?string $companyName): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getJobTitle(): ?string { @@ -189,7 +193,7 @@ public function getJobTitle(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setJobTitle(?string $jobTitle): self { @@ -200,7 +204,7 @@ public function setJobTitle(?string $jobTitle): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getAddressLine1(): ?string { @@ -208,7 +212,7 @@ public function getAddressLine1(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setAddressLine1(?string $addressLine1): self { @@ -219,7 +223,7 @@ public function setAddressLine1(?string $addressLine1): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getAddressLine2(): ?string { @@ -227,7 +231,7 @@ public function getAddressLine2(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setAddressLine2(?string $addressLine2): self { @@ -238,7 +242,7 @@ public function setAddressLine2(?string $addressLine2): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getAddressCity(): ?string { @@ -246,7 +250,7 @@ public function getAddressCity(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setAddressCity(?string $addressCity): self { @@ -257,7 +261,7 @@ public function setAddressCity(?string $addressCity): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getAddressPostalCode(): ?string { @@ -265,7 +269,7 @@ public function getAddressPostalCode(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setAddressPostalCode(?string $addressPostalCode): self { @@ -276,7 +280,7 @@ public function setAddressPostalCode(?string $addressPostalCode): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getAddressCountry(): ?string { @@ -284,7 +288,7 @@ public function getAddressCountry(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setAddressCountry(?string $addressCountry): self { @@ -306,4 +310,9 @@ public function setWorkspaceId(?string $workspaceId): self return $this; } + + public function definedProperties(): array + { + return ['firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'email' => ['email', 'getEmail', 'setEmail'], 'locale' => ['locale', 'getLocale', 'setLocale'], 'phoneNumber' => ['phone_number', 'getPhoneNumber', 'setPhoneNumber'], 'companyName' => ['company_name', 'getCompanyName', 'setCompanyName'], 'jobTitle' => ['job_title', 'getJobTitle', 'setJobTitle'], 'addressLine1' => ['address_line_1', 'getAddressLine1', 'setAddressLine1'], 'addressLine2' => ['address_line_2', 'getAddressLine2', 'setAddressLine2'], 'addressCity' => ['address_city', 'getAddressCity', 'setAddressCity'], 'addressPostalCode' => ['address_postal_code', 'getAddressPostalCode', 'setAddressPostalCode'], 'addressCountry' => ['address_country', 'getAddressCountry', 'setAddressCountry'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/CreateCustomExperience.php b/generated/Model/CreateCustomExperience.php index 3b2de1e..24bd598 100644 --- a/generated/Model/CreateCustomExperience.php +++ b/generated/Model/CreateCustomExperience.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateCustomExperience extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateCustomExperience implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,7 +18,7 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ @@ -71,13 +75,47 @@ public function isInitialized($property): bool * @var bool|null */ protected $emailExpirationTextDisabled = false; + /** + * @var bool|null + */ + protected $recipientsActivityDisabled = true; + /** + * If true, signers won't be able to download documents before signing. + * + * @var bool|null + */ + protected $downloadDocumentsDisabled = false; + /** + * If true and the request contains more than 1 document, signers must read each document before moving to the next. + * + * @var bool|null + */ + protected $documentNavigationDisabled = false; /** * @var CreateCustomExperienceRedirectUrls|null */ protected $redirectUrls; + /** + * @var CreateCustomExperienceEmbeddedPreparationNavigationBar|null + */ + protected $embeddedPreparationNavigationBar; + /** + * Determines the display layout of the logo. Possible values are: + * - `round`: Displays the logo in a circular format. + * - `original`: Displays the logo in its original shape. + * + * @var string|null + */ + protected $logoLayout; + /** + * If set, scopes the Custom Experience to a single Workspace. If null (default), the Custom Experience is Organization-wide. + * + * @var string|null + */ + protected $workspaceId; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getName(): ?string { @@ -85,7 +123,7 @@ public function getName(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setName(?string $name): self { @@ -268,6 +306,57 @@ public function setEmailExpirationTextDisabled(?bool $emailExpirationTextDisable return $this; } + public function getRecipientsActivityDisabled(): ?bool + { + return $this->recipientsActivityDisabled; + } + + public function setRecipientsActivityDisabled(?bool $recipientsActivityDisabled): self + { + $this->initialized['recipientsActivityDisabled'] = true; + $this->recipientsActivityDisabled = $recipientsActivityDisabled; + + return $this; + } + + /** + * If true, signers won't be able to download documents before signing. + */ + public function getDownloadDocumentsDisabled(): ?bool + { + return $this->downloadDocumentsDisabled; + } + + /** + * If true, signers won't be able to download documents before signing. + */ + public function setDownloadDocumentsDisabled(?bool $downloadDocumentsDisabled): self + { + $this->initialized['downloadDocumentsDisabled'] = true; + $this->downloadDocumentsDisabled = $downloadDocumentsDisabled; + + return $this; + } + + /** + * If true and the request contains more than 1 document, signers must read each document before moving to the next. + */ + public function getDocumentNavigationDisabled(): ?bool + { + return $this->documentNavigationDisabled; + } + + /** + * If true and the request contains more than 1 document, signers must read each document before moving to the next. + */ + public function setDocumentNavigationDisabled(?bool $documentNavigationDisabled): self + { + $this->initialized['documentNavigationDisabled'] = true; + $this->documentNavigationDisabled = $documentNavigationDisabled; + + return $this; + } + public function getRedirectUrls(): ?CreateCustomExperienceRedirectUrls { return $this->redirectUrls; @@ -280,4 +369,64 @@ public function setRedirectUrls(?CreateCustomExperienceRedirectUrls $redirectUrl return $this; } + + public function getEmbeddedPreparationNavigationBar(): ?CreateCustomExperienceEmbeddedPreparationNavigationBar + { + return $this->embeddedPreparationNavigationBar; + } + + public function setEmbeddedPreparationNavigationBar(?CreateCustomExperienceEmbeddedPreparationNavigationBar $embeddedPreparationNavigationBar): self + { + $this->initialized['embeddedPreparationNavigationBar'] = true; + $this->embeddedPreparationNavigationBar = $embeddedPreparationNavigationBar; + + return $this; + } + + /** + * Determines the display layout of the logo. Possible values are: + * - `round`: Displays the logo in a circular format. + * - `original`: Displays the logo in its original shape. + */ + public function getLogoLayout(): ?string + { + return $this->logoLayout; + } + + /** + * Determines the display layout of the logo. Possible values are: + * - `round`: Displays the logo in a circular format. + * - `original`: Displays the logo in its original shape. + */ + public function setLogoLayout(?string $logoLayout): self + { + $this->initialized['logoLayout'] = true; + $this->logoLayout = $logoLayout; + + return $this; + } + + /** + * If set, scopes the Custom Experience to a single Workspace. If null (default), the Custom Experience is Organization-wide. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * If set, scopes the Custom Experience to a single Workspace. If null (default), the Custom Experience is Organization-wide. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + public function definedProperties(): array + { + return ['name' => ['name', 'getName', 'setName'], 'landingPageDisabled' => ['landing_page_disabled', 'getLandingPageDisabled', 'setLandingPageDisabled'], 'sidePanelDisabled' => ['side_panel_disabled', 'getSidePanelDisabled', 'setSidePanelDisabled'], 'backgroundColor' => ['background_color', 'getBackgroundColor', 'setBackgroundColor'], 'buttonColor' => ['button_color', 'getButtonColor', 'setButtonColor'], 'textColor' => ['text_color', 'getTextColor', 'setTextColor'], 'textButtonColor' => ['text_button_color', 'getTextButtonColor', 'setTextButtonColor'], 'disabledNotifications' => ['disabled_notifications', 'getDisabledNotifications', 'setDisabledNotifications'], 'emailLogoDisabled' => ['email_logo_disabled', 'getEmailLogoDisabled', 'setEmailLogoDisabled'], 'emailHeaderTextDisabled' => ['email_header_text_disabled', 'getEmailHeaderTextDisabled', 'setEmailHeaderTextDisabled'], 'emailFooterSignatureDisabled' => ['email_footer_signature_disabled', 'getEmailFooterSignatureDisabled', 'setEmailFooterSignatureDisabled'], 'emailExpirationTextDisabled' => ['email_expiration_text_disabled', 'getEmailExpirationTextDisabled', 'setEmailExpirationTextDisabled'], 'recipientsActivityDisabled' => ['recipients_activity_disabled', 'getRecipientsActivityDisabled', 'setRecipientsActivityDisabled'], 'downloadDocumentsDisabled' => ['download_documents_disabled', 'getDownloadDocumentsDisabled', 'setDownloadDocumentsDisabled'], 'documentNavigationDisabled' => ['document_navigation_disabled', 'getDocumentNavigationDisabled', 'setDocumentNavigationDisabled'], 'redirectUrls' => ['redirect_urls', 'getRedirectUrls', 'setRedirectUrls'], 'embeddedPreparationNavigationBar' => ['embedded_preparation_navigation_bar', 'getEmbeddedPreparationNavigationBar', 'setEmbeddedPreparationNavigationBar'], 'logoLayout' => ['logo_layout', 'getLogoLayout', 'setLogoLayout'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/CreateCustomExperienceEmbeddedPreparationNavigationBar.php b/generated/Model/CreateCustomExperienceEmbeddedPreparationNavigationBar.php new file mode 100644 index 0000000..a888724 --- /dev/null +++ b/generated/Model/CreateCustomExperienceEmbeddedPreparationNavigationBar.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * If true, the `Done` button is displayed in the navigation bar. + * + * @var bool|null + */ + protected $doneButton = true; + /** + * If true, the `Back` button is displayed in the navigation bar. + * + * @var bool|null + */ + protected $backButton = false; + + /** + * If true, the `Done` button is displayed in the navigation bar. + */ + public function getDoneButton(): ?bool + { + return $this->doneButton; + } + + /** + * If true, the `Done` button is displayed in the navigation bar. + */ + public function setDoneButton(?bool $doneButton): self + { + $this->initialized['doneButton'] = true; + $this->doneButton = $doneButton; + + return $this; + } + + /** + * If true, the `Back` button is displayed in the navigation bar. + */ + public function getBackButton(): ?bool + { + return $this->backButton; + } + + /** + * If true, the `Back` button is displayed in the navigation bar. + */ + public function setBackButton(?bool $backButton): self + { + $this->initialized['backButton'] = true; + $this->backButton = $backButton; + + return $this; + } + + public function definedProperties(): array + { + return ['doneButton' => ['done_button', 'getDoneButton', 'setDoneButton'], 'backButton' => ['back_button', 'getBackButton', 'setBackButton']]; + } +} diff --git a/generated/Model/CreateCustomExperienceRedirectUrls.php b/generated/Model/CreateCustomExperienceRedirectUrls.php index 390cd6a..4935980 100644 --- a/generated/Model/CreateCustomExperienceRedirectUrls.php +++ b/generated/Model/CreateCustomExperienceRedirectUrls.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateCustomExperienceRedirectUrls extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateCustomExperienceRedirectUrls implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -64,4 +68,9 @@ public function setDecline(?string $decline): self return $this; } + + public function definedProperties(): array + { + return ['success' => ['success', 'getSuccess', 'setSuccess'], 'error' => ['error', 'getError', 'setError'], 'decline' => ['decline', 'getDecline', 'setDecline']]; + } } diff --git a/generated/Model/CreateCustomProperty.php b/generated/Model/CreateCustomProperty.php new file mode 100644 index 0000000..037df02 --- /dev/null +++ b/generated/Model/CreateCustomProperty.php @@ -0,0 +1,174 @@ +initialized); + } + /** + * Display name of the property. + * + * @var string|null + */ + protected $name; + /** + * Field type. Cannot be changed after creation. + * + * @var string|null + */ + protected $type; + /** + * For list type only. Whether multiple options can be selected. + * + * @var bool|null + */ + protected $multipleAnswerAllowed = false; + /** + * For text type only. Default text pre-filled on new SRs. + * + * @var string|null + */ + protected $defaultValue; + /** + * For list type only. Selectable options. At least one required. + * + * @var list|null + */ + protected $options; + /** + * List of Workspaces that define where the Custom Property is scoped. If the array is empty, the Custom Property is available to all Workspaces. + * + * @var list|null + */ + protected $workspaces; + + /** + * Display name of the property. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Display name of the property. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Field type. Cannot be changed after creation. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Field type. Cannot be changed after creation. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * For list type only. Whether multiple options can be selected. + */ + public function getMultipleAnswerAllowed(): ?bool + { + return $this->multipleAnswerAllowed; + } + + /** + * For list type only. Whether multiple options can be selected. + */ + public function setMultipleAnswerAllowed(?bool $multipleAnswerAllowed): self + { + $this->initialized['multipleAnswerAllowed'] = true; + $this->multipleAnswerAllowed = $multipleAnswerAllowed; + + return $this; + } + + /** + * For text type only. Default text pre-filled on new SRs. + */ + public function getDefaultValue(): ?string + { + return $this->defaultValue; + } + + /** + * For text type only. Default text pre-filled on new SRs. + */ + public function setDefaultValue(?string $defaultValue): self + { + $this->initialized['defaultValue'] = true; + $this->defaultValue = $defaultValue; + + return $this; + } + + /** + * For list type only. Selectable options. At least one required. + * + * @return list|null + */ + public function getOptions(): ?array + { + return $this->options; + } + + /** + * For list type only. Selectable options. At least one required. + * + * @param list|null $options + */ + public function setOptions(?array $options): self + { + $this->initialized['options'] = true; + $this->options = $options; + + return $this; + } + + /** + * List of Workspaces that define where the Custom Property is scoped. If the array is empty, the Custom Property is available to all Workspaces. + * + * @return list|null + */ + public function getWorkspaces(): ?array + { + return $this->workspaces; + } + + /** + * List of Workspaces that define where the Custom Property is scoped. If the array is empty, the Custom Property is available to all Workspaces. + * + * @param list|null $workspaces + */ + public function setWorkspaces(?array $workspaces): self + { + $this->initialized['workspaces'] = true; + $this->workspaces = $workspaces; + + return $this; + } +} diff --git a/generated/Model/CreateDocumentFromJson.php b/generated/Model/CreateDocumentFromJson.php index 285080c..a15a5e4 100644 --- a/generated/Model/CreateDocumentFromJson.php +++ b/generated/Model/CreateDocumentFromJson.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateDocumentFromJson extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateDocumentFromJson implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -33,6 +37,24 @@ public function isInitialized($property): bool * @var string|null */ protected $insertAfterId; + /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + * + * @var bool|null + */ + protected $parseAnchors = false; + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @var list|null + */ + protected $excludedApprovers; + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @var list|null + */ + protected $excludedSigners; /** * Id of the Electronic Seal Document. The Electronic Seal must be done to use its Electronic Seal Document. @@ -97,4 +119,74 @@ public function setInsertAfterId(?string $insertAfterId): self return $this; } + + /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + */ + public function getParseAnchors(): ?bool + { + return $this->parseAnchors; + } + + /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + */ + public function setParseAnchors(?bool $parseAnchors): self + { + $this->initialized['parseAnchors'] = true; + $this->parseAnchors = $parseAnchors; + + return $this; + } + + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @return list|null + */ + public function getExcludedApprovers(): ?array + { + return $this->excludedApprovers; + } + + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @param list|null $excludedApprovers + */ + public function setExcludedApprovers(?array $excludedApprovers): self + { + $this->initialized['excludedApprovers'] = true; + $this->excludedApprovers = $excludedApprovers; + + return $this; + } + + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @return list|null + */ + public function getExcludedSigners(): ?array + { + return $this->excludedSigners; + } + + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @param list|null $excludedSigners + */ + public function setExcludedSigners(?array $excludedSigners): self + { + $this->initialized['excludedSigners'] = true; + $this->excludedSigners = $excludedSigners; + + return $this; + } + + public function definedProperties(): array + { + return ['electronicSealDocumentId' => ['electronic_seal_document_id', 'getElectronicSealDocumentId', 'setElectronicSealDocumentId'], 'name' => ['name', 'getName', 'setName'], 'nature' => ['nature', 'getNature', 'setNature'], 'insertAfterId' => ['insert_after_id', 'getInsertAfterId', 'setInsertAfterId'], 'parseAnchors' => ['parse_anchors', 'getParseAnchors', 'setParseAnchors'], 'excludedApprovers' => ['excluded_approvers', 'getExcludedApprovers', 'setExcludedApprovers'], 'excludedSigners' => ['excluded_signers', 'getExcludedSigners', 'setExcludedSigners']]; + } } diff --git a/generated/Model/CreateDocumentFromMultipart.php b/generated/Model/CreateDocumentFromMultipart.php index 6337911..d4cb0c6 100644 --- a/generated/Model/CreateDocumentFromMultipart.php +++ b/generated/Model/CreateDocumentFromMultipart.php @@ -2,8 +2,13 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateDocumentFromMultipart extends \ArrayObject +use Psr\Http\Message\StreamInterface; +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateDocumentFromMultipart implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,12 +19,14 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Binary file. + * Binary file. Accepted formats: `PDF`, `DOCX`, `JPEG`, `JPG` and `PNG`. All files are converted to PDF upon upload. * - * @var string|null + * @var string|resource|StreamInterface|null */ protected $file; /** + * Can take two values: `signable_document` or `attachment`. Files in `JPEG`, `JPG`, and `PNG` format can only be of `attachment` nature. + * * @var string|null */ protected $nature; @@ -34,26 +41,56 @@ public function isInitialized($property): bool */ protected $password; /** - * @var InitialsArea|null + * The document name. If not set, will use the uploaded document name. This value should contain any characters except "\", "/" and can\'t start and finish with a space. + * + * @var string|null + */ + protected $name; + /** + * @var array|null */ protected $initials; /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + * + * @var bool|null + */ + protected $parseAnchors = false; + /** + * If true, flattens PDF form fields, removing their interactivity/annotations before the document is processed. + * * @var bool|null */ - protected $parseAnchors; + protected $flatten = false; + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @var list|null + */ + protected $excludedApprovers; + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @var list|null + */ + protected $excludedSigners; /** - * Binary file. + * Binary file. Accepted formats: `PDF`, `DOCX`, `JPEG`, `JPG` and `PNG`. All files are converted to PDF upon upload. + * + * @return string|resource|StreamInterface|null */ - public function getFile(): ?string + public function getFile() { return $this->file; } /** - * Binary file. + * Binary file. Accepted formats: `PDF`, `DOCX`, `JPEG`, `JPG` and `PNG`. All files are converted to PDF upon upload. + * + * @param string|resource|StreamInterface|null $file */ - public function setFile(?string $file): self + public function setFile($file): self { $this->initialized['file'] = true; $this->file = $file; @@ -61,11 +98,17 @@ public function setFile(?string $file): self return $this; } + /** + * Can take two values: `signable_document` or `attachment`. Files in `JPEG`, `JPG`, and `PNG` format can only be of `attachment` nature. + */ public function getNature(): ?string { return $this->nature; } + /** + * Can take two values: `signable_document` or `attachment`. Files in `JPEG`, `JPG`, and `PNG` format can only be of `attachment` nature. + */ public function setNature(?string $nature): self { $this->initialized['nature'] = true; @@ -106,12 +149,37 @@ public function setPassword(?string $password): self return $this; } - public function getInitials(): ?InitialsArea + /** + * The document name. If not set, will use the uploaded document name. This value should contain any characters except "\", "/" and can\'t start and finish with a space. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * The document name. If not set, will use the uploaded document name. This value should contain any characters except "\", "/" and can\'t start and finish with a space. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * @return array|null + */ + public function getInitials(): ?iterable { return $this->initials; } - public function setInitials(?InitialsArea $initials): self + /** + * @param array|null $initials + */ + public function setInitials(?iterable $initials): self { $this->initialized['initials'] = true; $this->initials = $initials; @@ -119,11 +187,17 @@ public function setInitials(?InitialsArea $initials): self return $this; } + /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + */ public function getParseAnchors(): ?bool { return $this->parseAnchors; } + /** + * If true, the system will parse the document exclusively for Signature-type Smart Anchors and automatically generate the required fields. + */ public function setParseAnchors(?bool $parseAnchors): self { $this->initialized['parseAnchors'] = true; @@ -131,4 +205,74 @@ public function setParseAnchors(?bool $parseAnchors): self return $this; } + + /** + * If true, flattens PDF form fields, removing their interactivity/annotations before the document is processed. + */ + public function getFlatten(): ?bool + { + return $this->flatten; + } + + /** + * If true, flattens PDF form fields, removing their interactivity/annotations before the document is processed. + */ + public function setFlatten(?bool $flatten): self + { + $this->initialized['flatten'] = true; + $this->flatten = $flatten; + + return $this; + } + + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @return list|null + */ + public function getExcludedApprovers(): ?array + { + return $this->excludedApprovers; + } + + /** + * List of Approver IDs who cannot see this Document. When omitted, all Approvers can see it (default). Only available when the document_visibility feature is enabled on the organization. + * + * @param list|null $excludedApprovers + */ + public function setExcludedApprovers(?array $excludedApprovers): self + { + $this->initialized['excludedApprovers'] = true; + $this->excludedApprovers = $excludedApprovers; + + return $this; + } + + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @return list|null + */ + public function getExcludedSigners(): ?array + { + return $this->excludedSigners; + } + + /** + * List of Signer IDs who cannot see this Document. When omitted, all Signers can see it (default). Requires the document_visibility feature to be enabled on the organization. + * + * @param list|null $excludedSigners + */ + public function setExcludedSigners(?array $excludedSigners): self + { + $this->initialized['excludedSigners'] = true; + $this->excludedSigners = $excludedSigners; + + return $this; + } + + public function definedProperties(): array + { + return ['file' => ['file', 'getFile', 'setFile'], 'nature' => ['nature', 'getNature', 'setNature'], 'insertAfterId' => ['insert_after_id', 'getInsertAfterId', 'setInsertAfterId'], 'password' => ['password', 'getPassword', 'setPassword'], 'name' => ['name', 'getName', 'setName'], 'initials' => ['initials', 'getInitials', 'setInitials'], 'parseAnchors' => ['parse_anchors', 'getParseAnchors', 'setParseAnchors'], 'flatten' => ['flatten', 'getFlatten', 'setFlatten'], 'excludedApprovers' => ['excluded_approvers', 'getExcludedApprovers', 'setExcludedApprovers'], 'excludedSigners' => ['excluded_signers', 'getExcludedSigners', 'setExcludedSigners']]; + } } diff --git a/generated/Model/CreateDocumentFromMultipartInitials.php b/generated/Model/CreateDocumentFromMultipartInitials.php new file mode 100644 index 0000000..2eef623 --- /dev/null +++ b/generated/Model/CreateDocumentFromMultipartInitials.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Alignment of the Initials on the document. The `left`, `right` and `center` options are aligned on top of the page by default. + * + * @var string|null + */ + protected $alignment; + /** + * Offset of the initials from the edge of the page (in pixels). The offset is from the top or bottom of the page, depending on what has been defined in the `alignment` attribute. + * + * @var int|null + */ + protected $y; + + /** + * Alignment of the Initials on the document. The `left`, `right` and `center` options are aligned on top of the page by default. + */ + public function getAlignment(): ?string + { + return $this->alignment; + } + + /** + * Alignment of the Initials on the document. The `left`, `right` and `center` options are aligned on top of the page by default. + */ + public function setAlignment(?string $alignment): self + { + $this->initialized['alignment'] = true; + $this->alignment = $alignment; + + return $this; + } + + /** + * Offset of the initials from the edge of the page (in pixels). The offset is from the top or bottom of the page, depending on what has been defined in the `alignment` attribute. + */ + public function getY(): ?int + { + return $this->y; + } + + /** + * Offset of the initials from the edge of the page (in pixels). The offset is from the top or bottom of the page, depending on what has been defined in the `alignment` attribute. + */ + public function setY(?int $y): self + { + $this->initialized['y'] = true; + $this->y = $y; + + return $this; + } + + public function definedProperties(): array + { + return ['alignment' => ['alignment', 'getAlignment', 'setAlignment'], 'y' => ['y', 'getY', 'setY']]; + } +} diff --git a/generated/Model/CreateElectronicSealDocument.php b/generated/Model/CreateElectronicSealDocument.php index f5d37cc..1986834 100644 --- a/generated/Model/CreateElectronicSealDocument.php +++ b/generated/Model/CreateElectronicSealDocument.php @@ -2,8 +2,13 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateElectronicSealDocument extends \ArrayObject +use Psr\Http\Message\StreamInterface; +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateElectronicSealDocument implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,28 +19,34 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * PDF file. + * Binary file. Accepted formats: PDF. * - * @var string|null + * @var string|resource|StreamInterface|null */ protected $file; /** + * The password required to unlock the document if it is protected. + * * @var string|null */ protected $password; /** - * PDF file. + * Binary file. Accepted formats: PDF. + * + * @return string|resource|StreamInterface|null */ - public function getFile(): ?string + public function getFile() { return $this->file; } /** - * PDF file. + * Binary file. Accepted formats: PDF. + * + * @param string|resource|StreamInterface|null $file */ - public function setFile(?string $file): self + public function setFile($file): self { $this->initialized['file'] = true; $this->file = $file; @@ -43,11 +54,17 @@ public function setFile(?string $file): self return $this; } + /** + * The password required to unlock the document if it is protected. + */ public function getPassword(): ?string { return $this->password; } + /** + * The password required to unlock the document if it is protected. + */ public function setPassword(?string $password): self { $this->initialized['password'] = true; @@ -55,4 +72,9 @@ public function setPassword(?string $password): self return $this; } + + public function definedProperties(): array + { + return ['file' => ['file', 'getFile', 'setFile'], 'password' => ['password', 'getPassword', 'setPassword']]; + } } diff --git a/generated/Model/CreateElectronicSealFieldReadOnlyTextPayload.php b/generated/Model/CreateElectronicSealFieldReadOnlyTextPayload.php index b128e0c..e456e6d 100644 --- a/generated/Model/CreateElectronicSealFieldReadOnlyTextPayload.php +++ b/generated/Model/CreateElectronicSealFieldReadOnlyTextPayload.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateElectronicSealFieldReadOnlyTextPayload extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateElectronicSealFieldReadOnlyTextPayload implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -38,6 +42,8 @@ public function isInitialized($property): bool */ protected $y; /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + * * @var string|null */ protected $text; @@ -120,11 +126,17 @@ public function setY(?int $y): self return $this; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function getText(): ?string { return $this->text; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function setText(?string $text): self { $this->initialized['text'] = true; @@ -132,4 +144,9 @@ public function setText(?string $text): self return $this; } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'text' => ['text', 'getText', 'setText']]; + } } diff --git a/generated/Model/CreateElectronicSealFieldSealPayload.php b/generated/Model/CreateElectronicSealFieldSealPayload.php index 736c8aa..cae56cd 100644 --- a/generated/Model/CreateElectronicSealFieldSealPayload.php +++ b/generated/Model/CreateElectronicSealFieldSealPayload.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateElectronicSealFieldSealPayload extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateElectronicSealFieldSealPayload implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -41,6 +45,12 @@ public function isInitialized($property): bool * @var string|null */ protected $reason; + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @var list|null + */ + protected $captions; public function getType(): ?string { @@ -132,4 +142,32 @@ public function setReason(?string $reason): self return $this; } + + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @return list|null + */ + public function getCaptions(): ?array + { + return $this->captions; + } + + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @param list|null $captions + */ + public function setCaptions(?array $captions): self + { + $this->initialized['captions'] = true; + $this->captions = $captions; + + return $this; + } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'reason' => ['reason', 'getReason', 'setReason'], 'captions' => ['captions', 'getCaptions', 'setCaptions']]; + } } diff --git a/generated/Model/CreateElectronicSealFieldSealPayloadCaptionsInner.php b/generated/Model/CreateElectronicSealFieldSealPayloadCaptionsInner.php new file mode 100644 index 0000000..9f26147 --- /dev/null +++ b/generated/Model/CreateElectronicSealFieldSealPayloadCaptionsInner.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * The caption text to display on the seal image. + * + * @var string|null + */ + protected $text; + + /** + * The caption text to display on the seal image. + */ + public function getText(): ?string + { + return $this->text; + } + + /** + * The caption text to display on the seal image. + */ + public function setText(?string $text): self + { + $this->initialized['text'] = true; + $this->text = $text; + + return $this; + } +} diff --git a/generated/Model/CreateElectronicSealImagePreviewPayload.php b/generated/Model/CreateElectronicSealImagePreviewPayload.php new file mode 100644 index 0000000..de386d6 --- /dev/null +++ b/generated/Model/CreateElectronicSealImagePreviewPayload.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * The ID of an existing Electronic Seal Image to use as the visual stamp. + * + * @var string|null + */ + protected $imageId; + /** + * The seal field dimensions and optional caption. + * + * @var CreateElectronicSealImagePreviewPayloadField|null + */ + protected $field; + + /** + * The ID of an existing Electronic Seal Image to use as the visual stamp. + */ + public function getImageId(): ?string + { + return $this->imageId; + } + + /** + * The ID of an existing Electronic Seal Image to use as the visual stamp. + */ + public function setImageId(?string $imageId): self + { + $this->initialized['imageId'] = true; + $this->imageId = $imageId; + + return $this; + } + + /** + * The seal field dimensions and optional caption. + */ + public function getField(): ?CreateElectronicSealImagePreviewPayloadField + { + return $this->field; + } + + /** + * The seal field dimensions and optional caption. + */ + public function setField(?CreateElectronicSealImagePreviewPayloadField $field): self + { + $this->initialized['field'] = true; + $this->field = $field; + + return $this; + } +} diff --git a/generated/Model/CreateElectronicSealImagePreviewPayloadField.php b/generated/Model/CreateElectronicSealImagePreviewPayloadField.php new file mode 100644 index 0000000..c17a870 --- /dev/null +++ b/generated/Model/CreateElectronicSealImagePreviewPayloadField.php @@ -0,0 +1,95 @@ +initialized); + } + /** + * Width of the seal field in pixels. + * + * @var int|null + */ + protected $width; + /** + * Height of the seal field in pixels. + * + * @var int|null + */ + protected $height; + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @var list|null + */ + protected $captions; + + /** + * Width of the seal field in pixels. + */ + public function getWidth(): ?int + { + return $this->width; + } + + /** + * Width of the seal field in pixels. + */ + public function setWidth(?int $width): self + { + $this->initialized['width'] = true; + $this->width = $width; + + return $this; + } + + /** + * Height of the seal field in pixels. + */ + public function getHeight(): ?int + { + return $this->height; + } + + /** + * Height of the seal field in pixels. + */ + public function setHeight(?int $height): self + { + $this->initialized['height'] = true; + $this->height = $height; + + return $this; + } + + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @return list|null + */ + public function getCaptions(): ?array + { + return $this->captions; + } + + /** + * Optional captions to display on the seal image. Limited to one caption per field. + * + * @param list|null $captions + */ + public function setCaptions(?array $captions): self + { + $this->initialized['captions'] = true; + $this->captions = $captions; + + return $this; + } +} diff --git a/generated/Model/CreateElectronicSealImagePreviewPayloadFieldCaptionsInner.php b/generated/Model/CreateElectronicSealImagePreviewPayloadFieldCaptionsInner.php new file mode 100644 index 0000000..fbd2dfa --- /dev/null +++ b/generated/Model/CreateElectronicSealImagePreviewPayloadFieldCaptionsInner.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * The caption text to display on the seal image. + * + * @var string|null + */ + protected $text; + + /** + * The caption text to display on the seal image. + */ + public function getText(): ?string + { + return $this->text; + } + + /** + * The caption text to display on the seal image. + */ + public function setText(?string $text): self + { + $this->initialized['text'] = true; + $this->text = $text; + + return $this; + } +} diff --git a/generated/Model/CreateElectronicSealPayload.php b/generated/Model/CreateElectronicSealPayload.php index 4625288..f58fea9 100644 --- a/generated/Model/CreateElectronicSealPayload.php +++ b/generated/Model/CreateElectronicSealPayload.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateElectronicSealPayload extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateElectronicSealPayload implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -32,10 +36,14 @@ public function isInitialized($property): bool */ protected $externalId; /** + * Fields you want to add to your Document. At least one Seal Field is mandatory. + * * @var list>|null */ protected $fields; /** + * Level of Electronic Seal for your Document. + * * @var string|null */ protected $signatureLevel; @@ -104,6 +112,8 @@ public function setExternalId(?string $externalId): self } /** + * Fields you want to add to your Document. At least one Seal Field is mandatory. + * * @return list>|null */ public function getFields(): ?array @@ -112,6 +122,8 @@ public function getFields(): ?array } /** + * Fields you want to add to your Document. At least one Seal Field is mandatory. + * * @param list>|null $fields */ public function setFields(?array $fields): self @@ -122,11 +134,17 @@ public function setFields(?array $fields): self return $this; } + /** + * Level of Electronic Seal for your Document. + */ public function getSignatureLevel(): ?string { return $this->signatureLevel; } + /** + * Level of Electronic Seal for your Document. + */ public function setSignatureLevel(?string $signatureLevel): self { $this->initialized['signatureLevel'] = true; @@ -153,4 +171,9 @@ public function setCertificateId(?string $certificateId): self return $this; } + + public function definedProperties(): array + { + return ['documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'imageId' => ['image_id', 'getImageId', 'setImageId'], 'externalId' => ['external_id', 'getExternalId', 'setExternalId'], 'fields' => ['fields', 'getFields', 'setFields'], 'signatureLevel' => ['signature_level', 'getSignatureLevel', 'setSignatureLevel'], 'certificateId' => ['certificate_id', 'getCertificateId', 'setCertificateId']]; + } } diff --git a/generated/Model/CreateFieldFont.php b/generated/Model/CreateFieldFont.php index ba15476..11d28f6 100644 --- a/generated/Model/CreateFieldFont.php +++ b/generated/Model/CreateFieldFont.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateFieldFont extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateFieldFont implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -81,4 +85,9 @@ public function setVariants(?FontVariants $variants): self return $this; } + + public function definedProperties(): array + { + return ['family' => ['family', 'getFamily', 'setFamily'], 'color' => ['color', 'getColor', 'setColor'], 'size' => ['size', 'getSize', 'setSize'], 'variants' => ['variants', 'getVariants', 'setVariants']]; + } } diff --git a/generated/Model/CreateFollowersInner.php b/generated/Model/CreateFollowersInner.php index eeb5a49..917ee72 100644 --- a/generated/Model/CreateFollowersInner.php +++ b/generated/Model/CreateFollowersInner.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateFollowersInner extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateFollowersInner implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -55,4 +59,9 @@ public function setLocale(?string $locale): self return $this; } + + public function definedProperties(): array + { + return ['email' => ['email', 'getEmail', 'setEmail'], 'locale' => ['locale', 'getLocale', 'setLocale']]; + } } diff --git a/generated/Model/CreateLabel.php b/generated/Model/CreateLabel.php new file mode 100644 index 0000000..d0a3ed6 --- /dev/null +++ b/generated/Model/CreateLabel.php @@ -0,0 +1,53 @@ +initialized); + } + /** + * Name of the Label. Each Label name must be unique within the organization.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email, HTML and URL. + * + * @var string|null + */ + protected $name; + + /** + * Name of the Label. Each Label name must be unique within the organization.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email, HTML and URL. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Label. Each Label name must be unique within the organization.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email, HTML and URL. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function definedProperties(): array + { + return ['name' => ['name', 'getName', 'setName']]; + } +} diff --git a/generated/Model/CreateLegalPerson.php b/generated/Model/CreateLegalPerson.php new file mode 100644 index 0000000..b7c7b01 --- /dev/null +++ b/generated/Model/CreateLegalPerson.php @@ -0,0 +1,120 @@ +initialized); + } + /** + * Name of the company. + * + * @var string|null + */ + protected $companyName; + /** + * Country code of the company (ISO 3166-1 alpha-2). + * + * @var string|null + */ + protected $countryCode; + /** + * Bank account details. + * + * @var BankAccount|null + */ + protected $bankAccount; + /** + * Legal representatives of the company. + * + * @var list|null + */ + protected $legalRepresentatives; + + /** + * Name of the company. + */ + public function getCompanyName(): ?string + { + return $this->companyName; + } + + /** + * Name of the company. + */ + public function setCompanyName(?string $companyName): self + { + $this->initialized['companyName'] = true; + $this->companyName = $companyName; + + return $this; + } + + /** + * Country code of the company (ISO 3166-1 alpha-2). + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * Country code of the company (ISO 3166-1 alpha-2). + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Bank account details. + */ + public function getBankAccount(): ?BankAccount + { + return $this->bankAccount; + } + + /** + * Bank account details. + */ + public function setBankAccount(?BankAccount $bankAccount): self + { + $this->initialized['bankAccount'] = true; + $this->bankAccount = $bankAccount; + + return $this; + } + + /** + * Legal representatives of the company. + * + * @return list|null + */ + public function getLegalRepresentatives(): ?array + { + return $this->legalRepresentatives; + } + + /** + * Legal representatives of the company. + * + * @param list|null $legalRepresentatives + */ + public function setLegalRepresentatives(?array $legalRepresentatives): self + { + $this->initialized['legalRepresentatives'] = true; + $this->legalRepresentatives = $legalRepresentatives; + + return $this; + } +} diff --git a/generated/Model/CreateNaturalPerson.php b/generated/Model/CreateNaturalPerson.php new file mode 100644 index 0000000..37d80ae --- /dev/null +++ b/generated/Model/CreateNaturalPerson.php @@ -0,0 +1,91 @@ +initialized); + } + /** + * Describes the Applicant. + * + * @var Identity|null + */ + protected $identity; + /** + * Provide the Applicants full address. + * + * @var Address|null + */ + protected $address; + /** + * Bank account details. + * + * @var BankAccount|null + */ + protected $bankAccount; + + /** + * Describes the Applicant. + */ + public function getIdentity(): ?Identity + { + return $this->identity; + } + + /** + * Describes the Applicant. + */ + public function setIdentity(?Identity $identity): self + { + $this->initialized['identity'] = true; + $this->identity = $identity; + + return $this; + } + + /** + * Provide the Applicants full address. + */ + public function getAddress(): ?Address + { + return $this->address; + } + + /** + * Provide the Applicants full address. + */ + public function setAddress(?Address $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } + + /** + * Bank account details. + */ + public function getBankAccount(): ?BankAccount + { + return $this->bankAccount; + } + + /** + * Bank account details. + */ + public function setBankAccount(?BankAccount $bankAccount): self + { + $this->initialized['bankAccount'] = true; + $this->bankAccount = $bankAccount; + + return $this; + } +} diff --git a/generated/Model/CreateSignatureDateFieldFont.php b/generated/Model/CreateSignatureDateFieldFont.php new file mode 100644 index 0000000..bea8d70 --- /dev/null +++ b/generated/Model/CreateSignatureDateFieldFont.php @@ -0,0 +1,93 @@ +initialized); + } + /** + * @var string|null + */ + protected $family; + /** + * @var string|null + */ + protected $color = '#000000'; + /** + * @var int|null + */ + protected $size = 12; + /** + * @var FontVariants|null + */ + protected $variants; + + public function getFamily(): ?string + { + return $this->family; + } + + public function setFamily(?string $family): self + { + $this->initialized['family'] = true; + $this->family = $family; + + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getSize(): ?int + { + return $this->size; + } + + public function setSize(?int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } + + public function getVariants(): ?FontVariants + { + return $this->variants; + } + + public function setVariants(?FontVariants $variants): self + { + $this->initialized['variants'] = true; + $this->variants = $variants; + + return $this; + } + + public function definedProperties(): array + { + return ['family' => ['family', 'getFamily', 'setFamily'], 'color' => ['color', 'getColor', 'setColor'], 'size' => ['size', 'getSize', 'setSize'], 'variants' => ['variants', 'getVariants', 'setVariants']]; + } +} diff --git a/generated/Model/CreateSignatureRequest.php b/generated/Model/CreateSignatureRequest.php deleted file mode 100644 index 678a715..0000000 --- a/generated/Model/CreateSignatureRequest.php +++ /dev/null @@ -1,521 +0,0 @@ -initialized); - } - /** - * Name of the signature request. - * - * @var string|null - */ - protected $name; - /** - * Delivery mode to notify signers. - * - * @var string|null - */ - protected $deliveryMode; - /** - * Enable an ordered workflow, each signer will be requested to sign in a sequential order. - * - * @var bool|null - */ - protected $orderedSigners; - /** - * Enable automatic reminders for pending signers. - * - * @var CreateSignatureRequestReminderSettings|null - */ - protected $reminderSettings; - /** - * Time zone of the dates and times displayed in emails, the Signature Request expiration date, and the PDF Audit Trail. Format: tz database. Default is set to Europe/Paris. - * - * @var string|null - */ - protected $timezone = 'Europe/Paris'; - /** - * A custom note added to emails sent to signers. - * - * @deprecated - * - * @var string|null - */ - protected $emailCustomNote; - /** - * Due date of the signature request (yyyy-mm-dd). Default to 6 month after the activation. - * - * @var \DateTime|null - */ - protected $expirationDate; - /** - * Create a signature request from an existing template. - * - * @var string|null - */ - protected $templateId; - /** - * Store a custom id that will be added to webhooks & appended to redirect urls. - * - * @var string|null - */ - protected $externalId; - /** - * Use a specific branding to customize the signature experience. - * - * @deprecated - * - * @var string|null - */ - protected $brandingId; - /** - * Use a specific Custom Experience to customize the signature experience. - * - * @var string|null - */ - protected $customExperienceId; - /** - * You can directly attach orphan documents to the signature request. - * - * @deprecated - * - * @var list|null - */ - protected $documents; - /** - * Can only be used if you add documents at the same time. - * - * @deprecated - * - * @var list|list|list|null - */ - protected $signers; - /** - * Scope the signature request to a specific workspace. If template_id is filled and Template is already linked to a Workspace, keep this field to null ; the created Signature Request will be scoped to Template's Workspace. - * - * @var string|null - */ - protected $workspaceId; - /** - * Define the locale for the generated audit trail. - * - * @var string|null - */ - protected $auditTrailLocale; - /** - * Allowing signers to decline to sign. - * - * @var bool|null - */ - protected $signersAllowedToDecline = false; - /** - * @var SignatureRequestEmailNotification|null - */ - protected $emailNotification; - /** - * When creating a signature request from a template, all substituting data for placeholders defined in the given template. - * - * @var CreateSignatureRequestTemplatePlaceholders|null - */ - protected $templatePlaceholders; - /** - * Once the signature request completed, archive its documents in a secure digital safe. - * - * @deprecated - * - * @var string|null - */ - protected $archiving; - - /** - * Name of the signature request. - */ - public function getName(): ?string - { - return $this->name; - } - - /** - * Name of the signature request. - */ - public function setName(?string $name): self - { - $this->initialized['name'] = true; - $this->name = $name; - - return $this; - } - - /** - * Delivery mode to notify signers. - */ - public function getDeliveryMode(): ?string - { - return $this->deliveryMode; - } - - /** - * Delivery mode to notify signers. - */ - public function setDeliveryMode(?string $deliveryMode): self - { - $this->initialized['deliveryMode'] = true; - $this->deliveryMode = $deliveryMode; - - return $this; - } - - /** - * Enable an ordered workflow, each signer will be requested to sign in a sequential order. - */ - public function getOrderedSigners(): ?bool - { - return $this->orderedSigners; - } - - /** - * Enable an ordered workflow, each signer will be requested to sign in a sequential order. - */ - public function setOrderedSigners(?bool $orderedSigners): self - { - $this->initialized['orderedSigners'] = true; - $this->orderedSigners = $orderedSigners; - - return $this; - } - - /** - * Enable automatic reminders for pending signers. - */ - public function getReminderSettings(): ?CreateSignatureRequestReminderSettings - { - return $this->reminderSettings; - } - - /** - * Enable automatic reminders for pending signers. - */ - public function setReminderSettings(?CreateSignatureRequestReminderSettings $reminderSettings): self - { - $this->initialized['reminderSettings'] = true; - $this->reminderSettings = $reminderSettings; - - return $this; - } - - /** - * Time zone of the dates and times displayed in emails, the Signature Request expiration date, and the PDF Audit Trail. Format: tz database. Default is set to Europe/Paris. - */ - public function getTimezone(): ?string - { - return $this->timezone; - } - - /** - * Time zone of the dates and times displayed in emails, the Signature Request expiration date, and the PDF Audit Trail. Format: tz database. Default is set to Europe/Paris. - */ - public function setTimezone(?string $timezone): self - { - $this->initialized['timezone'] = true; - $this->timezone = $timezone; - - return $this; - } - - /** - * A custom note added to emails sent to signers. - * - * @deprecated - */ - public function getEmailCustomNote(): ?string - { - return $this->emailCustomNote; - } - - /** - * A custom note added to emails sent to signers. - * - * @deprecated - */ - public function setEmailCustomNote(?string $emailCustomNote): self - { - $this->initialized['emailCustomNote'] = true; - $this->emailCustomNote = $emailCustomNote; - - return $this; - } - - /** - * Due date of the signature request (yyyy-mm-dd). Default to 6 month after the activation. - */ - public function getExpirationDate(): ?\DateTime - { - return $this->expirationDate; - } - - /** - * Due date of the signature request (yyyy-mm-dd). Default to 6 month after the activation. - */ - public function setExpirationDate(?\DateTime $expirationDate): self - { - $this->initialized['expirationDate'] = true; - $this->expirationDate = $expirationDate; - - return $this; - } - - /** - * Create a signature request from an existing template. - */ - public function getTemplateId(): ?string - { - return $this->templateId; - } - - /** - * Create a signature request from an existing template. - */ - public function setTemplateId(?string $templateId): self - { - $this->initialized['templateId'] = true; - $this->templateId = $templateId; - - return $this; - } - - /** - * Store a custom id that will be added to webhooks & appended to redirect urls. - */ - public function getExternalId(): ?string - { - return $this->externalId; - } - - /** - * Store a custom id that will be added to webhooks & appended to redirect urls. - */ - public function setExternalId(?string $externalId): self - { - $this->initialized['externalId'] = true; - $this->externalId = $externalId; - - return $this; - } - - /** - * Use a specific branding to customize the signature experience. - * - * @deprecated - */ - public function getBrandingId(): ?string - { - return $this->brandingId; - } - - /** - * Use a specific branding to customize the signature experience. - * - * @deprecated - */ - public function setBrandingId(?string $brandingId): self - { - $this->initialized['brandingId'] = true; - $this->brandingId = $brandingId; - - return $this; - } - - /** - * Use a specific Custom Experience to customize the signature experience. - */ - public function getCustomExperienceId(): ?string - { - return $this->customExperienceId; - } - - /** - * Use a specific Custom Experience to customize the signature experience. - */ - public function setCustomExperienceId(?string $customExperienceId): self - { - $this->initialized['customExperienceId'] = true; - $this->customExperienceId = $customExperienceId; - - return $this; - } - - /** - * You can directly attach orphan documents to the signature request. - * - * @deprecated - * - * @return list|null - */ - public function getDocuments(): ?array - { - return $this->documents; - } - - /** - * You can directly attach orphan documents to the signature request. - * - * @param list|null $documents - * - * @deprecated - */ - public function setDocuments(?array $documents): self - { - $this->initialized['documents'] = true; - $this->documents = $documents; - - return $this; - } - - /** - * Can only be used if you add documents at the same time. - * - * @deprecated - * - * @return list|list|list|null - */ - public function getSigners(): ?array - { - return $this->signers; - } - - /** - * Can only be used if you add documents at the same time. - * - * @param list|list|list|null $signers - * - * @deprecated - */ - public function setSigners(?array $signers): self - { - $this->initialized['signers'] = true; - $this->signers = $signers; - - return $this; - } - - /** - * Scope the signature request to a specific workspace. If template_id is filled and Template is already linked to a Workspace, keep this field to null ; the created Signature Request will be scoped to Template's Workspace. - */ - public function getWorkspaceId(): ?string - { - return $this->workspaceId; - } - - /** - * Scope the signature request to a specific workspace. If template_id is filled and Template is already linked to a Workspace, keep this field to null ; the created Signature Request will be scoped to Template's Workspace. - */ - public function setWorkspaceId(?string $workspaceId): self - { - $this->initialized['workspaceId'] = true; - $this->workspaceId = $workspaceId; - - return $this; - } - - /** - * Define the locale for the generated audit trail. - */ - public function getAuditTrailLocale(): ?string - { - return $this->auditTrailLocale; - } - - /** - * Define the locale for the generated audit trail. - */ - public function setAuditTrailLocale(?string $auditTrailLocale): self - { - $this->initialized['auditTrailLocale'] = true; - $this->auditTrailLocale = $auditTrailLocale; - - return $this; - } - - /** - * Allowing signers to decline to sign. - */ - public function getSignersAllowedToDecline(): ?bool - { - return $this->signersAllowedToDecline; - } - - /** - * Allowing signers to decline to sign. - */ - public function setSignersAllowedToDecline(?bool $signersAllowedToDecline): self - { - $this->initialized['signersAllowedToDecline'] = true; - $this->signersAllowedToDecline = $signersAllowedToDecline; - - return $this; - } - - public function getEmailNotification(): ?SignatureRequestEmailNotification - { - return $this->emailNotification; - } - - public function setEmailNotification(?SignatureRequestEmailNotification $emailNotification): self - { - $this->initialized['emailNotification'] = true; - $this->emailNotification = $emailNotification; - - return $this; - } - - /** - * When creating a signature request from a template, all substituting data for placeholders defined in the given template. - */ - public function getTemplatePlaceholders(): ?CreateSignatureRequestTemplatePlaceholders - { - return $this->templatePlaceholders; - } - - /** - * When creating a signature request from a template, all substituting data for placeholders defined in the given template. - */ - public function setTemplatePlaceholders(?CreateSignatureRequestTemplatePlaceholders $templatePlaceholders): self - { - $this->initialized['templatePlaceholders'] = true; - $this->templatePlaceholders = $templatePlaceholders; - - return $this; - } - - /** - * Once the signature request completed, archive its documents in a secure digital safe. - * - * @deprecated - */ - public function getArchiving(): ?string - { - return $this->archiving; - } - - /** - * Once the signature request completed, archive its documents in a secure digital safe. - * - * @deprecated - */ - public function setArchiving(?string $archiving): self - { - $this->initialized['archiving'] = true; - $this->archiving = $archiving; - - return $this; - } -} diff --git a/generated/Model/CreateSignerConsentRequest.php b/generated/Model/CreateSignerConsentRequest.php index 05cbc31..603dd1e 100644 --- a/generated/Model/CreateSignerConsentRequest.php +++ b/generated/Model/CreateSignerConsentRequest.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateSignerConsentRequest extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateSignerConsentRequest implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -43,6 +47,12 @@ public function isInitialized($property): bool * @var string|null */ protected $insertAfterId; + /** + * Link the Signer Consent Request to a given Document by its id. + * + * @var string|null + */ + protected $documentId; /** * Type of the Signer Consent Request. @@ -142,4 +152,28 @@ public function setInsertAfterId(?string $insertAfterId): self return $this; } + + /** + * Link the Signer Consent Request to a given Document by its id. + */ + public function getDocumentId(): ?string + { + return $this->documentId; + } + + /** + * Link the Signer Consent Request to a given Document by its id. + */ + public function setDocumentId(?string $documentId): self + { + $this->initialized['documentId'] = true; + $this->documentId = $documentId; + + return $this; + } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'settings' => ['settings', 'getSettings', 'setSettings'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'signerIds' => ['signer_ids', 'getSignerIds', 'setSignerIds'], 'insertAfterId' => ['insert_after_id', 'getInsertAfterId', 'setInsertAfterId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId']]; + } } diff --git a/generated/Model/CreateSignerConsentRequestSettings.php b/generated/Model/CreateSignerConsentRequestSettings.php index 5624618..e0611a4 100644 --- a/generated/Model/CreateSignerConsentRequestSettings.php +++ b/generated/Model/CreateSignerConsentRequestSettings.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateSignerConsentRequestSettings extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateSignerConsentRequestSettings implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,14 +18,16 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Text associated to the checkbox. This property cannot start or end with whitespace, does not allow html tags or email. + * Text associated to the checkbox or the text_to_copy.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing URL. * * @var string|null */ protected $text; /** - * Text associated to the checkbox. This property cannot start or end with whitespace, does not allow html tags or email. + * Text associated to the checkbox or the text_to_copy.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing URL. */ public function getText(): ?string { @@ -29,7 +35,8 @@ public function getText(): ?string } /** - * Text associated to the checkbox. This property cannot start or end with whitespace, does not allow html tags or email. + * Text associated to the checkbox or the text_to_copy.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing URL. */ public function setText(?string $text): self { @@ -38,4 +45,9 @@ public function setText(?string $text): self return $this; } + + public function definedProperties(): array + { + return ['text' => ['text', 'getText', 'setText']]; + } } diff --git a/generated/Model/CreateSignerDocumentRequest.php b/generated/Model/CreateSignerDocumentRequest.php index a8aa8d8..4830d71 100644 --- a/generated/Model/CreateSignerDocumentRequest.php +++ b/generated/Model/CreateSignerDocumentRequest.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateSignerDocumentRequest extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateSignerDocumentRequest implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,6 +18,8 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + * * @var string|null */ protected $title; @@ -26,11 +32,17 @@ public function isInitialized($property): bool */ protected $signerIds; + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function getTitle(): ?string { return $this->title; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function setTitle(?string $title): self { $this->initialized['title'] = true; @@ -70,4 +82,9 @@ public function setSignerIds(?array $signerIds): self return $this; } + + public function definedProperties(): array + { + return ['title' => ['title', 'getTitle', 'setTitle'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'signerIds' => ['signer_ids', 'getSignerIds', 'setSignerIds']]; + } } diff --git a/generated/Model/CreateUser.php b/generated/Model/CreateUser.php index bca84ce..fb826f8 100644 --- a/generated/Model/CreateUser.php +++ b/generated/Model/CreateUser.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateUser extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateUser implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -56,7 +60,7 @@ public function isInitialized($property): bool */ protected $phoneNumber; /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ @@ -200,7 +204,7 @@ public function setPhoneNumber(?string $phoneNumber): self } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getJobTitle(): ?string { @@ -208,7 +212,7 @@ public function getJobTitle(): ?string } /** - * This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setJobTitle(?string $jobTitle): self { @@ -217,4 +221,9 @@ public function setJobTitle(?string $jobTitle): self return $this; } + + public function definedProperties(): array + { + return ['email' => ['email', 'getEmail', 'setEmail'], 'role' => ['role', 'getRole', 'setRole'], 'locale' => ['locale', 'getLocale', 'setLocale'], 'workspaces' => ['workspaces', 'getWorkspaces', 'setWorkspaces'], 'firstName' => ['first_name', 'getFirstName', 'setFirstName'], 'lastName' => ['last_name', 'getLastName', 'setLastName'], 'phoneNumber' => ['phone_number', 'getPhoneNumber', 'setPhoneNumber'], 'jobTitle' => ['job_title', 'getJobTitle', 'setJobTitle']]; + } } diff --git a/generated/Model/CreateVideoIdentityVerification.php b/generated/Model/CreateVideoIdentityVerification.php deleted file mode 100644 index d5834aa..0000000 --- a/generated/Model/CreateVideoIdentityVerification.php +++ /dev/null @@ -1,116 +0,0 @@ -initialized); - } - /** - * The first name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If multiple given names are listed on the document, you must provide only one of them. - * - * @var string|null - */ - protected $firstName; - /** - * The last name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If both a birth name and a usage name are listed on the document, you must provide one of them, but not both. - * - * @var string|null - */ - protected $lastName; - /** - * The URL to redirect the person back to your application or website after the identity verification flow is complete. - * - * @var string|null - */ - protected $redirectionUrl; - /** - * Enable face recognition step in the Identity verification flow. - * - * @var bool|null - */ - protected $faceRecognition = false; - - /** - * The first name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If multiple given names are listed on the document, you must provide only one of them. - */ - public function getFirstName(): ?string - { - return $this->firstName; - } - - /** - * The first name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If multiple given names are listed on the document, you must provide only one of them. - */ - public function setFirstName(?string $firstName): self - { - $this->initialized['firstName'] = true; - $this->firstName = $firstName; - - return $this; - } - - /** - * The last name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If both a birth name and a usage name are listed on the document, you must provide one of them, but not both. - */ - public function getLastName(): ?string - { - return $this->lastName; - } - - /** - * The last name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If both a birth name and a usage name are listed on the document, you must provide one of them, but not both. - */ - public function setLastName(?string $lastName): self - { - $this->initialized['lastName'] = true; - $this->lastName = $lastName; - - return $this; - } - - /** - * The URL to redirect the person back to your application or website after the identity verification flow is complete. - */ - public function getRedirectionUrl(): ?string - { - return $this->redirectionUrl; - } - - /** - * The URL to redirect the person back to your application or website after the identity verification flow is complete. - */ - public function setRedirectionUrl(?string $redirectionUrl): self - { - $this->initialized['redirectionUrl'] = true; - $this->redirectionUrl = $redirectionUrl; - - return $this; - } - - /** - * Enable face recognition step in the Identity verification flow. - */ - public function getFaceRecognition(): ?bool - { - return $this->faceRecognition; - } - - /** - * Enable face recognition step in the Identity verification flow. - */ - public function setFaceRecognition(?bool $faceRecognition): self - { - $this->initialized['faceRecognition'] = true; - $this->faceRecognition = $faceRecognition; - - return $this; - } -} diff --git a/generated/Model/CreateWebhookSubscription.php b/generated/Model/CreateWebhookSubscription.php index 1edccd2..21aedad 100644 --- a/generated/Model/CreateWebhookSubscription.php +++ b/generated/Model/CreateWebhookSubscription.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateWebhookSubscription extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CreateWebhookSubscription implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,13 +18,14 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Https target URL of the webhook. + * HTTPS target URL that will receive webhook POST requests. It must be publicly accessible and may include a specified port. * * @var string|null */ protected $endpoint; /** - * Short description of the webhook. This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * Short description of the webhook.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). * * @var string|null */ @@ -30,9 +35,9 @@ public function isInitialized($property): bool */ protected $sandbox; /** - * Choose between a wildcard symbol to select all subscribed events or specify a list of specific subscribed events. + * Select all the events to subscribe to. * - * @var mixed|null + * @var list|null */ protected $subscribedEvents; /** @@ -44,17 +49,17 @@ public function isInitialized($property): bool /** * Choose between a wildcard symbol to select all scopes or specify a list of specific scopes. * - * @var mixed|null + * @var list|null */ protected $scopes; /** * Choose between a wildcard symbol to select all Workspaces or specify a list of specific Workspace UUIDs. The association of specific Workspaces with Webhook is temporarily restricted in the sandbox environment, only the value wildcard ("*") for Workspaces is allowed in this context. * - * @var mixed|null + * @var list|null */ protected $workspaces; /** - * If a Webhook request fails for any reason, Yousign will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. + * If a Webhook request fails for any reason, Youtrust will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. * * @var bool|null */ @@ -67,7 +72,7 @@ public function isInitialized($property): bool protected $enabled; /** - * Https target URL of the webhook. + * HTTPS target URL that will receive webhook POST requests. It must be publicly accessible and may include a specified port. */ public function getEndpoint(): ?string { @@ -75,7 +80,7 @@ public function getEndpoint(): ?string } /** - * Https target URL of the webhook. + * HTTPS target URL that will receive webhook POST requests. It must be publicly accessible and may include a specified port. */ public function setEndpoint(?string $endpoint): self { @@ -86,7 +91,8 @@ public function setEndpoint(?string $endpoint): self } /** - * Short description of the webhook. This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * Short description of the webhook.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function getDescription(): ?string { @@ -94,7 +100,8 @@ public function getDescription(): ?string } /** - * Short description of the webhook. This property cannot start or end with whitespace, does not allow HTML tags, URL or email. + * Short description of the webhook.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). */ public function setDescription(?string $description): self { @@ -118,7 +125,9 @@ public function setSandbox(?bool $sandbox): self } /** - * Choose between a wildcard symbol to select all subscribed events or specify a list of specific subscribed events. + * Select all the events to subscribe to. + * + * @return list|null */ public function getSubscribedEvents() { @@ -126,7 +135,9 @@ public function getSubscribedEvents() } /** - * Choose between a wildcard symbol to select all subscribed events or specify a list of specific subscribed events. + * Select all the events to subscribe to. + * + * @param list|null $subscribedEvents */ public function setSubscribedEvents($subscribedEvents): self { @@ -157,6 +168,8 @@ public function setSecretKey(?string $secretKey): self /** * Choose between a wildcard symbol to select all scopes or specify a list of specific scopes. + * + * @return list|null */ public function getScopes() { @@ -165,6 +178,8 @@ public function getScopes() /** * Choose between a wildcard symbol to select all scopes or specify a list of specific scopes. + * + * @param list|null $scopes */ public function setScopes($scopes): self { @@ -176,6 +191,8 @@ public function setScopes($scopes): self /** * Choose between a wildcard symbol to select all Workspaces or specify a list of specific Workspace UUIDs. The association of specific Workspaces with Webhook is temporarily restricted in the sandbox environment, only the value wildcard ("*") for Workspaces is allowed in this context. + * + * @return list|null */ public function getWorkspaces() { @@ -184,6 +201,8 @@ public function getWorkspaces() /** * Choose between a wildcard symbol to select all Workspaces or specify a list of specific Workspace UUIDs. The association of specific Workspaces with Webhook is temporarily restricted in the sandbox environment, only the value wildcard ("*") for Workspaces is allowed in this context. + * + * @param list|null $workspaces */ public function setWorkspaces($workspaces): self { @@ -194,7 +213,7 @@ public function setWorkspaces($workspaces): self } /** - * If a Webhook request fails for any reason, Yousign will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. + * If a Webhook request fails for any reason, Youtrust will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. */ public function getAutoRetry(): ?bool { @@ -202,7 +221,7 @@ public function getAutoRetry(): ?bool } /** - * If a Webhook request fails for any reason, Yousign will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. + * If a Webhook request fails for any reason, Youtrust will retry the request 8 times using a back-off mechanism after: 2, 6, 30, 60, 300, 1080, 1440, 2880 min. */ public function setAutoRetry(?bool $autoRetry): self { @@ -230,4 +249,9 @@ public function setEnabled(?bool $enabled): self return $this; } + + public function definedProperties(): array + { + return ['endpoint' => ['endpoint', 'getEndpoint', 'setEndpoint'], 'description' => ['description', 'getDescription', 'setDescription'], 'sandbox' => ['sandbox', 'getSandbox', 'setSandbox'], 'subscribedEvents' => ['subscribed_events', 'getSubscribedEvents', 'setSubscribedEvents'], 'secretKey' => ['secret_key', 'getSecretKey', 'setSecretKey'], 'scopes' => ['scopes', 'getScopes', 'setScopes'], 'workspaces' => ['workspaces', 'getWorkspaces', 'setWorkspaces'], 'autoRetry' => ['auto_retry', 'getAutoRetry', 'setAutoRetry'], 'enabled' => ['enabled', 'getEnabled', 'setEnabled']]; + } } diff --git a/generated/Model/CreateWorkflowSession.php b/generated/Model/CreateWorkflowSession.php new file mode 100644 index 0000000..a4d0391 --- /dev/null +++ b/generated/Model/CreateWorkflowSession.php @@ -0,0 +1,94 @@ +initialized); + } + /** + * Unique ID of the Workflow Template from which to create the new Workflow Session. + * + * @var string|null + */ + protected $workflowTemplateId; + /** + * Unique ID of the Workspace in which to scope the Workflow Session. + * + * @var string|null + */ + protected $workspaceId; + /** + * Name given to the Workflow Session. Enter a meaningful, descriptive name to help you easily find this Workflow Session in the application.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + * + * @var string|null + */ + protected $name; + + /** + * Unique ID of the Workflow Template from which to create the new Workflow Session. + */ + public function getWorkflowTemplateId(): ?string + { + return $this->workflowTemplateId; + } + + /** + * Unique ID of the Workflow Template from which to create the new Workflow Session. + */ + public function setWorkflowTemplateId(?string $workflowTemplateId): self + { + $this->initialized['workflowTemplateId'] = true; + $this->workflowTemplateId = $workflowTemplateId; + + return $this; + } + + /** + * Unique ID of the Workspace in which to scope the Workflow Session. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * Unique ID of the Workspace in which to scope the Workflow Session. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Name given to the Workflow Session. Enter a meaningful, descriptive name to help you easily find this Workflow Session in the application.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name given to the Workflow Session. Enter a meaningful, descriptive name to help you easily find this Workflow Session in the application.\ + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/generated/Model/CreateWorkflowSessionApplicantLegalPerson.php b/generated/Model/CreateWorkflowSessionApplicantLegalPerson.php new file mode 100644 index 0000000..af0dff1 --- /dev/null +++ b/generated/Model/CreateWorkflowSessionApplicantLegalPerson.php @@ -0,0 +1,191 @@ +initialized); + } + /** + * Label of the Applicant. + * + * @var string|null + */ + protected $label; + /** + * Unique applicant identifier as registered on your side. + * + * @var string|null + */ + protected $referenceId; + /** + * Delivery mode to notify Applicants. + * + * @var string|null + */ + protected $deliveryMode = 'none'; + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + * + * @var string|null + */ + protected $email; + /** + * Type of the Applicant. + * + * @var string|null + */ + protected $type; + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + * + * @var CreateLegalPerson|null + */ + protected $legalPerson; + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + * + * @var string|null + */ + protected $parentApplicantId; + + /** + * Label of the Applicant. + */ + public function getLabel(): ?string + { + return $this->label; + } + + /** + * Label of the Applicant. + */ + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * Unique applicant identifier as registered on your side. + */ + public function getReferenceId(): ?string + { + return $this->referenceId; + } + + /** + * Unique applicant identifier as registered on your side. + */ + public function setReferenceId(?string $referenceId): self + { + $this->initialized['referenceId'] = true; + $this->referenceId = $referenceId; + + return $this; + } + + /** + * Delivery mode to notify Applicants. + */ + public function getDeliveryMode(): ?string + { + return $this->deliveryMode; + } + + /** + * Delivery mode to notify Applicants. + */ + public function setDeliveryMode(?string $deliveryMode): self + { + $this->initialized['deliveryMode'] = true; + $this->deliveryMode = $deliveryMode; + + return $this; + } + + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + */ + public function setEmail(?string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } + + /** + * Type of the Applicant. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the Applicant. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + */ + public function getLegalPerson(): ?CreateLegalPerson + { + return $this->legalPerson; + } + + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + */ + public function setLegalPerson(?CreateLegalPerson $legalPerson): self + { + $this->initialized['legalPerson'] = true; + $this->legalPerson = $legalPerson; + + return $this; + } + + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + */ + public function getParentApplicantId(): ?string + { + return $this->parentApplicantId; + } + + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + */ + public function setParentApplicantId(?string $parentApplicantId): self + { + $this->initialized['parentApplicantId'] = true; + $this->parentApplicantId = $parentApplicantId; + + return $this; + } +} diff --git a/generated/Model/CreateWorkflowSessionApplicantNaturalPerson.php b/generated/Model/CreateWorkflowSessionApplicantNaturalPerson.php new file mode 100644 index 0000000..2829fb8 --- /dev/null +++ b/generated/Model/CreateWorkflowSessionApplicantNaturalPerson.php @@ -0,0 +1,191 @@ +initialized); + } + /** + * Label of the Applicant. + * + * @var string|null + */ + protected $label; + /** + * Unique applicant identifier as registered on your side. + * + * @var string|null + */ + protected $referenceId; + /** + * Delivery mode to notify Applicants. + * + * @var string|null + */ + protected $deliveryMode = 'none'; + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + * + * @var string|null + */ + protected $email; + /** + * Type of the Applicant. + * + * @var string|null + */ + protected $type; + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + * + * @var CreateNaturalPerson|null + */ + protected $naturalPerson; + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + * + * @var string|null + */ + protected $parentApplicantId; + + /** + * Label of the Applicant. + */ + public function getLabel(): ?string + { + return $this->label; + } + + /** + * Label of the Applicant. + */ + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * Unique applicant identifier as registered on your side. + */ + public function getReferenceId(): ?string + { + return $this->referenceId; + } + + /** + * Unique applicant identifier as registered on your side. + */ + public function setReferenceId(?string $referenceId): self + { + $this->initialized['referenceId'] = true; + $this->referenceId = $referenceId; + + return $this; + } + + /** + * Delivery mode to notify Applicants. + */ + public function getDeliveryMode(): ?string + { + return $this->deliveryMode; + } + + /** + * Delivery mode to notify Applicants. + */ + public function setDeliveryMode(?string $deliveryMode): self + { + $this->initialized['deliveryMode'] = true; + $this->deliveryMode = $deliveryMode; + + return $this; + } + + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + */ + public function getEmail(): ?string + { + return $this->email; + } + + /** + * Preferred email address for managing notifications, required if delivery_mode is set to email. + */ + public function setEmail(?string $email): self + { + $this->initialized['email'] = true; + $this->email = $email; + + return $this; + } + + /** + * Type of the Applicant. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the Applicant. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + */ + public function getNaturalPerson(): ?CreateNaturalPerson + { + return $this->naturalPerson; + } + + /** + * Contains information that describe the applicant. This data is used for cross-validation with the data Youtrust extracts from the applicant documents and verifications. + */ + public function setNaturalPerson(?CreateNaturalPerson $naturalPerson): self + { + $this->initialized['naturalPerson'] = true; + $this->naturalPerson = $naturalPerson; + + return $this; + } + + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + */ + public function getParentApplicantId(): ?string + { + return $this->parentApplicantId; + } + + /** + * The id of the parent Applicant (should be a legal_person in the same Workflow Session). Can be changed until the first magic link has been generated for the Workflow Session; once a link exists the parent is immutable and any attempt to change it returns a 400 error. + */ + public function setParentApplicantId(?string $parentApplicantId): self + { + $this->initialized['parentApplicantId'] = true; + $this->parentApplicantId = $parentApplicantId; + + return $this; + } +} diff --git a/generated/Model/CreateWorkspace.php b/generated/Model/CreateWorkspace.php index 672f94b..bae53be 100644 --- a/generated/Model/CreateWorkspace.php +++ b/generated/Model/CreateWorkspace.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateWorkspace extends \ArrayObject +class CreateWorkspace { /** * @var array @@ -14,19 +14,29 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + * * @var string|null */ protected $name; /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + * * @var string|null */ protected $externalName; + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function getName(): ?string { return $this->name; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function setName(?string $name): self { $this->initialized['name'] = true; @@ -35,11 +45,17 @@ public function setName(?string $name): self return $this; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function getExternalName(): ?string { return $this->externalName; } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string). + */ public function setExternalName(?string $externalName): self { $this->initialized['externalName'] = true; diff --git a/generated/Model/CustomExperience.php b/generated/Model/CustomExperience.php index 77a8e29..145611d 100644 --- a/generated/Model/CustomExperience.php +++ b/generated/Model/CustomExperience.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CustomExperience extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CustomExperience implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -65,10 +69,28 @@ public function isInitialized($property): bool * @var bool|null */ protected $emailExpirationTextDisabled; + /** + * @var bool|null + */ + protected $recipientsActivityDisabled; + /** + * @var bool|null + */ + protected $downloadDocumentsDisabled; + /** + * @var bool|null + */ + protected $documentNavigationDisabled; /** * @var CustomExperienceRedirectUrls|null */ protected $redirectUrls; + /** + * Navigation bar of the Embedded Preparation page, or null when it is not displayed at all. + * + * @var CustomExperienceEmbeddedPreparationNavigationBar|null + */ + protected $embeddedPreparationNavigationBar; /** * @var string|null */ @@ -79,6 +101,12 @@ public function isInitialized($property): bool * @var string|null */ protected $source; + /** + * The Workspace the Custom Experience is scoped to, or null if it is Organization-wide. + * + * @var string|null + */ + protected $workspaceId; /** * @var \DateTime|null */ @@ -259,6 +287,45 @@ public function setEmailExpirationTextDisabled(?bool $emailExpirationTextDisable return $this; } + public function getRecipientsActivityDisabled(): ?bool + { + return $this->recipientsActivityDisabled; + } + + public function setRecipientsActivityDisabled(?bool $recipientsActivityDisabled): self + { + $this->initialized['recipientsActivityDisabled'] = true; + $this->recipientsActivityDisabled = $recipientsActivityDisabled; + + return $this; + } + + public function getDownloadDocumentsDisabled(): ?bool + { + return $this->downloadDocumentsDisabled; + } + + public function setDownloadDocumentsDisabled(?bool $downloadDocumentsDisabled): self + { + $this->initialized['downloadDocumentsDisabled'] = true; + $this->downloadDocumentsDisabled = $downloadDocumentsDisabled; + + return $this; + } + + public function getDocumentNavigationDisabled(): ?bool + { + return $this->documentNavigationDisabled; + } + + public function setDocumentNavigationDisabled(?bool $documentNavigationDisabled): self + { + $this->initialized['documentNavigationDisabled'] = true; + $this->documentNavigationDisabled = $documentNavigationDisabled; + + return $this; + } + public function getRedirectUrls(): ?CustomExperienceRedirectUrls { return $this->redirectUrls; @@ -272,6 +339,25 @@ public function setRedirectUrls(?CustomExperienceRedirectUrls $redirectUrls): se return $this; } + /** + * Navigation bar of the Embedded Preparation page, or null when it is not displayed at all. + */ + public function getEmbeddedPreparationNavigationBar(): ?CustomExperienceEmbeddedPreparationNavigationBar + { + return $this->embeddedPreparationNavigationBar; + } + + /** + * Navigation bar of the Embedded Preparation page, or null when it is not displayed at all. + */ + public function setEmbeddedPreparationNavigationBar(?CustomExperienceEmbeddedPreparationNavigationBar $embeddedPreparationNavigationBar): self + { + $this->initialized['embeddedPreparationNavigationBar'] = true; + $this->embeddedPreparationNavigationBar = $embeddedPreparationNavigationBar; + + return $this; + } + public function getLogo(): ?string { return $this->logo; @@ -304,6 +390,25 @@ public function setSource(?string $source): self return $this; } + /** + * The Workspace the Custom Experience is scoped to, or null if it is Organization-wide. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace the Custom Experience is scoped to, or null if it is Organization-wide. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + public function getCreatedAt(): ?\DateTime { return $this->createdAt; @@ -316,4 +421,9 @@ public function setCreatedAt(?\DateTime $createdAt): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'name' => ['name', 'getName', 'setName'], 'landingPageDisabled' => ['landing_page_disabled', 'getLandingPageDisabled', 'setLandingPageDisabled'], 'sidePanelDisabled' => ['side_panel_disabled', 'getSidePanelDisabled', 'setSidePanelDisabled'], 'backgroundColor' => ['background_color', 'getBackgroundColor', 'setBackgroundColor'], 'buttonColor' => ['button_color', 'getButtonColor', 'setButtonColor'], 'textColor' => ['text_color', 'getTextColor', 'setTextColor'], 'textButtonColor' => ['text_button_color', 'getTextButtonColor', 'setTextButtonColor'], 'disabledNotifications' => ['disabled_notifications', 'getDisabledNotifications', 'setDisabledNotifications'], 'emailLogoDisabled' => ['email_logo_disabled', 'getEmailLogoDisabled', 'setEmailLogoDisabled'], 'emailHeaderTextDisabled' => ['email_header_text_disabled', 'getEmailHeaderTextDisabled', 'setEmailHeaderTextDisabled'], 'emailFooterSignatureDisabled' => ['email_footer_signature_disabled', 'getEmailFooterSignatureDisabled', 'setEmailFooterSignatureDisabled'], 'emailExpirationTextDisabled' => ['email_expiration_text_disabled', 'getEmailExpirationTextDisabled', 'setEmailExpirationTextDisabled'], 'recipientsActivityDisabled' => ['recipients_activity_disabled', 'getRecipientsActivityDisabled', 'setRecipientsActivityDisabled'], 'downloadDocumentsDisabled' => ['download_documents_disabled', 'getDownloadDocumentsDisabled', 'setDownloadDocumentsDisabled'], 'documentNavigationDisabled' => ['document_navigation_disabled', 'getDocumentNavigationDisabled', 'setDocumentNavigationDisabled'], 'redirectUrls' => ['redirect_urls', 'getRedirectUrls', 'setRedirectUrls'], 'embeddedPreparationNavigationBar' => ['embedded_preparation_navigation_bar', 'getEmbeddedPreparationNavigationBar', 'setEmbeddedPreparationNavigationBar'], 'logo' => ['logo', 'getLogo', 'setLogo'], 'source' => ['source', 'getSource', 'setSource'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt']]; + } } diff --git a/generated/Model/CustomExperienceEmbeddedPreparationNavigationBar.php b/generated/Model/CustomExperienceEmbeddedPreparationNavigationBar.php new file mode 100644 index 0000000..6642cd3 --- /dev/null +++ b/generated/Model/CustomExperienceEmbeddedPreparationNavigationBar.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * If true, the `Done` button is displayed in the navigation bar. + * + * @var bool|null + */ + protected $doneButton; + /** + * If true, the `Back` button is displayed in the navigation bar. + * + * @var bool|null + */ + protected $backButton; + + /** + * If true, the `Done` button is displayed in the navigation bar. + */ + public function getDoneButton(): ?bool + { + return $this->doneButton; + } + + /** + * If true, the `Done` button is displayed in the navigation bar. + */ + public function setDoneButton(?bool $doneButton): self + { + $this->initialized['doneButton'] = true; + $this->doneButton = $doneButton; + + return $this; + } + + /** + * If true, the `Back` button is displayed in the navigation bar. + */ + public function getBackButton(): ?bool + { + return $this->backButton; + } + + /** + * If true, the `Back` button is displayed in the navigation bar. + */ + public function setBackButton(?bool $backButton): self + { + $this->initialized['backButton'] = true; + $this->backButton = $backButton; + + return $this; + } + + public function definedProperties(): array + { + return ['doneButton' => ['done_button', 'getDoneButton', 'setDoneButton'], 'backButton' => ['back_button', 'getBackButton', 'setBackButton']]; + } +} diff --git a/generated/Model/CustomExperienceRedirectUrls.php b/generated/Model/CustomExperienceRedirectUrls.php index 97a30b0..06f8b1e 100644 --- a/generated/Model/CustomExperienceRedirectUrls.php +++ b/generated/Model/CustomExperienceRedirectUrls.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CustomExperienceRedirectUrls extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class CustomExperienceRedirectUrls implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -64,4 +68,9 @@ public function setDecline(?string $decline): self return $this; } + + public function definedProperties(): array + { + return ['success' => ['success', 'getSuccess', 'setSuccess'], 'error' => ['error', 'getError', 'setError'], 'decline' => ['decline', 'getDecline', 'setDecline']]; + } } diff --git a/generated/Model/CustomProperty.php b/generated/Model/CustomProperty.php new file mode 100644 index 0000000..aa9f49f --- /dev/null +++ b/generated/Model/CustomProperty.php @@ -0,0 +1,286 @@ +initialized); + } + /** + * Unique identifier of the custom property. + * + * @var string|null + */ + protected $id; + /** + * Display name of the property. + * + * @var string|null + */ + protected $name; + /** + * Field type. + * + * @var string|null + */ + protected $type; + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + * + * @var bool|null + */ + protected $required; + /** + * For list type only — whether multiple options can be selected. Null for text type. + * + * @var bool|null + */ + protected $multipleAnswerAllowed; + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @var list|null + */ + protected $workspaceIds; + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + * + * @var string|null + */ + protected $defaultValue; + /** + * For list type only: selectable options. + * Null for text type. + * + * @var list|null + */ + protected $options; + /** + * Creation timestamp (ISO 8601). + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Last update timestamp (ISO 8601). + * + * @var \DateTime|null + */ + protected $updatedAt; + + /** + * Unique identifier of the custom property. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Unique identifier of the custom property. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * Display name of the property. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Display name of the property. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Field type. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Field type. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + */ + public function getRequired(): ?bool + { + return $this->required; + } + + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + */ + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } + + /** + * For list type only — whether multiple options can be selected. Null for text type. + */ + public function getMultipleAnswerAllowed(): ?bool + { + return $this->multipleAnswerAllowed; + } + + /** + * For list type only — whether multiple options can be selected. Null for text type. + */ + public function setMultipleAnswerAllowed(?bool $multipleAnswerAllowed): self + { + $this->initialized['multipleAnswerAllowed'] = true; + $this->multipleAnswerAllowed = $multipleAnswerAllowed; + + return $this; + } + + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @return list|null + */ + public function getWorkspaceIds(): ?array + { + return $this->workspaceIds; + } + + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @param list|null $workspaceIds + */ + public function setWorkspaceIds(?array $workspaceIds): self + { + $this->initialized['workspaceIds'] = true; + $this->workspaceIds = $workspaceIds; + + return $this; + } + + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + */ + public function getDefaultValue(): ?string + { + return $this->defaultValue; + } + + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + */ + public function setDefaultValue(?string $defaultValue): self + { + $this->initialized['defaultValue'] = true; + $this->defaultValue = $defaultValue; + + return $this; + } + + /** + * For list type only: selectable options. + * Null for text type. + * + * @return list|null + */ + public function getOptions(): ?array + { + return $this->options; + } + + /** + * For list type only: selectable options. + * Null for text type. + * + * @param list|null $options + */ + public function setOptions(?array $options): self + { + $this->initialized['options'] = true; + $this->options = $options; + + return $this; + } + + /** + * Creation timestamp (ISO 8601). + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation timestamp (ISO 8601). + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Last update timestamp (ISO 8601). + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Last update timestamp (ISO 8601). + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'name' => ['name', 'getName', 'setName'], 'type' => ['type', 'getType', 'setType'], 'required' => ['required', 'getRequired', 'setRequired'], 'multipleAnswerAllowed' => ['multiple_answer_allowed', 'getMultipleAnswerAllowed', 'setMultipleAnswerAllowed'], 'workspaceIds' => ['workspace_ids', 'getWorkspaceIds', 'setWorkspaceIds'], 'defaultValue' => ['default_value', 'getDefaultValue', 'setDefaultValue'], 'options' => ['options', 'getOptions', 'setOptions'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt']]; + } +} diff --git a/generated/Model/CustomPropertyInList.php b/generated/Model/CustomPropertyInList.php new file mode 100644 index 0000000..d891733 --- /dev/null +++ b/generated/Model/CustomPropertyInList.php @@ -0,0 +1,236 @@ +initialized); + } + /** + * Unique identifier of the custom property. + * + * @var string|null + */ + protected $id; + /** + * Display name of the property. + * + * @var string|null + */ + protected $name; + /** + * Type of the custom property. + * + * @var string|null + */ + protected $type; + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + * + * @var bool|null + */ + protected $required; + /** + * For list type only — whether multiple options can be selected. Null for text type. + * + * @var bool|null + */ + protected $multipleAnswerAllowed; + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @var list|null + */ + protected $workspaceIds; + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + * + * @var string|null + */ + protected $defaultValue; + /** + * For list type only: selectable options. + * Null for text type. + * + * @var list|null + */ + protected $options; + + /** + * Unique identifier of the custom property. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Unique identifier of the custom property. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * Display name of the property. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Display name of the property. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Type of the custom property. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the custom property. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + */ + public function getRequired(): ?bool + { + return $this->required; + } + + /** + * Whether users must fill this property before sending the SR via the application (not enforced via API). + */ + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } + + /** + * For list type only — whether multiple options can be selected. Null for text type. + */ + public function getMultipleAnswerAllowed(): ?bool + { + return $this->multipleAnswerAllowed; + } + + /** + * For list type only — whether multiple options can be selected. Null for text type. + */ + public function setMultipleAnswerAllowed(?bool $multipleAnswerAllowed): self + { + $this->initialized['multipleAnswerAllowed'] = true; + $this->multipleAnswerAllowed = $multipleAnswerAllowed; + + return $this; + } + + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @return list|null + */ + public function getWorkspaceIds(): ?array + { + return $this->workspaceIds; + } + + /** + * List of workspace IDs where this property is applicable. Null means org-wide. + * + * @param list|null $workspaceIds + */ + public function setWorkspaceIds(?array $workspaceIds): self + { + $this->initialized['workspaceIds'] = true; + $this->workspaceIds = $workspaceIds; + + return $this; + } + + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + */ + public function getDefaultValue(): ?string + { + return $this->defaultValue; + } + + /** + * For text type only — default text pre-filled on new signature requests. Null for list type. + */ + public function setDefaultValue(?string $defaultValue): self + { + $this->initialized['defaultValue'] = true; + $this->defaultValue = $defaultValue; + + return $this; + } + + /** + * For list type only: selectable options. + * Null for text type. + * + * @return list|null + */ + public function getOptions(): ?array + { + return $this->options; + } + + /** + * For list type only: selectable options. + * Null for text type. + * + * @param list|null $options + */ + public function setOptions(?array $options): self + { + $this->initialized['options'] = true; + $this->options = $options; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'name' => ['name', 'getName', 'setName'], 'type' => ['type', 'getType', 'setType'], 'required' => ['required', 'getRequired', 'setRequired'], 'multipleAnswerAllowed' => ['multiple_answer_allowed', 'getMultipleAnswerAllowed', 'setMultipleAnswerAllowed'], 'workspaceIds' => ['workspace_ids', 'getWorkspaceIds', 'setWorkspaceIds'], 'defaultValue' => ['default_value', 'getDefaultValue', 'setDefaultValue'], 'options' => ['options', 'getOptions', 'setOptions']]; + } +} diff --git a/generated/Model/CustomPropertyList.php b/generated/Model/CustomPropertyList.php new file mode 100644 index 0000000..b5b2509 --- /dev/null +++ b/generated/Model/CustomPropertyList.php @@ -0,0 +1,82 @@ +initialized); + } + /** + * List of custom properties. + * + * @var list|null + */ + protected $data; + /** + * Cursor for the next page. + * Null if no more pages available. + * + * @var string|null + */ + protected $nextCursor; + + /** + * List of custom properties. + * + * @return list|null + */ + public function getData(): ?array + { + return $this->data; + } + + /** + * List of custom properties. + * + * @param list|null $data + */ + public function setData(?array $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + /** + * Cursor for the next page. + * Null if no more pages available. + */ + public function getNextCursor(): ?string + { + return $this->nextCursor; + } + + /** + * Cursor for the next page. + * Null if no more pages available. + */ + public function setNextCursor(?string $nextCursor): self + { + $this->initialized['nextCursor'] = true; + $this->nextCursor = $nextCursor; + + return $this; + } + + public function definedProperties(): array + { + return ['data' => ['data', 'getData', 'setData'], 'nextCursor' => ['next_cursor', 'getNextCursor', 'setNextCursor']]; + } +} diff --git a/generated/Model/CustomPropertyOption.php b/generated/Model/CustomPropertyOption.php new file mode 100644 index 0000000..f68318b --- /dev/null +++ b/generated/Model/CustomPropertyOption.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * Unique identifier of the option. + * + * @var string|null + */ + protected $id; + /** + * Display text of the option. + * + * @var string|null + */ + protected $value; + /** + * Whether this option is pre-selected on new SRs. + * + * @var bool|null + */ + protected $isDefault; + /** + * Sort order. + * + * @var int|null + */ + protected $position; + + /** + * Unique identifier of the option. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Unique identifier of the option. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * Display text of the option. + */ + public function getValue(): ?string + { + return $this->value; + } + + /** + * Display text of the option. + */ + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + /** + * Whether this option is pre-selected on new SRs. + */ + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + /** + * Whether this option is pre-selected on new SRs. + */ + public function setIsDefault(?bool $isDefault): self + { + $this->initialized['isDefault'] = true; + $this->isDefault = $isDefault; + + return $this; + } + + /** + * Sort order. + */ + public function getPosition(): ?int + { + return $this->position; + } + + /** + * Sort order. + */ + public function setPosition(?int $position): self + { + $this->initialized['position'] = true; + $this->position = $position; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'value' => ['value', 'getValue', 'setValue'], 'isDefault' => ['is_default', 'getIsDefault', 'setIsDefault'], 'position' => ['position', 'getPosition', 'setPosition']]; + } +} diff --git a/generated/Model/CustomPropertyOptionInput.php b/generated/Model/CustomPropertyOptionInput.php new file mode 100644 index 0000000..2a66d05 --- /dev/null +++ b/generated/Model/CustomPropertyOptionInput.php @@ -0,0 +1,103 @@ +initialized); + } + /** + * Display text of the option. + * + * @var string|null + */ + protected $value; + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + * + * @var bool|null + */ + protected $isDefault = false; + /** + * Sort order (0-based). If omitted, values are ordered as provided. + * + * @var int|null + */ + protected $position; + + /** + * Display text of the option. + */ + public function getValue(): ?string + { + return $this->value; + } + + /** + * Display text of the option. + */ + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + */ + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + */ + public function setIsDefault(?bool $isDefault): self + { + $this->initialized['isDefault'] = true; + $this->isDefault = $isDefault; + + return $this; + } + + /** + * Sort order (0-based). If omitted, values are ordered as provided. + */ + public function getPosition(): ?int + { + return $this->position; + } + + /** + * Sort order (0-based). If omitted, values are ordered as provided. + */ + public function setPosition(?int $position): self + { + $this->initialized['position'] = true; + $this->position = $position; + + return $this; + } + + public function definedProperties(): array + { + return ['value' => ['value', 'getValue', 'setValue'], 'isDefault' => ['is_default', 'getIsDefault', 'setIsDefault'], 'position' => ['position', 'getPosition', 'setPosition']]; + } +} diff --git a/generated/Model/CustomPropertyOptionUpdate.php b/generated/Model/CustomPropertyOptionUpdate.php new file mode 100644 index 0000000..3abb81b --- /dev/null +++ b/generated/Model/CustomPropertyOptionUpdate.php @@ -0,0 +1,131 @@ +initialized); + } + /** + * Include for existing options to preserve them. + * Omit for new options (a new id will be generated). + * + * @var string|null + */ + protected $id; + /** + * Display text of the option. + * + * @var string|null + */ + protected $value; + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + * + * @var bool|null + */ + protected $isDefault = false; + /** + * Sort order (0-based). If omitted, values are ordered as provided. + * + * @var int|null + */ + protected $position; + + /** + * Include for existing options to preserve them. + * Omit for new options (a new id will be generated). + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * Include for existing options to preserve them. + * Omit for new options (a new id will be generated). + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * Display text of the option. + */ + public function getValue(): ?string + { + return $this->value; + } + + /** + * Display text of the option. + */ + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + */ + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + /** + * Whether this option is pre-selected on new SRs. + * Multiple defaults allowed if multiple_answer_allowed is true. + */ + public function setIsDefault(?bool $isDefault): self + { + $this->initialized['isDefault'] = true; + $this->isDefault = $isDefault; + + return $this; + } + + /** + * Sort order (0-based). If omitted, values are ordered as provided. + */ + public function getPosition(): ?int + { + return $this->position; + } + + /** + * Sort order (0-based). If omitted, values are ordered as provided. + */ + public function setPosition(?int $position): self + { + $this->initialized['position'] = true; + $this->position = $position; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'value' => ['value', 'getValue', 'setValue'], 'isDefault' => ['is_default', 'getIsDefault', 'setIsDefault'], 'position' => ['position', 'getPosition', 'setPosition']]; + } +} diff --git a/generated/Model/CustomPropertyValue.php b/generated/Model/CustomPropertyValue.php new file mode 100644 index 0000000..d128b54 --- /dev/null +++ b/generated/Model/CustomPropertyValue.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * ID of the Custom Property. + * + * @var string|null + */ + protected $id; + /** + * Name of the Custom Property. + * + * @var string|null + */ + protected $name; + /** + * Type of the custom property. + * + * @var string|null + */ + protected $type; + /** + * Text value for text properties. + * + * @var string|null + */ + protected $value; + /** + * Array of option ids for list properties. + * + * @var list|null + */ + protected $valueIds; + /** + * Array of option values for list properties. + * + * @var list|null + */ + protected $values; + + /** + * ID of the Custom Property. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * ID of the Custom Property. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * Name of the Custom Property. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Custom Property. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Type of the custom property. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the custom property. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Text value for text properties. + */ + public function getValue(): ?string + { + return $this->value; + } + + /** + * Text value for text properties. + */ + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + /** + * Array of option ids for list properties. + * + * @return list|null + */ + public function getValueIds(): ?array + { + return $this->valueIds; + } + + /** + * Array of option ids for list properties. + * + * @param list|null $valueIds + */ + public function setValueIds(?array $valueIds): self + { + $this->initialized['valueIds'] = true; + $this->valueIds = $valueIds; + + return $this; + } + + /** + * Array of option values for list properties. + * + * @return list|null + */ + public function getValues(): ?array + { + return $this->values; + } + + /** + * Array of option values for list properties. + * + * @param list|null $values + */ + public function setValues(?array $values): self + { + $this->initialized['values'] = true; + $this->values = $values; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'name' => ['name', 'getName', 'setName'], 'type' => ['type', 'getType', 'setType'], 'value' => ['value', 'getValue', 'setValue'], 'valueIds' => ['value_ids', 'getValueIds', 'setValueIds'], 'values' => ['values', 'getValues', 'setValues']]; + } +} diff --git a/generated/Model/CustomText.php b/generated/Model/CustomText.php new file mode 100644 index 0000000..a9e13e3 --- /dev/null +++ b/generated/Model/CustomText.php @@ -0,0 +1,125 @@ +initialized); + } + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + * + * @var string|null + */ + protected $requestSubject; + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + * + * @var string|null + */ + protected $requestBody; + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + * + * @var string|null + */ + protected $reminderSubject; + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + * + * @var string|null + */ + protected $reminderBody; + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function getRequestSubject(): ?string + { + return $this->requestSubject; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function setRequestSubject(?string $requestSubject): self + { + $this->initialized['requestSubject'] = true; + $this->requestSubject = $requestSubject; + + return $this; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function getRequestBody(): ?string + { + return $this->requestBody; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function setRequestBody(?string $requestBody): self + { + $this->initialized['requestBody'] = true; + $this->requestBody = $requestBody; + + return $this; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function getReminderSubject(): ?string + { + return $this->reminderSubject; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function setReminderSubject(?string $reminderSubject): self + { + $this->initialized['reminderSubject'] = true; + $this->reminderSubject = $reminderSubject; + + return $this; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function getReminderBody(): ?string + { + return $this->reminderBody; + } + + /** + * This property is a [Safe String](https://developers.youtrust.com/reference/oas-specification#safe-string) allowing email and leading or trailing whitespaces. + */ + public function setReminderBody(?string $reminderBody): self + { + $this->initialized['reminderBody'] = true; + $this->reminderBody = $reminderBody; + + return $this; + } + + public function definedProperties(): array + { + return ['requestSubject' => ['request_subject', 'getRequestSubject', 'setRequestSubject'], 'requestBody' => ['request_body', 'getRequestBody', 'setRequestBody'], 'reminderSubject' => ['reminder_subject', 'getReminderSubject', 'setReminderSubject'], 'reminderBody' => ['reminder_body', 'getReminderBody', 'setReminderBody']]; + } +} diff --git a/generated/Model/DeleteWorkspace.php b/generated/Model/DeleteWorkspace.php index 7f9fbda..8afb1eb 100644 --- a/generated/Model/DeleteWorkspace.php +++ b/generated/Model/DeleteWorkspace.php @@ -2,7 +2,7 @@ namespace Qdequippe\Yousign\Api\Model; -class DeleteWorkspace extends \ArrayObject +class DeleteWorkspace { /** * @var array diff --git a/generated/Model/DetailedConsumption.php b/generated/Model/DetailedConsumption.php index 5312015..3c7ad49 100644 --- a/generated/Model/DetailedConsumption.php +++ b/generated/Model/DetailedConsumption.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class DetailedConsumption extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class DetailedConsumption implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -22,11 +26,16 @@ public function isInitialized($property): bool */ protected $type; /** + * Specifies the level of the consumed eSignature, eSeal and QES identification attempts: simple, advanced, or qualified. * Only set when type is either `invited_signer`, `electronic_seals`, `identification_attempts`. * * @var string|null */ protected $level; + /** + * @var string|null + */ + protected $verificationType; /** * Only set if type is identification_attempts. * @@ -73,6 +82,7 @@ public function setType(?string $type): self } /** + * Specifies the level of the consumed eSignature, eSeal and QES identification attempts: simple, advanced, or qualified. * Only set when type is either `invited_signer`, `electronic_seals`, `identification_attempts`. */ public function getLevel(): ?string @@ -81,6 +91,7 @@ public function getLevel(): ?string } /** + * Specifies the level of the consumed eSignature, eSeal and QES identification attempts: simple, advanced, or qualified. * Only set when type is either `invited_signer`, `electronic_seals`, `identification_attempts`. */ public function setLevel(?string $level): self @@ -91,6 +102,19 @@ public function setLevel(?string $level): self return $this; } + public function getVerificationType(): ?string + { + return $this->verificationType; + } + + public function setVerificationType(?string $verificationType): self + { + $this->initialized['verificationType'] = true; + $this->verificationType = $verificationType; + + return $this; + } + /** * Only set if type is identification_attempts. */ @@ -147,4 +171,9 @@ public function setValue(?int $value): self return $this; } + + public function definedProperties(): array + { + return ['source' => ['source', 'getSource', 'setSource'], 'type' => ['type', 'getType', 'setType'], 'level' => ['level', 'getLevel', 'setLevel'], 'verificationType' => ['verification_type', 'getVerificationType', 'setVerificationType'], 'identificationMode' => ['identification_mode', 'getIdentificationMode', 'setIdentificationMode'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'value' => ['value', 'getValue', 'setValue']]; + } } diff --git a/generated/Model/DetailedLayout.php b/generated/Model/DetailedLayout.php new file mode 100644 index 0000000..5e98f2b --- /dev/null +++ b/generated/Model/DetailedLayout.php @@ -0,0 +1,78 @@ +initialized); + } + /** + * `minimal` (default): Only shows the signer’s signature visual. + * `detailed`: Adds extra detail to the signature field, including the signer’s full name, email, and the date of signature. + * + * @var string|null + */ + protected $layout; + /** + * Only applicable when `display.layout = detailed`. + * + * @var SignatureDisplayOneOf1Options|null + */ + protected $options; + + /** + * `minimal` (default): Only shows the signer’s signature visual. + * `detailed`: Adds extra detail to the signature field, including the signer’s full name, email, and the date of signature. + */ + public function getLayout(): ?string + { + return $this->layout; + } + + /** + * `minimal` (default): Only shows the signer’s signature visual. + * `detailed`: Adds extra detail to the signature field, including the signer’s full name, email, and the date of signature. + */ + public function setLayout(?string $layout): self + { + $this->initialized['layout'] = true; + $this->layout = $layout; + + return $this; + } + + /** + * Only applicable when `display.layout = detailed`. + */ + public function getOptions(): ?SignatureDisplayOneOf1Options + { + return $this->options; + } + + /** + * Only applicable when `display.layout = detailed`. + */ + public function setOptions(?SignatureDisplayOneOf1Options $options): self + { + $this->initialized['options'] = true; + $this->options = $options; + + return $this; + } + + public function definedProperties(): array + { + return ['layout' => ['layout', 'getLayout', 'setLayout'], 'options' => ['options', 'getOptions', 'setOptions']]; + } +} diff --git a/generated/Model/Document.php b/generated/Model/Document.php index 12b22da..8b555d4 100644 --- a/generated/Model/Document.php +++ b/generated/Model/Document.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Document extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Document implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -69,6 +73,18 @@ public function isInitialized($property): bool * @var int|null */ protected $totalAnchors; + /** + * List of Approver IDs who cannot see this Document. + * + * @var list|null + */ + protected $excludedApprovers; + /** + * List of Signer IDs who cannot see this Document. + * + * @var list|null + */ + protected $excludedSigners; public function getId(): ?string { @@ -249,4 +265,55 @@ public function setTotalAnchors(?int $totalAnchors): self return $this; } + + /** + * List of Approver IDs who cannot see this Document. + * + * @return list|null + */ + public function getExcludedApprovers(): ?array + { + return $this->excludedApprovers; + } + + /** + * List of Approver IDs who cannot see this Document. + * + * @param list|null $excludedApprovers + */ + public function setExcludedApprovers(?array $excludedApprovers): self + { + $this->initialized['excludedApprovers'] = true; + $this->excludedApprovers = $excludedApprovers; + + return $this; + } + + /** + * List of Signer IDs who cannot see this Document. + * + * @return list|null + */ + public function getExcludedSigners(): ?array + { + return $this->excludedSigners; + } + + /** + * List of Signer IDs who cannot see this Document. + * + * @param list|null $excludedSigners + */ + public function setExcludedSigners(?array $excludedSigners): self + { + $this->initialized['excludedSigners'] = true; + $this->excludedSigners = $excludedSigners; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'filename' => ['filename', 'getFilename', 'setFilename'], 'nature' => ['nature', 'getNature', 'setNature'], 'contentType' => ['content_type', 'getContentType', 'setContentType'], 'sha256' => ['sha256', 'getSha256', 'setSha256'], 'isProtected' => ['is_protected', 'getIsProtected', 'setIsProtected'], 'isSigned' => ['is_signed', 'getIsSigned', 'setIsSigned'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'totalPages' => ['total_pages', 'getTotalPages', 'setTotalPages'], 'isLocked' => ['is_locked', 'getIsLocked', 'setIsLocked'], 'initials' => ['initials', 'getInitials', 'setInitials'], 'totalAnchors' => ['total_anchors', 'getTotalAnchors', 'setTotalAnchors'], 'excludedApprovers' => ['excluded_approvers', 'getExcludedApprovers', 'setExcludedApprovers'], 'excludedSigners' => ['excluded_signers', 'getExcludedSigners', 'setExcludedSigners']]; + } } diff --git a/generated/Model/DocumentAnalysisCheck.php b/generated/Model/DocumentAnalysisCheck.php new file mode 100644 index 0000000..c8de10b --- /dev/null +++ b/generated/Model/DocumentAnalysisCheck.php @@ -0,0 +1,91 @@ +initialized); + } + /** + * The extracted value from the document. + * + * @var string|null + */ + protected $extracted; + /** + * The expected value for the check. + * + * @var string|null + */ + protected $expected; + /** + * Level of match between extracted and expected value. + * + * @var string|null + */ + protected $matchLevel; + + /** + * The extracted value from the document. + */ + public function getExtracted(): ?string + { + return $this->extracted; + } + + /** + * The extracted value from the document. + */ + public function setExtracted(?string $extracted): self + { + $this->initialized['extracted'] = true; + $this->extracted = $extracted; + + return $this; + } + + /** + * The expected value for the check. + */ + public function getExpected(): ?string + { + return $this->expected; + } + + /** + * The expected value for the check. + */ + public function setExpected(?string $expected): self + { + $this->initialized['expected'] = true; + $this->expected = $expected; + + return $this; + } + + /** + * Level of match between extracted and expected value. + */ + public function getMatchLevel(): ?string + { + return $this->matchLevel; + } + + /** + * Level of match between extracted and expected value. + */ + public function setMatchLevel(?string $matchLevel): self + { + $this->initialized['matchLevel'] = true; + $this->matchLevel = $matchLevel; + + return $this; + } +} diff --git a/generated/Model/DocumentAnalysisMeta.php b/generated/Model/DocumentAnalysisMeta.php new file mode 100644 index 0000000..5efbcce --- /dev/null +++ b/generated/Model/DocumentAnalysisMeta.php @@ -0,0 +1,421 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * Type of the analysed document. + * `null` for fraud-only analyses (`analysis_type.extraction` is `false`). + * + * @var string|null + */ + protected $type; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * Type of the analysed document. + * `null` for fraud-only analyses (`analysis_type.extraction` is `false`). + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the analysed document. + * `null` for fraud-only analyses (`analysis_type.extraction` is `false`). + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'type' => ['type', 'getType', 'setType'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification']]; + } +} diff --git a/generated/Model/DocumentAnalysisMeta1.php b/generated/Model/DocumentAnalysisMeta1.php new file mode 100644 index 0000000..98fe961 --- /dev/null +++ b/generated/Model/DocumentAnalysisMeta1.php @@ -0,0 +1,418 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification']]; + } +} diff --git a/generated/Model/DocumentClassification.php b/generated/Model/DocumentClassification.php new file mode 100644 index 0000000..18b978c --- /dev/null +++ b/generated/Model/DocumentClassification.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * The document type detected on the analysed document, `null` when the analysed document matches no supported type. New values may be added over time; integrations must tolerate unknown values. + * + * @var string|null + */ + protected $documentType; + /** + * The issuing country detected on the analysed document, as an uppercase ISO 3166-1 alpha-2 code, `null` when no issuing country could be matched on the document, for example when no supported type was recognised or when the issuing country is outside the supported list. + * + * @var string|null + */ + protected $countryCode; + + /** + * The document type detected on the analysed document, `null` when the analysed document matches no supported type. New values may be added over time; integrations must tolerate unknown values. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type detected on the analysed document, `null` when the analysed document matches no supported type. New values may be added over time; integrations must tolerate unknown values. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } + + /** + * The issuing country detected on the analysed document, as an uppercase ISO 3166-1 alpha-2 code, `null` when no issuing country could be matched on the document, for example when no supported type was recognised or when the issuing country is outside the supported list. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The issuing country detected on the analysed document, as an uppercase ISO 3166-1 alpha-2 code, `null` when no issuing country could be matched on the document, for example when no supported type was recognised or when the issuing country is outside the supported list. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } +} diff --git a/generated/Model/DocumentInitials.php b/generated/Model/DocumentInitials.php index 2ab1656..946a58c 100644 --- a/generated/Model/DocumentInitials.php +++ b/generated/Model/DocumentInitials.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class DocumentInitials extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class DocumentInitials implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,20 +18,24 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Initials alignment on the document. + * Alignment of the initials on the document’s pages. * * @var string|null */ protected $alignment; /** - * y-axis position on the document. + * Y-axis position of the initials on the first page of the document. * * @var int|null */ protected $y; + /** + * @var list|null + */ + protected $perPage; /** - * Initials alignment on the document. + * Alignment of the initials on the document’s pages. */ public function getAlignment(): ?string { @@ -35,7 +43,7 @@ public function getAlignment(): ?string } /** - * Initials alignment on the document. + * Alignment of the initials on the document’s pages. */ public function setAlignment(?string $alignment): self { @@ -46,7 +54,7 @@ public function setAlignment(?string $alignment): self } /** - * y-axis position on the document. + * Y-axis position of the initials on the first page of the document. */ public function getY(): ?int { @@ -54,7 +62,7 @@ public function getY(): ?int } /** - * y-axis position on the document. + * Y-axis position of the initials on the first page of the document. */ public function setY(?int $y): self { @@ -63,4 +71,28 @@ public function setY(?int $y): self return $this; } + + /** + * @return list|null + */ + public function getPerPage(): ?array + { + return $this->perPage; + } + + /** + * @param list|null $perPage + */ + public function setPerPage(?array $perPage): self + { + $this->initialized['perPage'] = true; + $this->perPage = $perPage; + + return $this; + } + + public function definedProperties(): array + { + return ['alignment' => ['alignment', 'getAlignment', 'setAlignment'], 'y' => ['y', 'getY', 'setY'], 'perPage' => ['per_page', 'getPerPage', 'setPerPage']]; + } } diff --git a/generated/Model/DocumentInitialsPerPageInner.php b/generated/Model/DocumentInitialsPerPageInner.php new file mode 100644 index 0000000..1ce76d1 --- /dev/null +++ b/generated/Model/DocumentInitialsPerPageInner.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Page number. + * + * @var int|null + */ + protected $page; + /** + * Y-axis position of the initials on the page. + * + * @var int|null + */ + protected $y; + + /** + * Page number. + */ + public function getPage(): ?int + { + return $this->page; + } + + /** + * Page number. + */ + public function setPage(?int $page): self + { + $this->initialized['page'] = true; + $this->page = $page; + + return $this; + } + + /** + * Y-axis position of the initials on the page. + */ + public function getY(): ?int + { + return $this->y; + } + + /** + * Y-axis position of the initials on the page. + */ + public function setY(?int $y): self + { + $this->initialized['y'] = true; + $this->y = $y; + + return $this; + } + + public function definedProperties(): array + { + return ['page' => ['page', 'getPage', 'setPage'], 'y' => ['y', 'getY', 'setY']]; + } +} diff --git a/generated/Model/DriverLicenceCheck.php b/generated/Model/DriverLicenceCheck.php new file mode 100644 index 0000000..f1beca0 --- /dev/null +++ b/generated/Model/DriverLicenceCheck.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + * + * @var DocumentAnalysisCheck|null + */ + protected $fullName; + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function getFullName(): ?DocumentAnalysisCheck + { + return $this->fullName; + } + + /** + * Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match). + */ + public function setFullName(?DocumentAnalysisCheck $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } +} diff --git a/generated/Model/DriverLicenceExtraction.php b/generated/Model/DriverLicenceExtraction.php new file mode 100644 index 0000000..9b088b7 --- /dev/null +++ b/generated/Model/DriverLicenceExtraction.php @@ -0,0 +1,195 @@ +initialized); + } + /** + * First name of the individual. + * + * @var string|null + */ + protected $firstName; + /** + * Last name of the individual. + * + * @var string|null + */ + protected $lastName; + /** + * Full name of the individual. + * + * @var string|null + */ + protected $fullName; + /** + * Date of birth of the individual. + * + * @var \DateTime|null + */ + protected $bornOn; + /** + * Expiration date of the driver licence. + * + * @var \DateTime|null + */ + protected $expiredOn; + /** + * List of license types. + * + * @var list|null + */ + protected $licenseType; + /** + * Classification label extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * First name of the individual. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * First name of the individual. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * Last name of the individual. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * Last name of the individual. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * Full name of the individual. + */ + public function getFullName(): ?string + { + return $this->fullName; + } + + /** + * Full name of the individual. + */ + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + /** + * Date of birth of the individual. + */ + public function getBornOn(): ?\DateTime + { + return $this->bornOn; + } + + /** + * Date of birth of the individual. + */ + public function setBornOn(?\DateTime $bornOn): self + { + $this->initialized['bornOn'] = true; + $this->bornOn = $bornOn; + + return $this; + } + + /** + * Expiration date of the driver licence. + */ + public function getExpiredOn(): ?\DateTime + { + return $this->expiredOn; + } + + /** + * Expiration date of the driver licence. + */ + public function setExpiredOn(?\DateTime $expiredOn): self + { + $this->initialized['expiredOn'] = true; + $this->expiredOn = $expiredOn; + + return $this; + } + + /** + * List of license types. + * + * @return list|null + */ + public function getLicenseType(): ?array + { + return $this->licenseType; + } + + /** + * List of license types. + * + * @param list|null $licenseType + */ + public function setLicenseType(?array $licenseType): self + { + $this->initialized['licenseType'] = true; + $this->licenseType = $licenseType; + + return $this; + } + + /** + * Classification label extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * Classification label extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/DriverLicenceFull.php b/generated/Model/DriverLicenceFull.php new file mode 100644 index 0000000..766b47c --- /dev/null +++ b/generated/Model/DriverLicenceFull.php @@ -0,0 +1,477 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * @var DriverLicenceExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var DriverLicenceCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getExtractedFromDocument(): ?DriverLicenceExtraction + { + return $this->extractedFromDocument; + } + + public function setExtractedFromDocument(?DriverLicenceExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?DriverLicenceCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?DriverLicenceCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/DuplicateASignatureRequest.php b/generated/Model/DuplicateASignatureRequest.php new file mode 100644 index 0000000..2a22837 --- /dev/null +++ b/generated/Model/DuplicateASignatureRequest.php @@ -0,0 +1,156 @@ +initialized); + } + /** + * ID of the signature request to duplicate. + * + * @var string|null + */ + protected $signatureRequestId; + /** + * The name of the new Signature Request. + * + * @var string|null + */ + protected $name; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Embedded Preparation settings for this Signature Request. + * + * @var SignatureRequestEmbeddedPreparation|null + */ + protected $embeddedPreparation; + + /** + * ID of the signature request to duplicate. + */ + public function getSignatureRequestId(): ?string + { + return $this->signatureRequestId; + } + + /** + * ID of the signature request to duplicate. + */ + public function setSignatureRequestId(?string $signatureRequestId): self + { + $this->initialized['signatureRequestId'] = true; + $this->signatureRequestId = $signatureRequestId; + + return $this; + } + + /** + * The name of the new Signature Request. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * The name of the new Signature Request. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Embedded Preparation settings for this Signature Request. + */ + public function getEmbeddedPreparation(): ?SignatureRequestEmbeddedPreparation + { + return $this->embeddedPreparation; + } + + /** + * Embedded Preparation settings for this Signature Request. + */ + public function setEmbeddedPreparation(?SignatureRequestEmbeddedPreparation $embeddedPreparation): self + { + $this->initialized['embeddedPreparation'] = true; + $this->embeddedPreparation = $embeddedPreparation; + + return $this; + } + + public function definedProperties(): array + { + return ['signatureRequestId' => ['signature_request_id', 'getSignatureRequestId', 'setSignatureRequestId'], 'name' => ['name', 'getName', 'setName'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'embeddedPreparation' => ['embedded_preparation', 'getEmbeddedPreparation', 'setEmbeddedPreparation']]; + } +} diff --git a/generated/Model/ElectronicSeal.php b/generated/Model/ElectronicSeal.php index 3bed2ba..481aa58 100644 --- a/generated/Model/ElectronicSeal.php +++ b/generated/Model/ElectronicSeal.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ElectronicSeal extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ElectronicSeal implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -47,6 +51,12 @@ public function isInitialized($property): bool * @var string|null */ protected $signatureLevel; + /** + * Unique identifier of the Workspace in which this Electronic Seal is scoped. + * + * @var string|null + */ + protected $workspaceId; public function getId(): ?string { @@ -157,4 +167,28 @@ public function setSignatureLevel(?string $signatureLevel): self return $this; } + + /** + * Unique identifier of the Workspace in which this Electronic Seal is scoped. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * Unique identifier of the Workspace in which this Electronic Seal is scoped. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'status' => ['status', 'getStatus', 'setStatus'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'timestamp' => ['timestamp', 'getTimestamp', 'setTimestamp'], 'imageId' => ['image_id', 'getImageId', 'setImageId'], 'externalId' => ['external_id', 'getExternalId', 'setExternalId'], 'signatureLevel' => ['signature_level', 'getSignatureLevel', 'setSignatureLevel'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/ElectronicSealAuditTrail.php b/generated/Model/ElectronicSealAuditTrail.php index e925de8..19cce13 100644 --- a/generated/Model/ElectronicSealAuditTrail.php +++ b/generated/Model/ElectronicSealAuditTrail.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ElectronicSealAuditTrail extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ElectronicSealAuditTrail implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -116,4 +120,9 @@ public function setDocument(?iterable $document): self return $this; } + + public function definedProperties(): array + { + return ['version' => ['version', 'getVersion', 'setVersion'], 'classification' => ['classification', 'getClassification', 'setClassification'], 'organization' => ['organization', 'getOrganization', 'setOrganization'], 'seal' => ['seal', 'getSeal', 'setSeal'], 'document' => ['document', 'getDocument', 'setDocument']]; + } } diff --git a/generated/Model/ElectronicSealDocument.php b/generated/Model/ElectronicSealDocument.php index 3bdff2c..e3f693e 100644 --- a/generated/Model/ElectronicSealDocument.php +++ b/generated/Model/ElectronicSealDocument.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ElectronicSealDocument extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ElectronicSealDocument implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -25,6 +29,12 @@ public function isInitialized($property): bool * @var \DateTime|null */ protected $createdAt; + /** + * Unique identifier of the Workspace in which this Electronic Seal Document is scoped. + * + * @var string|null + */ + protected $workspaceId; public function getId(): ?string { @@ -64,4 +74,28 @@ public function setCreatedAt(?\DateTime $createdAt): self return $this; } + + /** + * Unique identifier of the Workspace in which this Electronic Seal Document is scoped. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * Unique identifier of the Workspace in which this Electronic Seal Document is scoped. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'totalPages' => ['total_pages', 'getTotalPages', 'setTotalPages'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/ElectronicSealImage.php b/generated/Model/ElectronicSealImage.php index 32d4160..85793df 100644 --- a/generated/Model/ElectronicSealImage.php +++ b/generated/Model/ElectronicSealImage.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ElectronicSealImage extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ElectronicSealImage implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -25,6 +29,12 @@ public function isInitialized($property): bool * @var \DateTime|null */ protected $createdAt; + /** + * Unique identifier of the Workspace in which this Electronic Seal Image is scoped. + * + * @var string|null + */ + protected $workspaceId; public function getId(): ?string { @@ -64,4 +74,28 @@ public function setCreatedAt(?\DateTime $createdAt): self return $this; } + + /** + * Unique identifier of the Workspace in which this Electronic Seal Image is scoped. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * Unique identifier of the Workspace in which this Electronic Seal Image is scoped. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'name' => ['name', 'getName', 'setName'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId']]; + } } diff --git a/generated/Model/ElectronicSealsConsumption.php b/generated/Model/ElectronicSealsConsumption.php new file mode 100644 index 0000000..82df223 --- /dev/null +++ b/generated/Model/ElectronicSealsConsumption.php @@ -0,0 +1,268 @@ +initialized); + } + /** + * @var string|null + */ + protected $sealId; + /** + * @var string|null + */ + protected $documentId; + /** + * Level of the Electronic Seal applied. + * + * @var string|null + */ + protected $sealLevel; + /** + * Creation time of the record. + * + * @var string|null + */ + protected $createdAt; + /** + * Origin of the operation. + * + * @var string|null + */ + protected $source; + /** + * Optional user-defined identifier. + * + * @var string|null + */ + protected $externalId; + /** + * @var string|null + */ + protected $certificateId; + /** + * @var string|null + */ + protected $workspaceId; + /** + * Identifier of the key used for the operation. + * + * @var string|null + */ + protected $authenticationKey; + /** + * Name of the workspace. + * + * @var string|null + */ + protected $workspaceName; + /** + * External name of the workspace. + * + * @var string|null + */ + protected $workspaceExternalName; + + public function getSealId(): ?string + { + return $this->sealId; + } + + public function setSealId(?string $sealId): self + { + $this->initialized['sealId'] = true; + $this->sealId = $sealId; + + return $this; + } + + public function getDocumentId(): ?string + { + return $this->documentId; + } + + public function setDocumentId(?string $documentId): self + { + $this->initialized['documentId'] = true; + $this->documentId = $documentId; + + return $this; + } + + /** + * Level of the Electronic Seal applied. + */ + public function getSealLevel(): ?string + { + return $this->sealLevel; + } + + /** + * Level of the Electronic Seal applied. + */ + public function setSealLevel(?string $sealLevel): self + { + $this->initialized['sealLevel'] = true; + $this->sealLevel = $sealLevel; + + return $this; + } + + /** + * Creation time of the record. + */ + public function getCreatedAt(): ?string + { + return $this->createdAt; + } + + /** + * Creation time of the record. + */ + public function setCreatedAt(?string $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Origin of the operation. + */ + public function getSource(): ?string + { + return $this->source; + } + + /** + * Origin of the operation. + */ + public function setSource(?string $source): self + { + $this->initialized['source'] = true; + $this->source = $source; + + return $this; + } + + /** + * Optional user-defined identifier. + */ + public function getExternalId(): ?string + { + return $this->externalId; + } + + /** + * Optional user-defined identifier. + */ + public function setExternalId(?string $externalId): self + { + $this->initialized['externalId'] = true; + $this->externalId = $externalId; + + return $this; + } + + public function getCertificateId(): ?string + { + return $this->certificateId; + } + + public function setCertificateId(?string $certificateId): self + { + $this->initialized['certificateId'] = true; + $this->certificateId = $certificateId; + + return $this; + } + + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Identifier of the key used for the operation. + */ + public function getAuthenticationKey(): ?string + { + return $this->authenticationKey; + } + + /** + * Identifier of the key used for the operation. + */ + public function setAuthenticationKey(?string $authenticationKey): self + { + $this->initialized['authenticationKey'] = true; + $this->authenticationKey = $authenticationKey; + + return $this; + } + + /** + * Name of the workspace. + */ + public function getWorkspaceName(): ?string + { + return $this->workspaceName; + } + + /** + * Name of the workspace. + */ + public function setWorkspaceName(?string $workspaceName): self + { + $this->initialized['workspaceName'] = true; + $this->workspaceName = $workspaceName; + + return $this; + } + + /** + * External name of the workspace. + */ + public function getWorkspaceExternalName(): ?string + { + return $this->workspaceExternalName; + } + + /** + * External name of the workspace. + */ + public function setWorkspaceExternalName(?string $workspaceExternalName): self + { + $this->initialized['workspaceExternalName'] = true; + $this->workspaceExternalName = $workspaceExternalName; + + return $this; + } + + public function definedProperties(): array + { + return ['sealId' => ['seal_id', 'getSealId', 'setSealId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'sealLevel' => ['seal_level', 'getSealLevel', 'setSealLevel'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'source' => ['source', 'getSource', 'setSource'], 'externalId' => ['external_id', 'getExternalId', 'setExternalId'], 'certificateId' => ['certificate_id', 'getCertificateId', 'setCertificateId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'authenticationKey' => ['authentication_key', 'getAuthenticationKey', 'setAuthenticationKey'], 'workspaceName' => ['workspace_name', 'getWorkspaceName', 'setWorkspaceName'], 'workspaceExternalName' => ['workspace_external_name', 'getWorkspaceExternalName', 'setWorkspaceExternalName']]; + } +} diff --git a/generated/Model/EmailNotification.php b/generated/Model/EmailNotification.php index 7532830..d682afe 100644 --- a/generated/Model/EmailNotification.php +++ b/generated/Model/EmailNotification.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class EmailNotification extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class EmailNotification implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -42,4 +46,9 @@ public function setDisabled(?array $disabled): self return $this; } + + public function definedProperties(): array + { + return ['disabled' => ['disabled', 'getDisabled', 'setDisabled']]; + } } diff --git a/generated/Model/EmailNotification1.php b/generated/Model/EmailNotification1.php index a475070..83eadde 100644 --- a/generated/Model/EmailNotification1.php +++ b/generated/Model/EmailNotification1.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class EmailNotification1 extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class EmailNotification1 implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -36,4 +40,9 @@ public function setDisabled(?array $disabled): self return $this; } + + public function definedProperties(): array + { + return ['disabled' => ['disabled', 'getDisabled', 'setDisabled']]; + } } diff --git a/generated/Model/EmbeddedPreparationLink.php b/generated/Model/EmbeddedPreparationLink.php new file mode 100644 index 0000000..f35295d --- /dev/null +++ b/generated/Model/EmbeddedPreparationLink.php @@ -0,0 +1,50 @@ +initialized); + } + /** + * Short-lived URL opening the Signature Request Embedded Preparation. Expires after 10 minutes. + * + * @var string|null + */ + protected $url; + + /** + * Short-lived URL opening the Signature Request Embedded Preparation. Expires after 10 minutes. + */ + public function getUrl(): ?string + { + return $this->url; + } + + /** + * Short-lived URL opening the Signature Request Embedded Preparation. Expires after 10 minutes. + */ + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function definedProperties(): array + { + return ['url' => ['url', 'getUrl', 'setUrl']]; + } +} diff --git a/generated/Model/EmbeddedSignerWithSignatureLink.php b/generated/Model/EmbeddedSignerWithSignatureLink.php index e0e7b62..8590153 100644 --- a/generated/Model/EmbeddedSignerWithSignatureLink.php +++ b/generated/Model/EmbeddedSignerWithSignatureLink.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class EmbeddedSignerWithSignatureLink extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class EmbeddedSignerWithSignatureLink implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,27 +18,41 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** + * Unique identifier of the Signer. + * * @var string|null */ protected $id; /** + * Current status of the Signer. + * * @var string|null */ protected $status; /** + * Signature link for the Signer; `null` when `delivery_mode` is `email`. + * * @var string|null */ protected $signatureLink; /** + * Expiration timestamp of the signature link. + * * @var \DateTime|null */ protected $signatureLinkExpirationDate; + /** + * Unique identifier of the Signer. + */ public function getId(): ?string { return $this->id; } + /** + * Unique identifier of the Signer. + */ public function setId(?string $id): self { $this->initialized['id'] = true; @@ -43,11 +61,17 @@ public function setId(?string $id): self return $this; } + /** + * Current status of the Signer. + */ public function getStatus(): ?string { return $this->status; } + /** + * Current status of the Signer. + */ public function setStatus(?string $status): self { $this->initialized['status'] = true; @@ -56,11 +80,17 @@ public function setStatus(?string $status): self return $this; } + /** + * Signature link for the Signer; `null` when `delivery_mode` is `email`. + */ public function getSignatureLink(): ?string { return $this->signatureLink; } + /** + * Signature link for the Signer; `null` when `delivery_mode` is `email`. + */ public function setSignatureLink(?string $signatureLink): self { $this->initialized['signatureLink'] = true; @@ -69,11 +99,17 @@ public function setSignatureLink(?string $signatureLink): self return $this; } + /** + * Expiration timestamp of the signature link. + */ public function getSignatureLinkExpirationDate(): ?\DateTime { return $this->signatureLinkExpirationDate; } + /** + * Expiration timestamp of the signature link. + */ public function setSignatureLinkExpirationDate(?\DateTime $signatureLinkExpirationDate): self { $this->initialized['signatureLinkExpirationDate'] = true; @@ -81,4 +117,9 @@ public function setSignatureLinkExpirationDate(?\DateTime $signatureLinkExpirati return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'status' => ['status', 'getStatus', 'setStatus'], 'signatureLink' => ['signature_link', 'getSignatureLink', 'setSignatureLink'], 'signatureLinkExpirationDate' => ['signature_link_expiration_date', 'getSignatureLinkExpirationDate', 'setSignatureLinkExpirationDate']]; + } } diff --git a/generated/Model/FieldAnswer.php b/generated/Model/FieldAnswer.php new file mode 100644 index 0000000..7693abf --- /dev/null +++ b/generated/Model/FieldAnswer.php @@ -0,0 +1,48 @@ +initialized); + } + /** + * @var string|bool|null + */ + protected $value; + + /** + * @return string|bool|null + */ + public function getValue() + { + return $this->value; + } + + /** + * @param string|bool|null $value + */ + public function setValue($value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function definedProperties(): array + { + return ['value' => ['value', 'getValue', 'setValue']]; + } +} diff --git a/generated/Model/FieldCheckbox.php b/generated/Model/FieldCheckbox.php index 079a1c4..dc02e0a 100644 --- a/generated/Model/FieldCheckbox.php +++ b/generated/Model/FieldCheckbox.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldCheckbox extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldCheckbox implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -224,4 +228,9 @@ public function setSize(?int $size): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'name' => ['name', 'getName', 'setName'], 'checked' => ['checked', 'getChecked', 'setChecked'], 'page' => ['page', 'getPage', 'setPage'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'size' => ['size', 'getSize', 'setSize']]; + } } diff --git a/generated/Model/FieldMention.php b/generated/Model/FieldMention.php index ea968e1..b94edaa 100644 --- a/generated/Model/FieldMention.php +++ b/generated/Model/FieldMention.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldMention extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldMention implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -30,6 +34,8 @@ public function isInitialized($property): bool */ protected $type; /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + * * @var int|null */ protected $height; @@ -57,6 +63,12 @@ public function isInitialized($property): bool * @var Font|null */ protected $font; + /** + * Name of the Field. + * + * @var string|null + */ + protected $name; public function getId(): ?string { @@ -110,11 +122,17 @@ public function setType(?string $type): self return $this; } + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ public function getHeight(): ?int { return $this->height; } + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ public function setHeight(?int $height): self { $this->initialized['height'] = true; @@ -200,4 +218,28 @@ public function setFont(?Font $font): self return $this; } + + /** + * Name of the Field. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Field. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'mention' => ['mention', 'getMention', 'setMention'], 'font' => ['font', 'getFont', 'setFont'], 'name' => ['name', 'getName', 'setName']]; + } } diff --git a/generated/Model/FieldRadioButtonGroup.php b/generated/Model/FieldRadioButtonGroup.php index b143d2e..13d1768 100644 --- a/generated/Model/FieldRadioButtonGroup.php +++ b/generated/Model/FieldRadioButtonGroup.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldRadioButtonGroup extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldRadioButtonGroup implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -163,4 +167,9 @@ public function setRadios(?array $radios): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'page' => ['page', 'getPage', 'setPage'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'name' => ['name', 'getName', 'setName'], 'radios' => ['radios', 'getRadios', 'setRadios']]; + } } diff --git a/generated/Model/FieldRadioButtonGroupRadiosInner.php b/generated/Model/FieldRadioButtonGroupRadiosInner.php index b7c5a7b..38fb309 100644 --- a/generated/Model/FieldRadioButtonGroupRadiosInner.php +++ b/generated/Model/FieldRadioButtonGroupRadiosInner.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldRadioButtonGroupRadiosInner extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldRadioButtonGroupRadiosInner implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -122,4 +126,9 @@ public function setChecked(?bool $checked): self return $this; } + + public function definedProperties(): array + { + return ['name' => ['name', 'getName', 'setName'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'size' => ['size', 'getSize', 'setSize'], 'checked' => ['checked', 'getChecked', 'setChecked']]; + } } diff --git a/generated/Model/FieldReadOnlyText.php b/generated/Model/FieldReadOnlyText.php index 27f5110..acec270 100644 --- a/generated/Model/FieldReadOnlyText.php +++ b/generated/Model/FieldReadOnlyText.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldReadOnlyText extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldReadOnlyText implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -26,7 +30,7 @@ public function isInitialized($property): bool */ protected $type; /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. * * @var int|null */ @@ -100,7 +104,7 @@ public function setType(?string $type): self } /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. */ public function getHeight(): ?int { @@ -108,7 +112,7 @@ public function getHeight(): ?int } /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. */ public function setHeight(?int $height): self { @@ -207,4 +211,9 @@ public function setFont(?Font $font): self return $this; } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'text' => ['text', 'getText', 'setText'], 'font' => ['font', 'getFont', 'setFont']]; + } } diff --git a/generated/Model/FieldSignature.php b/generated/Model/FieldSignature.php index bc9b9fe..13907da 100644 --- a/generated/Model/FieldSignature.php +++ b/generated/Model/FieldSignature.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldSignature extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldSignature implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -53,6 +57,12 @@ public function isInitialized($property): bool * @var string|null */ protected $reason; + /** + * Controls what is shown within the signature field. + * + * @var array|null + */ + protected $display; public function getId(): ?string { @@ -183,4 +193,32 @@ public function setReason(?string $reason): self return $this; } + + /** + * Controls what is shown within the signature field. + * + * @return array|null + */ + public function getDisplay(): ?iterable + { + return $this->display; + } + + /** + * Controls what is shown within the signature field. + * + * @param array|null $display + */ + public function setDisplay(?iterable $display): self + { + $this->initialized['display'] = true; + $this->display = $display; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'reason' => ['reason', 'getReason', 'setReason'], 'display' => ['display', 'getDisplay', 'setDisplay']]; + } } diff --git a/generated/Model/FieldSignatureDate.php b/generated/Model/FieldSignatureDate.php new file mode 100644 index 0000000..21af228 --- /dev/null +++ b/generated/Model/FieldSignatureDate.php @@ -0,0 +1,395 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $documentId; + /** + * @var string|null + */ + protected $signerId; + /** + * @var string|null + */ + protected $type; + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + * + * @var int|null + */ + protected $height; + /** + * @var int|null + */ + protected $width; + /** + * @var int|null + */ + protected $page; + /** + * @var int|null + */ + protected $x; + /** + * @var int|null + */ + protected $y; + /** + * @var string|null + */ + protected $value; + /** + * @var Font|null + */ + protected $font; + /** + * Name of the Field. + * + * @var string|null + */ + protected $name; + /** + * Format used to display the date (e.g., `dd/MM/yyyy`, `MM/dd/yyyy`). + * + * @var string|null + */ + protected $dateFormat = 'dd/MM/yyyy'; + /** + * Format used to display the time. Can be null to display only the date, or a format like `HH:mm` or `hh:mm a`. + * + * @var string|null + */ + protected $timeFormat; + /** + * Boolean indicating whether to display the timezone abbreviation (e.g., `CEST`) next to the time. + * + * @var bool|null + */ + protected $showTimezone = false; + /** + * Boolean indicating whether to display the signer's email address. + * + * @var bool|null + */ + protected $showEmail = true; + /** + * Unit of time used to offset the signature date. When `null`, the field will display the exact signature date. + * + * @var string|null + */ + protected $offsetUnit = 'days'; + /** + * Number of units to add to the signature date. Ignored if `offset_unit` is `null`. For example, use `offset_unit`: `"month"` and `offset_value: 3` to display "signature date + 3 months". + * + * @var int|null + */ + protected $offsetValue = 0; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDocumentId(): ?string + { + return $this->documentId; + } + + public function setDocumentId(?string $documentId): self + { + $this->initialized['documentId'] = true; + $this->documentId = $documentId; + + return $this; + } + + public function getSignerId(): ?string + { + return $this->signerId; + } + + public function setSignerId(?string $signerId): self + { + $this->initialized['signerId'] = true; + $this->signerId = $signerId; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function getHeight(): ?int + { + return $this->height; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function setHeight(?int $height): self + { + $this->initialized['height'] = true; + $this->height = $height; + + return $this; + } + + public function getWidth(): ?int + { + return $this->width; + } + + public function setWidth(?int $width): self + { + $this->initialized['width'] = true; + $this->width = $width; + + return $this; + } + + public function getPage(): ?int + { + return $this->page; + } + + public function setPage(?int $page): self + { + $this->initialized['page'] = true; + $this->page = $page; + + return $this; + } + + public function getX(): ?int + { + return $this->x; + } + + public function setX(?int $x): self + { + $this->initialized['x'] = true; + $this->x = $x; + + return $this; + } + + public function getY(): ?int + { + return $this->y; + } + + public function setY(?int $y): self + { + $this->initialized['y'] = true; + $this->y = $y; + + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function getFont(): ?Font + { + return $this->font; + } + + public function setFont(?Font $font): self + { + $this->initialized['font'] = true; + $this->font = $font; + + return $this; + } + + /** + * Name of the Field. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Field. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Format used to display the date (e.g., `dd/MM/yyyy`, `MM/dd/yyyy`). + */ + public function getDateFormat(): ?string + { + return $this->dateFormat; + } + + /** + * Format used to display the date (e.g., `dd/MM/yyyy`, `MM/dd/yyyy`). + */ + public function setDateFormat(?string $dateFormat): self + { + $this->initialized['dateFormat'] = true; + $this->dateFormat = $dateFormat; + + return $this; + } + + /** + * Format used to display the time. Can be null to display only the date, or a format like `HH:mm` or `hh:mm a`. + */ + public function getTimeFormat(): ?string + { + return $this->timeFormat; + } + + /** + * Format used to display the time. Can be null to display only the date, or a format like `HH:mm` or `hh:mm a`. + */ + public function setTimeFormat(?string $timeFormat): self + { + $this->initialized['timeFormat'] = true; + $this->timeFormat = $timeFormat; + + return $this; + } + + /** + * Boolean indicating whether to display the timezone abbreviation (e.g., `CEST`) next to the time. + */ + public function getShowTimezone(): ?bool + { + return $this->showTimezone; + } + + /** + * Boolean indicating whether to display the timezone abbreviation (e.g., `CEST`) next to the time. + */ + public function setShowTimezone(?bool $showTimezone): self + { + $this->initialized['showTimezone'] = true; + $this->showTimezone = $showTimezone; + + return $this; + } + + /** + * Boolean indicating whether to display the signer's email address. + */ + public function getShowEmail(): ?bool + { + return $this->showEmail; + } + + /** + * Boolean indicating whether to display the signer's email address. + */ + public function setShowEmail(?bool $showEmail): self + { + $this->initialized['showEmail'] = true; + $this->showEmail = $showEmail; + + return $this; + } + + /** + * Unit of time used to offset the signature date. When `null`, the field will display the exact signature date. + */ + public function getOffsetUnit(): ?string + { + return $this->offsetUnit; + } + + /** + * Unit of time used to offset the signature date. When `null`, the field will display the exact signature date. + */ + public function setOffsetUnit(?string $offsetUnit): self + { + $this->initialized['offsetUnit'] = true; + $this->offsetUnit = $offsetUnit; + + return $this; + } + + /** + * Number of units to add to the signature date. Ignored if `offset_unit` is `null`. For example, use `offset_unit`: `"month"` and `offset_value: 3` to display "signature date + 3 months". + */ + public function getOffsetValue(): ?int + { + return $this->offsetValue; + } + + /** + * Number of units to add to the signature date. Ignored if `offset_unit` is `null`. For example, use `offset_unit`: `"month"` and `offset_value: 3` to display "signature date + 3 months". + */ + public function setOffsetValue(?int $offsetValue): self + { + $this->initialized['offsetValue'] = true; + $this->offsetValue = $offsetValue; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'value' => ['value', 'getValue', 'setValue'], 'font' => ['font', 'getFont', 'setFont'], 'name' => ['name', 'getName', 'setName'], 'dateFormat' => ['date_format', 'getDateFormat', 'setDateFormat'], 'timeFormat' => ['time_format', 'getTimeFormat', 'setTimeFormat'], 'showTimezone' => ['show_timezone', 'getShowTimezone', 'setShowTimezone'], 'showEmail' => ['show_email', 'getShowEmail', 'setShowEmail'], 'offsetUnit' => ['offset_unit', 'getOffsetUnit', 'setOffsetUnit'], 'offsetValue' => ['offset_value', 'getOffsetValue', 'setOffsetValue']]; + } +} diff --git a/generated/Model/FieldSignerEmail.php b/generated/Model/FieldSignerEmail.php new file mode 100644 index 0000000..d89accc --- /dev/null +++ b/generated/Model/FieldSignerEmail.php @@ -0,0 +1,245 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $documentId; + /** + * @var string|null + */ + protected $signerId; + /** + * @var string|null + */ + protected $type; + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + * + * @var int|null + */ + protected $height; + /** + * @var int|null + */ + protected $width; + /** + * @var int|null + */ + protected $page; + /** + * @var int|null + */ + protected $x; + /** + * @var int|null + */ + protected $y; + /** + * @var string|null + */ + protected $value; + /** + * @var Font|null + */ + protected $font; + /** + * Name of the Field. + * + * @var string|null + */ + protected $name; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDocumentId(): ?string + { + return $this->documentId; + } + + public function setDocumentId(?string $documentId): self + { + $this->initialized['documentId'] = true; + $this->documentId = $documentId; + + return $this; + } + + public function getSignerId(): ?string + { + return $this->signerId; + } + + public function setSignerId(?string $signerId): self + { + $this->initialized['signerId'] = true; + $this->signerId = $signerId; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function getHeight(): ?int + { + return $this->height; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function setHeight(?int $height): self + { + $this->initialized['height'] = true; + $this->height = $height; + + return $this; + } + + public function getWidth(): ?int + { + return $this->width; + } + + public function setWidth(?int $width): self + { + $this->initialized['width'] = true; + $this->width = $width; + + return $this; + } + + public function getPage(): ?int + { + return $this->page; + } + + public function setPage(?int $page): self + { + $this->initialized['page'] = true; + $this->page = $page; + + return $this; + } + + public function getX(): ?int + { + return $this->x; + } + + public function setX(?int $x): self + { + $this->initialized['x'] = true; + $this->x = $x; + + return $this; + } + + public function getY(): ?int + { + return $this->y; + } + + public function setY(?int $y): self + { + $this->initialized['y'] = true; + $this->y = $y; + + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function getFont(): ?Font + { + return $this->font; + } + + public function setFont(?Font $font): self + { + $this->initialized['font'] = true; + $this->font = $font; + + return $this; + } + + /** + * Name of the Field. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Field. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'value' => ['value', 'getValue', 'setValue'], 'font' => ['font', 'getFont', 'setFont'], 'name' => ['name', 'getName', 'setName']]; + } +} diff --git a/generated/Model/FieldSignerName.php b/generated/Model/FieldSignerName.php new file mode 100644 index 0000000..9ced7c4 --- /dev/null +++ b/generated/Model/FieldSignerName.php @@ -0,0 +1,270 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $documentId; + /** + * @var string|null + */ + protected $signerId; + /** + * @var string|null + */ + protected $type; + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + * + * @var int|null + */ + protected $height; + /** + * @var int|null + */ + protected $width; + /** + * @var int|null + */ + protected $page; + /** + * @var int|null + */ + protected $x; + /** + * @var int|null + */ + protected $y; + /** + * @var string|null + */ + protected $value; + /** + * @var Font|null + */ + protected $font; + /** + * Name of the Field. + * + * @var string|null + */ + protected $name; + /** + * Format used to display the signer's name. + * + * @var string|null + */ + protected $nameFormat = 'full_name'; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDocumentId(): ?string + { + return $this->documentId; + } + + public function setDocumentId(?string $documentId): self + { + $this->initialized['documentId'] = true; + $this->documentId = $documentId; + + return $this; + } + + public function getSignerId(): ?string + { + return $this->signerId; + } + + public function setSignerId(?string $signerId): self + { + $this->initialized['signerId'] = true; + $this->signerId = $signerId; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function getHeight(): ?int + { + return $this->height; + } + + /** + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. + */ + public function setHeight(?int $height): self + { + $this->initialized['height'] = true; + $this->height = $height; + + return $this; + } + + public function getWidth(): ?int + { + return $this->width; + } + + public function setWidth(?int $width): self + { + $this->initialized['width'] = true; + $this->width = $width; + + return $this; + } + + public function getPage(): ?int + { + return $this->page; + } + + public function setPage(?int $page): self + { + $this->initialized['page'] = true; + $this->page = $page; + + return $this; + } + + public function getX(): ?int + { + return $this->x; + } + + public function setX(?int $x): self + { + $this->initialized['x'] = true; + $this->x = $x; + + return $this; + } + + public function getY(): ?int + { + return $this->y; + } + + public function setY(?int $y): self + { + $this->initialized['y'] = true; + $this->y = $y; + + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } + + public function getFont(): ?Font + { + return $this->font; + } + + public function setFont(?Font $font): self + { + $this->initialized['font'] = true; + $this->font = $font; + + return $this; + } + + /** + * Name of the Field. + */ + public function getName(): ?string + { + return $this->name; + } + + /** + * Name of the Field. + */ + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Format used to display the signer's name. + */ + public function getNameFormat(): ?string + { + return $this->nameFormat; + } + + /** + * Format used to display the signer's name. + */ + public function setNameFormat(?string $nameFormat): self + { + $this->initialized['nameFormat'] = true; + $this->nameFormat = $nameFormat; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'height' => ['height', 'getHeight', 'setHeight'], 'width' => ['width', 'getWidth', 'setWidth'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'value' => ['value', 'getValue', 'setValue'], 'font' => ['font', 'getFont', 'setFont'], 'name' => ['name', 'getName', 'setName'], 'nameFormat' => ['name_format', 'getNameFormat', 'setNameFormat']]; + } +} diff --git a/generated/Model/FieldText.php b/generated/Model/FieldText.php index 5d736ed..494004a 100644 --- a/generated/Model/FieldText.php +++ b/generated/Model/FieldText.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FieldText extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FieldText implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -36,7 +40,7 @@ public function isInitialized($property): bool */ protected $width; /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. * * @var int|null */ @@ -77,6 +81,18 @@ public function isInitialized($property): bool * @var Font|null */ protected $font; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $defaultValue; + /** + * @var bool|null + */ + protected $readOnly; public function getId(): ?string { @@ -150,7 +166,7 @@ public function setWidth(?int $width): self } /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. */ public function getHeight(): ?int { @@ -158,7 +174,7 @@ public function getHeight(): ?int } /** - * The height must be 24 or a multiple of 15 greater than 24. If height is provided, max_length must be less than or equal to the maximum number of characters based on the width and height of the text field. + * The height must be calculated using the formula: "height = number_of_lines \* font_size \* line_height", where the line height is always set to 1.5. */ public function setHeight(?int $height): self { @@ -284,4 +300,48 @@ public function setFont(?Font $font): self return $this; } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getDefaultValue(): ?string + { + return $this->defaultValue; + } + + public function setDefaultValue(?string $defaultValue): self + { + $this->initialized['defaultValue'] = true; + $this->defaultValue = $defaultValue; + + return $this; + } + + public function getReadOnly(): ?bool + { + return $this->readOnly; + } + + public function setReadOnly(?bool $readOnly): self + { + $this->initialized['readOnly'] = true; + $this->readOnly = $readOnly; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'documentId' => ['document_id', 'getDocumentId', 'setDocumentId'], 'signerId' => ['signer_id', 'getSignerId', 'setSignerId'], 'type' => ['type', 'getType', 'setType'], 'width' => ['width', 'getWidth', 'setWidth'], 'height' => ['height', 'getHeight', 'setHeight'], 'page' => ['page', 'getPage', 'setPage'], 'x' => ['x', 'getX', 'setX'], 'y' => ['y', 'getY', 'setY'], 'question' => ['question', 'getQuestion', 'setQuestion'], 'instruction' => ['instruction', 'getInstruction', 'setInstruction'], 'optional' => ['optional', 'getOptional', 'setOptional'], 'answer' => ['answer', 'getAnswer', 'setAnswer'], 'maxLength' => ['max_length', 'getMaxLength', 'setMaxLength'], 'font' => ['font', 'getFont', 'setFont'], 'name' => ['name', 'getName', 'setName'], 'defaultValue' => ['default_value', 'getDefaultValue', 'setDefaultValue'], 'readOnly' => ['read_only', 'getReadOnly', 'setReadOnly']]; + } } diff --git a/generated/Model/Follower.php b/generated/Model/Follower.php index b276b68..754712b 100644 --- a/generated/Model/Follower.php +++ b/generated/Model/Follower.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Follower extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Follower implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -72,4 +76,9 @@ public function setFollowerLink(?string $followerLink): self return $this; } + + public function definedProperties(): array + { + return ['email' => ['email', 'getEmail', 'setEmail'], 'locale' => ['locale', 'getLocale', 'setLocale'], 'followerLink' => ['follower_link', 'getFollowerLink', 'setFollowerLink']]; + } } diff --git a/generated/Model/Font.php b/generated/Model/Font.php index 3ef8a5e..e137856 100644 --- a/generated/Model/Font.php +++ b/generated/Model/Font.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class Font extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class Font implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -81,4 +85,9 @@ public function setVariants(?FontVariants $variants): self return $this; } + + public function definedProperties(): array + { + return ['family' => ['family', 'getFamily', 'setFamily'], 'color' => ['color', 'getColor', 'setColor'], 'size' => ['size', 'getSize', 'setSize'], 'variants' => ['variants', 'getVariants', 'setVariants']]; + } } diff --git a/generated/Model/FontVariants.php b/generated/Model/FontVariants.php index 032745c..bc6e08a 100644 --- a/generated/Model/FontVariants.php +++ b/generated/Model/FontVariants.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class FontVariants extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FontVariants implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -47,4 +51,9 @@ public function setBold(?bool $bold): self return $this; } + + public function definedProperties(): array + { + return ['italic' => ['italic', 'getItalic', 'setItalic'], 'bold' => ['bold', 'getBold', 'setBold']]; + } } diff --git a/generated/Model/ForbiddenResponse.php b/generated/Model/ForbiddenResponse.php index 922492c..5bd7e95 100644 --- a/generated/Model/ForbiddenResponse.php +++ b/generated/Model/ForbiddenResponse.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class ForbiddenResponse extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class ForbiddenResponse implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -47,4 +51,9 @@ public function setDetail(?string $detail): self return $this; } + + public function definedProperties(): array + { + return ['type' => ['type', 'getType', 'setType'], 'detail' => ['detail', 'getDetail', 'setDetail']]; + } } diff --git a/generated/Model/FraudOnlyFull.php b/generated/Model/FraudOnlyFull.php new file mode 100644 index 0000000..b40f1b4 --- /dev/null +++ b/generated/Model/FraudOnlyFull.php @@ -0,0 +1,426 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * @var FraudOnlyFullAllOfAnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * Always `null` for a fraud-only analysis (no document type). + * + * @var string|null + */ + protected $type; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + public function getAnalysisType(): ?FraudOnlyFullAllOfAnalysisType + { + return $this->analysisType; + } + + public function setAnalysisType(?FraudOnlyFullAllOfAnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + /** + * Always `null` for a fraud-only analysis (no document type). + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Always `null` for a fraud-only analysis (no document type). + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType']]; + } +} diff --git a/generated/Model/FraudOnlyFullAllOfAnalysisType.php b/generated/Model/FraudOnlyFullAllOfAnalysisType.php new file mode 100644 index 0000000..4283053 --- /dev/null +++ b/generated/Model/FraudOnlyFullAllOfAnalysisType.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * Always `false` for a fraud-only analysis. + * + * @var bool|null + */ + protected $extraction; + /** + * Always `advanced` for a fraud-only analysis. + * + * @var string|null + */ + protected $fraudLevel; + + /** + * Always `false` for a fraud-only analysis. + */ + public function getExtraction(): ?bool + { + return $this->extraction; + } + + /** + * Always `false` for a fraud-only analysis. + */ + public function setExtraction(?bool $extraction): self + { + $this->initialized['extraction'] = true; + $this->extraction = $extraction; + + return $this; + } + + /** + * Always `advanced` for a fraud-only analysis. + */ + public function getFraudLevel(): ?string + { + return $this->fraudLevel; + } + + /** + * Always `advanced` for a fraud-only analysis. + */ + public function setFraudLevel(?string $fraudLevel): self + { + $this->initialized['fraudLevel'] = true; + $this->fraudLevel = $fraudLevel; + + return $this; + } + + public function definedProperties(): array + { + return ['extraction' => ['extraction', 'getExtraction', 'setExtraction'], 'fraudLevel' => ['fraud_level', 'getFraudLevel', 'setFraudLevel']]; + } +} diff --git a/generated/Model/FraudRiskAnalysis.php b/generated/Model/FraudRiskAnalysis.php new file mode 100644 index 0000000..9348c97 --- /dev/null +++ b/generated/Model/FraudRiskAnalysis.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * Overall fraud risk level of the document. `null` when not yet determined. + * + * @var string|null + */ + protected $riskLevel; + /** + * List of fraud indicators detected on the document. + * + * @var list|null + */ + protected $indicators; + + /** + * Overall fraud risk level of the document. `null` when not yet determined. + */ + public function getRiskLevel(): ?string + { + return $this->riskLevel; + } + + /** + * Overall fraud risk level of the document. `null` when not yet determined. + */ + public function setRiskLevel(?string $riskLevel): self + { + $this->initialized['riskLevel'] = true; + $this->riskLevel = $riskLevel; + + return $this; + } + + /** + * List of fraud indicators detected on the document. + * + * @return list|null + */ + public function getIndicators(): ?array + { + return $this->indicators; + } + + /** + * List of fraud indicators detected on the document. + * + * @param list|null $indicators + */ + public function setIndicators(?array $indicators): self + { + $this->initialized['indicators'] = true; + $this->indicators = $indicators; + + return $this; + } +} diff --git a/generated/Model/FraudRiskAnalysisIndicatorsInner.php b/generated/Model/FraudRiskAnalysisIndicatorsInner.php new file mode 100644 index 0000000..bed0e6a --- /dev/null +++ b/generated/Model/FraudRiskAnalysisIndicatorsInner.php @@ -0,0 +1,141 @@ +initialized); + } + /** + * Machine-readable identifier of the detected indicator. + * + * @var string|null + */ + protected $indicator; + /** + * Type of the indicator. + * + * @var string|null + */ + protected $type; + /** + * Category the indicator belongs to. + * + * @var string|null + */ + protected $category; + /** + * Human-readable title of the indicator. + * + * @var string|null + */ + protected $title; + /** + * Human-readable description of the indicator. + * + * @var string|null + */ + protected $description; + + /** + * Machine-readable identifier of the detected indicator. + */ + public function getIndicator(): ?string + { + return $this->indicator; + } + + /** + * Machine-readable identifier of the detected indicator. + */ + public function setIndicator(?string $indicator): self + { + $this->initialized['indicator'] = true; + $this->indicator = $indicator; + + return $this; + } + + /** + * Type of the indicator. + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * Type of the indicator. + */ + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Category the indicator belongs to. + */ + public function getCategory(): ?string + { + return $this->category; + } + + /** + * Category the indicator belongs to. + */ + public function setCategory(?string $category): self + { + $this->initialized['category'] = true; + $this->category = $category; + + return $this; + } + + /** + * Human-readable title of the indicator. + */ + public function getTitle(): ?string + { + return $this->title; + } + + /** + * Human-readable title of the indicator. + */ + public function setTitle(?string $title): self + { + $this->initialized['title'] = true; + $this->title = $title; + + return $this; + } + + /** + * Human-readable description of the indicator. + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * Human-readable description of the indicator. + */ + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } +} diff --git a/generated/Model/FrenchInvoiceDocument.php b/generated/Model/FrenchInvoiceDocument.php new file mode 100644 index 0000000..577e6ff --- /dev/null +++ b/generated/Model/FrenchInvoiceDocument.php @@ -0,0 +1,482 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var FrenchInvoiceExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var InvoiceCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?FrenchInvoiceExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?FrenchInvoiceExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?InvoiceCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?InvoiceCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/FrenchInvoiceExtraction.php b/generated/Model/FrenchInvoiceExtraction.php new file mode 100644 index 0000000..ab36ba8 --- /dev/null +++ b/generated/Model/FrenchInvoiceExtraction.php @@ -0,0 +1,366 @@ +initialized); + } + /** + * The date the invoice was issued, extracted from the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * The invoice number extracted from the document. + * + * @var string|null + */ + protected $invoiceNumber; + /** + * The date of the sale or service, extracted from the document. + * + * @var \DateTime|null + */ + protected $invoiceDate; + /** + * The seller (issuer) name extracted from the document. + * + * @var string|null + */ + protected $sellerName; + /** + * The seller (issuer) postal address extracted from the document. + * + * @var string|null + */ + protected $sellerAddress; + /** + * The seller SIREN or SIRET number extracted from the document. + * + * @var string|null + */ + protected $sellerCompanyNumber; + /** + * The seller intra-community VAT number extracted from the document. + * + * @var string|null + */ + protected $vatIdentificationNumber; + /** + * The billing address extracted from the document, when distinct. + * + * @var string|null + */ + protected $billingAddress; + /** + * The shipping address extracted from the document, when distinct. + * + * @var string|null + */ + protected $shippingAddress; + /** + * The buyer (customer) name extracted from the document. + * + * @var string|null + */ + protected $buyerName; + /** + * The buyer (customer) postal address extracted from the document. + * + * @var string|null + */ + protected $buyerAddress; + /** + * The total amount excluding taxes extracted from the document. + * + * @var float|null + */ + protected $totalExcludingTaxes; + /** + * The total amount including taxes extracted from the document. + * + * @var float|null + */ + protected $totalIncludingTaxes; + /** + * The document type extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * The date the invoice was issued, extracted from the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * The date the invoice was issued, extracted from the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * The invoice number extracted from the document. + */ + public function getInvoiceNumber(): ?string + { + return $this->invoiceNumber; + } + + /** + * The invoice number extracted from the document. + */ + public function setInvoiceNumber(?string $invoiceNumber): self + { + $this->initialized['invoiceNumber'] = true; + $this->invoiceNumber = $invoiceNumber; + + return $this; + } + + /** + * The date of the sale or service, extracted from the document. + */ + public function getInvoiceDate(): ?\DateTime + { + return $this->invoiceDate; + } + + /** + * The date of the sale or service, extracted from the document. + */ + public function setInvoiceDate(?\DateTime $invoiceDate): self + { + $this->initialized['invoiceDate'] = true; + $this->invoiceDate = $invoiceDate; + + return $this; + } + + /** + * The seller (issuer) name extracted from the document. + */ + public function getSellerName(): ?string + { + return $this->sellerName; + } + + /** + * The seller (issuer) name extracted from the document. + */ + public function setSellerName(?string $sellerName): self + { + $this->initialized['sellerName'] = true; + $this->sellerName = $sellerName; + + return $this; + } + + /** + * The seller (issuer) postal address extracted from the document. + */ + public function getSellerAddress(): ?string + { + return $this->sellerAddress; + } + + /** + * The seller (issuer) postal address extracted from the document. + */ + public function setSellerAddress(?string $sellerAddress): self + { + $this->initialized['sellerAddress'] = true; + $this->sellerAddress = $sellerAddress; + + return $this; + } + + /** + * The seller SIREN or SIRET number extracted from the document. + */ + public function getSellerCompanyNumber(): ?string + { + return $this->sellerCompanyNumber; + } + + /** + * The seller SIREN or SIRET number extracted from the document. + */ + public function setSellerCompanyNumber(?string $sellerCompanyNumber): self + { + $this->initialized['sellerCompanyNumber'] = true; + $this->sellerCompanyNumber = $sellerCompanyNumber; + + return $this; + } + + /** + * The seller intra-community VAT number extracted from the document. + */ + public function getVatIdentificationNumber(): ?string + { + return $this->vatIdentificationNumber; + } + + /** + * The seller intra-community VAT number extracted from the document. + */ + public function setVatIdentificationNumber(?string $vatIdentificationNumber): self + { + $this->initialized['vatIdentificationNumber'] = true; + $this->vatIdentificationNumber = $vatIdentificationNumber; + + return $this; + } + + /** + * The billing address extracted from the document, when distinct. + */ + public function getBillingAddress(): ?string + { + return $this->billingAddress; + } + + /** + * The billing address extracted from the document, when distinct. + */ + public function setBillingAddress(?string $billingAddress): self + { + $this->initialized['billingAddress'] = true; + $this->billingAddress = $billingAddress; + + return $this; + } + + /** + * The shipping address extracted from the document, when distinct. + */ + public function getShippingAddress(): ?string + { + return $this->shippingAddress; + } + + /** + * The shipping address extracted from the document, when distinct. + */ + public function setShippingAddress(?string $shippingAddress): self + { + $this->initialized['shippingAddress'] = true; + $this->shippingAddress = $shippingAddress; + + return $this; + } + + /** + * The buyer (customer) name extracted from the document. + */ + public function getBuyerName(): ?string + { + return $this->buyerName; + } + + /** + * The buyer (customer) name extracted from the document. + */ + public function setBuyerName(?string $buyerName): self + { + $this->initialized['buyerName'] = true; + $this->buyerName = $buyerName; + + return $this; + } + + /** + * The buyer (customer) postal address extracted from the document. + */ + public function getBuyerAddress(): ?string + { + return $this->buyerAddress; + } + + /** + * The buyer (customer) postal address extracted from the document. + */ + public function setBuyerAddress(?string $buyerAddress): self + { + $this->initialized['buyerAddress'] = true; + $this->buyerAddress = $buyerAddress; + + return $this; + } + + /** + * The total amount excluding taxes extracted from the document. + */ + public function getTotalExcludingTaxes(): ?float + { + return $this->totalExcludingTaxes; + } + + /** + * The total amount excluding taxes extracted from the document. + */ + public function setTotalExcludingTaxes(?float $totalExcludingTaxes): self + { + $this->initialized['totalExcludingTaxes'] = true; + $this->totalExcludingTaxes = $totalExcludingTaxes; + + return $this; + } + + /** + * The total amount including taxes extracted from the document. + */ + public function getTotalIncludingTaxes(): ?float + { + return $this->totalIncludingTaxes; + } + + /** + * The total amount including taxes extracted from the document. + */ + public function setTotalIncludingTaxes(?float $totalIncludingTaxes): self + { + $this->initialized['totalIncludingTaxes'] = true; + $this->totalIncludingTaxes = $totalIncludingTaxes; + + return $this; + } + + /** + * The document type extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/FrenchTaxNoticeDocument.php b/generated/Model/FrenchTaxNoticeDocument.php new file mode 100644 index 0000000..d81c3da --- /dev/null +++ b/generated/Model/FrenchTaxNoticeDocument.php @@ -0,0 +1,485 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var FrenchTaxNoticeExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var TaxNoticeCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?FrenchTaxNoticeExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?FrenchTaxNoticeExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?TaxNoticeCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?TaxNoticeCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/FrenchTaxNoticeExtraction.php b/generated/Model/FrenchTaxNoticeExtraction.php new file mode 100644 index 0000000..8b0894a --- /dev/null +++ b/generated/Model/FrenchTaxNoticeExtraction.php @@ -0,0 +1,241 @@ +initialized); + } + /** + * The holder full name extracted from the document. + * + * @var string|null + */ + protected $fullName; + /** + * The fiscal number of the first declarant extracted from the document. + * + * @var string|null + */ + protected $fiscalNumber1; + /** + * The fiscal number of the second declarant extracted from the document. + * + * @var string|null + */ + protected $fiscalNumber2; + /** + * The tax notice reference number extracted from the document. + * + * @var string|null + */ + protected $taxNoticeReference; + /** + * The tax notice issuance date extracted from the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + * + * @var int|null + */ + protected $incomeYear; + /** + * The fiscal reference income extracted from the document. + * + * @var int|null + */ + protected $referenceIncome; + /** + * The document type extracted from the document. + * + * @var string|null + */ + protected $documentType; + /** + * The 2D document extracted from the document. + * + * @var FrenchTaxNoticeExtraction2dDoc|null + */ + protected $n2dDoc; + + /** + * The holder full name extracted from the document. + */ + public function getFullName(): ?string + { + return $this->fullName; + } + + /** + * The holder full name extracted from the document. + */ + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + + /** + * The fiscal number of the first declarant extracted from the document. + */ + public function getFiscalNumber1(): ?string + { + return $this->fiscalNumber1; + } + + /** + * The fiscal number of the first declarant extracted from the document. + */ + public function setFiscalNumber1(?string $fiscalNumber1): self + { + $this->initialized['fiscalNumber1'] = true; + $this->fiscalNumber1 = $fiscalNumber1; + + return $this; + } + + /** + * The fiscal number of the second declarant extracted from the document. + */ + public function getFiscalNumber2(): ?string + { + return $this->fiscalNumber2; + } + + /** + * The fiscal number of the second declarant extracted from the document. + */ + public function setFiscalNumber2(?string $fiscalNumber2): self + { + $this->initialized['fiscalNumber2'] = true; + $this->fiscalNumber2 = $fiscalNumber2; + + return $this; + } + + /** + * The tax notice reference number extracted from the document. + */ + public function getTaxNoticeReference(): ?string + { + return $this->taxNoticeReference; + } + + /** + * The tax notice reference number extracted from the document. + */ + public function setTaxNoticeReference(?string $taxNoticeReference): self + { + $this->initialized['taxNoticeReference'] = true; + $this->taxNoticeReference = $taxNoticeReference; + + return $this; + } + + /** + * The tax notice issuance date extracted from the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * The tax notice issuance date extracted from the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + */ + public function getIncomeYear(): ?int + { + return $this->incomeYear; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + */ + public function setIncomeYear(?int $incomeYear): self + { + $this->initialized['incomeYear'] = true; + $this->incomeYear = $incomeYear; + + return $this; + } + + /** + * The fiscal reference income extracted from the document. + */ + public function getReferenceIncome(): ?int + { + return $this->referenceIncome; + } + + /** + * The fiscal reference income extracted from the document. + */ + public function setReferenceIncome(?int $referenceIncome): self + { + $this->initialized['referenceIncome'] = true; + $this->referenceIncome = $referenceIncome; + + return $this; + } + + /** + * The document type extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } + + /** + * The 2D document extracted from the document. + */ + public function get2dDoc(): ?FrenchTaxNoticeExtraction2dDoc + { + return $this->n2dDoc; + } + + /** + * The 2D document extracted from the document. + */ + public function set2dDoc(?FrenchTaxNoticeExtraction2dDoc $n2dDoc): self + { + $this->initialized['n2dDoc'] = true; + $this->n2dDoc = $n2dDoc; + + return $this; + } +} diff --git a/generated/Model/FrenchTaxNoticeExtraction2dDoc.php b/generated/Model/FrenchTaxNoticeExtraction2dDoc.php new file mode 100644 index 0000000..1a3e5f0 --- /dev/null +++ b/generated/Model/FrenchTaxNoticeExtraction2dDoc.php @@ -0,0 +1,216 @@ +initialized); + } + /** + * The holder full name of the first declarant extracted from the 2D document. + * + * @var string|null + */ + protected $fullName1; + /** + * The fiscal number of the first declarant extracted from the 2D document. + * + * @var string|null + */ + protected $fiscalNumber1; + /** + * The holder full name of the second declarant extracted from the 2D document. + * + * @var string|null + */ + protected $fullName2; + /** + * The fiscal number of the second declarant extracted from the 2D document. + * + * @var string|null + */ + protected $fiscalNumber2; + /** + * The tax notice reference number extracted from the 2D document. + * + * @var string|null + */ + protected $taxNoticeReference; + /** + * Year of incomes (usually the year before document issuance) extracted from the 2D document. + * + * @var int|null + */ + protected $incomeYear; + /** + * The fiscal reference income extracted from the 2D document. + * + * @var int|null + */ + protected $referenceIncome; + /** + * Number of parts in the household extracted from the 2D document. + * + * @var int|null + */ + protected $partsCount; + + /** + * The holder full name of the first declarant extracted from the 2D document. + */ + public function getFullName1(): ?string + { + return $this->fullName1; + } + + /** + * The holder full name of the first declarant extracted from the 2D document. + */ + public function setFullName1(?string $fullName1): self + { + $this->initialized['fullName1'] = true; + $this->fullName1 = $fullName1; + + return $this; + } + + /** + * The fiscal number of the first declarant extracted from the 2D document. + */ + public function getFiscalNumber1(): ?string + { + return $this->fiscalNumber1; + } + + /** + * The fiscal number of the first declarant extracted from the 2D document. + */ + public function setFiscalNumber1(?string $fiscalNumber1): self + { + $this->initialized['fiscalNumber1'] = true; + $this->fiscalNumber1 = $fiscalNumber1; + + return $this; + } + + /** + * The holder full name of the second declarant extracted from the 2D document. + */ + public function getFullName2(): ?string + { + return $this->fullName2; + } + + /** + * The holder full name of the second declarant extracted from the 2D document. + */ + public function setFullName2(?string $fullName2): self + { + $this->initialized['fullName2'] = true; + $this->fullName2 = $fullName2; + + return $this; + } + + /** + * The fiscal number of the second declarant extracted from the 2D document. + */ + public function getFiscalNumber2(): ?string + { + return $this->fiscalNumber2; + } + + /** + * The fiscal number of the second declarant extracted from the 2D document. + */ + public function setFiscalNumber2(?string $fiscalNumber2): self + { + $this->initialized['fiscalNumber2'] = true; + $this->fiscalNumber2 = $fiscalNumber2; + + return $this; + } + + /** + * The tax notice reference number extracted from the 2D document. + */ + public function getTaxNoticeReference(): ?string + { + return $this->taxNoticeReference; + } + + /** + * The tax notice reference number extracted from the 2D document. + */ + public function setTaxNoticeReference(?string $taxNoticeReference): self + { + $this->initialized['taxNoticeReference'] = true; + $this->taxNoticeReference = $taxNoticeReference; + + return $this; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the 2D document. + */ + public function getIncomeYear(): ?int + { + return $this->incomeYear; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the 2D document. + */ + public function setIncomeYear(?int $incomeYear): self + { + $this->initialized['incomeYear'] = true; + $this->incomeYear = $incomeYear; + + return $this; + } + + /** + * The fiscal reference income extracted from the 2D document. + */ + public function getReferenceIncome(): ?int + { + return $this->referenceIncome; + } + + /** + * The fiscal reference income extracted from the 2D document. + */ + public function setReferenceIncome(?int $referenceIncome): self + { + $this->initialized['referenceIncome'] = true; + $this->referenceIncome = $referenceIncome; + + return $this; + } + + /** + * Number of parts in the household extracted from the 2D document. + */ + public function getPartsCount(): ?int + { + return $this->partsCount; + } + + /** + * Number of parts in the household extracted from the 2D document. + */ + public function setPartsCount(?int $partsCount): self + { + $this->initialized['partsCount'] = true; + $this->partsCount = $partsCount; + + return $this; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocument.php b/generated/Model/FrenchVehicleRegistrationDocument.php new file mode 100644 index 0000000..bd29064 --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocument.php @@ -0,0 +1,474 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from a French vehicle registration document. + * + * @var FrenchVehicleRegistrationDocumentExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var VehicleRegistrationDocumentCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from a French vehicle registration document. + */ + public function getExtractedFromDocument(): ?FrenchVehicleRegistrationDocumentExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from a French vehicle registration document. + */ + public function setExtractedFromDocument(?FrenchVehicleRegistrationDocumentExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?VehicleRegistrationDocumentCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?VehicleRegistrationDocumentCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocumentExtraction.php b/generated/Model/FrenchVehicleRegistrationDocumentExtraction.php new file mode 100644 index 0000000..c74f6c1 --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocumentExtraction.php @@ -0,0 +1,346 @@ +initialized); + } + /** + * Licence plate number of the vehicle. + * + * @var string|null + */ + protected $licencePlateNumber; + /** + * Date of first registration of the vehicle. + * + * @var \DateTime|null + */ + protected $firstRegistrationDate; + /** + * @var FrenchVehicleRegistrationDocumentExtractionOwnerInformation|null + */ + protected $ownerInformation; + /** + * List of co-owners of the vehicle. + * + * @var list|null + */ + protected $coOwnerInformation; + /** + * @var FrenchVehicleRegistrationDocumentExtractionVehicleInformation|null + */ + protected $vehicleInformation; + /** + * Vehicle Identification Number (VIN). + * + * @var string|null + */ + protected $vehicleIdentificationNumber; + /** + * Maximum weight of the vehicle. + * + * @var float|null + */ + protected $vehicleMaxWeight; + /** + * @var FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation|null + */ + protected $vehicleMotorInformation; + /** + * Document number. + * + * @var string|null + */ + protected $documentNumber; + /** + * Issuance date of the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * Date of the next vehicle inspection. + * + * @var \DateTime|null + */ + protected $vehicleNextInspectionDate; + /** + * First line of the Machine Readable Zone (MRZ). + * + * @var string|null + */ + protected $mrzLine1; + /** + * Second line of the Machine Readable Zone (MRZ). + * + * @var string|null + */ + protected $mrzLine2; + /** + * Classification label extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * Licence plate number of the vehicle. + */ + public function getLicencePlateNumber(): ?string + { + return $this->licencePlateNumber; + } + + /** + * Licence plate number of the vehicle. + */ + public function setLicencePlateNumber(?string $licencePlateNumber): self + { + $this->initialized['licencePlateNumber'] = true; + $this->licencePlateNumber = $licencePlateNumber; + + return $this; + } + + /** + * Date of first registration of the vehicle. + */ + public function getFirstRegistrationDate(): ?\DateTime + { + return $this->firstRegistrationDate; + } + + /** + * Date of first registration of the vehicle. + */ + public function setFirstRegistrationDate(?\DateTime $firstRegistrationDate): self + { + $this->initialized['firstRegistrationDate'] = true; + $this->firstRegistrationDate = $firstRegistrationDate; + + return $this; + } + + public function getOwnerInformation(): ?FrenchVehicleRegistrationDocumentExtractionOwnerInformation + { + return $this->ownerInformation; + } + + public function setOwnerInformation(?FrenchVehicleRegistrationDocumentExtractionOwnerInformation $ownerInformation): self + { + $this->initialized['ownerInformation'] = true; + $this->ownerInformation = $ownerInformation; + + return $this; + } + + /** + * List of co-owners of the vehicle. + * + * @return list|null + */ + public function getCoOwnerInformation(): ?array + { + return $this->coOwnerInformation; + } + + /** + * List of co-owners of the vehicle. + * + * @param list|null $coOwnerInformation + */ + public function setCoOwnerInformation(?array $coOwnerInformation): self + { + $this->initialized['coOwnerInformation'] = true; + $this->coOwnerInformation = $coOwnerInformation; + + return $this; + } + + public function getVehicleInformation(): ?FrenchVehicleRegistrationDocumentExtractionVehicleInformation + { + return $this->vehicleInformation; + } + + public function setVehicleInformation(?FrenchVehicleRegistrationDocumentExtractionVehicleInformation $vehicleInformation): self + { + $this->initialized['vehicleInformation'] = true; + $this->vehicleInformation = $vehicleInformation; + + return $this; + } + + /** + * Vehicle Identification Number (VIN). + */ + public function getVehicleIdentificationNumber(): ?string + { + return $this->vehicleIdentificationNumber; + } + + /** + * Vehicle Identification Number (VIN). + */ + public function setVehicleIdentificationNumber(?string $vehicleIdentificationNumber): self + { + $this->initialized['vehicleIdentificationNumber'] = true; + $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; + + return $this; + } + + /** + * Maximum weight of the vehicle. + */ + public function getVehicleMaxWeight(): ?float + { + return $this->vehicleMaxWeight; + } + + /** + * Maximum weight of the vehicle. + */ + public function setVehicleMaxWeight(?float $vehicleMaxWeight): self + { + $this->initialized['vehicleMaxWeight'] = true; + $this->vehicleMaxWeight = $vehicleMaxWeight; + + return $this; + } + + public function getVehicleMotorInformation(): ?FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation + { + return $this->vehicleMotorInformation; + } + + public function setVehicleMotorInformation(?FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation $vehicleMotorInformation): self + { + $this->initialized['vehicleMotorInformation'] = true; + $this->vehicleMotorInformation = $vehicleMotorInformation; + + return $this; + } + + /** + * Document number. + */ + public function getDocumentNumber(): ?string + { + return $this->documentNumber; + } + + /** + * Document number. + */ + public function setDocumentNumber(?string $documentNumber): self + { + $this->initialized['documentNumber'] = true; + $this->documentNumber = $documentNumber; + + return $this; + } + + /** + * Issuance date of the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * Issuance date of the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * Date of the next vehicle inspection. + */ + public function getVehicleNextInspectionDate(): ?\DateTime + { + return $this->vehicleNextInspectionDate; + } + + /** + * Date of the next vehicle inspection. + */ + public function setVehicleNextInspectionDate(?\DateTime $vehicleNextInspectionDate): self + { + $this->initialized['vehicleNextInspectionDate'] = true; + $this->vehicleNextInspectionDate = $vehicleNextInspectionDate; + + return $this; + } + + /** + * First line of the Machine Readable Zone (MRZ). + */ + public function getMrzLine1(): ?string + { + return $this->mrzLine1; + } + + /** + * First line of the Machine Readable Zone (MRZ). + */ + public function setMrzLine1(?string $mrzLine1): self + { + $this->initialized['mrzLine1'] = true; + $this->mrzLine1 = $mrzLine1; + + return $this; + } + + /** + * Second line of the Machine Readable Zone (MRZ). + */ + public function getMrzLine2(): ?string + { + return $this->mrzLine2; + } + + /** + * Second line of the Machine Readable Zone (MRZ). + */ + public function setMrzLine2(?string $mrzLine2): self + { + $this->initialized['mrzLine2'] = true; + $this->mrzLine2 = $mrzLine2; + + return $this; + } + + /** + * Classification label extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * Classification label extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocumentExtractionCoOwnerInformationInner.php b/generated/Model/FrenchVehicleRegistrationDocumentExtractionCoOwnerInformationInner.php new file mode 100644 index 0000000..1d9b5fc --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocumentExtractionCoOwnerInformationInner.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * Full name of the co-owner. + * + * @var string|null + */ + protected $coOwnerFullName; + + /** + * Full name of the co-owner. + */ + public function getCoOwnerFullName(): ?string + { + return $this->coOwnerFullName; + } + + /** + * Full name of the co-owner. + */ + public function setCoOwnerFullName(?string $coOwnerFullName): self + { + $this->initialized['coOwnerFullName'] = true; + $this->coOwnerFullName = $coOwnerFullName; + + return $this; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocumentExtractionOwnerInformation.php b/generated/Model/FrenchVehicleRegistrationDocumentExtractionOwnerInformation.php new file mode 100644 index 0000000..b5ca6d5 --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocumentExtractionOwnerInformation.php @@ -0,0 +1,91 @@ +initialized); + } + /** + * Full name of the vehicle owner. + * + * @var string|null + */ + protected $ownerFullName; + /** + * Address of the vehicle owner. + * + * @var string|null + */ + protected $ownerAddress; + /** + * Type of the vehicle owner. + * + * @var string|null + */ + protected $ownerType; + + /** + * Full name of the vehicle owner. + */ + public function getOwnerFullName(): ?string + { + return $this->ownerFullName; + } + + /** + * Full name of the vehicle owner. + */ + public function setOwnerFullName(?string $ownerFullName): self + { + $this->initialized['ownerFullName'] = true; + $this->ownerFullName = $ownerFullName; + + return $this; + } + + /** + * Address of the vehicle owner. + */ + public function getOwnerAddress(): ?string + { + return $this->ownerAddress; + } + + /** + * Address of the vehicle owner. + */ + public function setOwnerAddress(?string $ownerAddress): self + { + $this->initialized['ownerAddress'] = true; + $this->ownerAddress = $ownerAddress; + + return $this; + } + + /** + * Type of the vehicle owner. + */ + public function getOwnerType(): ?string + { + return $this->ownerType; + } + + /** + * Type of the vehicle owner. + */ + public function setOwnerType(?string $ownerType): self + { + $this->initialized['ownerType'] = true; + $this->ownerType = $ownerType; + + return $this; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleInformation.php b/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleInformation.php new file mode 100644 index 0000000..69af57c --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleInformation.php @@ -0,0 +1,91 @@ +initialized); + } + /** + * Brand of the vehicle. + * + * @var string|null + */ + protected $vehicleBrand; + /** + * Version of the vehicle. + * + * @var string|null + */ + protected $vehicleVersion; + /** + * Model of the vehicle. + * + * @var string|null + */ + protected $vehicleModel; + + /** + * Brand of the vehicle. + */ + public function getVehicleBrand(): ?string + { + return $this->vehicleBrand; + } + + /** + * Brand of the vehicle. + */ + public function setVehicleBrand(?string $vehicleBrand): self + { + $this->initialized['vehicleBrand'] = true; + $this->vehicleBrand = $vehicleBrand; + + return $this; + } + + /** + * Version of the vehicle. + */ + public function getVehicleVersion(): ?string + { + return $this->vehicleVersion; + } + + /** + * Version of the vehicle. + */ + public function setVehicleVersion(?string $vehicleVersion): self + { + $this->initialized['vehicleVersion'] = true; + $this->vehicleVersion = $vehicleVersion; + + return $this; + } + + /** + * Model of the vehicle. + */ + public function getVehicleModel(): ?string + { + return $this->vehicleModel; + } + + /** + * Model of the vehicle. + */ + public function setVehicleModel(?string $vehicleModel): self + { + $this->initialized['vehicleModel'] = true; + $this->vehicleModel = $vehicleModel; + + return $this; + } +} diff --git a/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation.php b/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation.php new file mode 100644 index 0000000..e26ebde --- /dev/null +++ b/generated/Model/FrenchVehicleRegistrationDocumentExtractionVehicleMotorInformation.php @@ -0,0 +1,116 @@ +initialized); + } + /** + * Type of fuel used by the vehicle. + * + * @var string|null + */ + protected $vehicleFuelType; + /** + * Fiscal power of the vehicle. + * + * @var float|null + */ + protected $vehicleFiscalPower; + /** + * Maximum power of the vehicle engine. + * + * @var float|null + */ + protected $vehicleMaxPower; + /** + * Power of the vehicle engine. + * + * @var float|null + */ + protected $vehiclePower; + + /** + * Type of fuel used by the vehicle. + */ + public function getVehicleFuelType(): ?string + { + return $this->vehicleFuelType; + } + + /** + * Type of fuel used by the vehicle. + */ + public function setVehicleFuelType(?string $vehicleFuelType): self + { + $this->initialized['vehicleFuelType'] = true; + $this->vehicleFuelType = $vehicleFuelType; + + return $this; + } + + /** + * Fiscal power of the vehicle. + */ + public function getVehicleFiscalPower(): ?float + { + return $this->vehicleFiscalPower; + } + + /** + * Fiscal power of the vehicle. + */ + public function setVehicleFiscalPower(?float $vehicleFiscalPower): self + { + $this->initialized['vehicleFiscalPower'] = true; + $this->vehicleFiscalPower = $vehicleFiscalPower; + + return $this; + } + + /** + * Maximum power of the vehicle engine. + */ + public function getVehicleMaxPower(): ?float + { + return $this->vehicleMaxPower; + } + + /** + * Maximum power of the vehicle engine. + */ + public function setVehicleMaxPower(?float $vehicleMaxPower): self + { + $this->initialized['vehicleMaxPower'] = true; + $this->vehicleMaxPower = $vehicleMaxPower; + + return $this; + } + + /** + * Power of the vehicle engine. + */ + public function getVehiclePower(): ?float + { + return $this->vehiclePower; + } + + /** + * Power of the vehicle engine. + */ + public function setVehiclePower(?float $vehiclePower): self + { + $this->initialized['vehiclePower'] = true; + $this->vehiclePower = $vehiclePower; + + return $this; + } +} diff --git a/generated/Model/CreateElectronicSealDocumentFromJson.php b/generated/Model/FromElectronicSealDocument.php similarity index 70% rename from generated/Model/CreateElectronicSealDocumentFromJson.php rename to generated/Model/FromElectronicSealDocument.php index df72e53..b20a3ed 100644 --- a/generated/Model/CreateElectronicSealDocumentFromJson.php +++ b/generated/Model/FromElectronicSealDocument.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class CreateElectronicSealDocumentFromJson extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class FromElectronicSealDocument implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -38,4 +42,9 @@ public function setElectronicSealDocumentId(?string $electronicSealDocumentId): return $this; } + + public function definedProperties(): array + { + return ['electronicSealDocumentId' => ['electronic_seal_document_id', 'getElectronicSealDocumentId', 'setElectronicSealDocumentId']]; + } } diff --git a/generated/Model/FromExistingContact1.php b/generated/Model/FromExistingContact1.php deleted file mode 100644 index c378b2f..0000000 --- a/generated/Model/FromExistingContact1.php +++ /dev/null @@ -1,233 +0,0 @@ -initialized); - } - /** - * Create signer from an existing contact. - * - * @var string|null - */ - protected $contactId; - /** - * @var list>|null - */ - protected $fields; - /** - * Insert just after the position of the specified signer id. - * - * @var string|null - */ - protected $insertAfterId; - /** - * @var string|null - */ - protected $signatureLevel; - /** - * @var string|null - */ - protected $signatureAuthenticationMode; - /** - * @var FromScratch1RedirectUrls|null - */ - protected $redirectUrls; - /** - * @var FromScratch1CustomText|null - */ - protected $customText; - /** - * Override the delivery mode of the Signature Request for this Signer. - * - * @var string|null - */ - protected $deliveryMode; - /** - * @var string|null - */ - protected $identificationAttestationId; - /** - * @var SmsNotification1|null - */ - protected $smsNotification; - /** - * @var EmailNotification1|null - */ - protected $emailNotification; - - /** - * Create signer from an existing contact. - */ - public function getContactId(): ?string - { - return $this->contactId; - } - - /** - * Create signer from an existing contact. - */ - public function setContactId(?string $contactId): self - { - $this->initialized['contactId'] = true; - $this->contactId = $contactId; - - return $this; - } - - /** - * @return list>|null - */ - public function getFields(): ?array - { - return $this->fields; - } - - /** - * @param list>|null $fields - */ - public function setFields(?array $fields): self - { - $this->initialized['fields'] = true; - $this->fields = $fields; - - return $this; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function getInsertAfterId(): ?string - { - return $this->insertAfterId; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function setInsertAfterId(?string $insertAfterId): self - { - $this->initialized['insertAfterId'] = true; - $this->insertAfterId = $insertAfterId; - - return $this; - } - - public function getSignatureLevel(): ?string - { - return $this->signatureLevel; - } - - public function setSignatureLevel(?string $signatureLevel): self - { - $this->initialized['signatureLevel'] = true; - $this->signatureLevel = $signatureLevel; - - return $this; - } - - public function getSignatureAuthenticationMode(): ?string - { - return $this->signatureAuthenticationMode; - } - - public function setSignatureAuthenticationMode(?string $signatureAuthenticationMode): self - { - $this->initialized['signatureAuthenticationMode'] = true; - $this->signatureAuthenticationMode = $signatureAuthenticationMode; - - return $this; - } - - public function getRedirectUrls(): ?FromScratch1RedirectUrls - { - return $this->redirectUrls; - } - - public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self - { - $this->initialized['redirectUrls'] = true; - $this->redirectUrls = $redirectUrls; - - return $this; - } - - public function getCustomText(): ?FromScratch1CustomText - { - return $this->customText; - } - - public function setCustomText(?FromScratch1CustomText $customText): self - { - $this->initialized['customText'] = true; - $this->customText = $customText; - - return $this; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function getDeliveryMode(): ?string - { - return $this->deliveryMode; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function setDeliveryMode(?string $deliveryMode): self - { - $this->initialized['deliveryMode'] = true; - $this->deliveryMode = $deliveryMode; - - return $this; - } - - public function getIdentificationAttestationId(): ?string - { - return $this->identificationAttestationId; - } - - public function setIdentificationAttestationId(?string $identificationAttestationId): self - { - $this->initialized['identificationAttestationId'] = true; - $this->identificationAttestationId = $identificationAttestationId; - - return $this; - } - - public function getSmsNotification(): ?SmsNotification1 - { - return $this->smsNotification; - } - - public function setSmsNotification(?SmsNotification1 $smsNotification): self - { - $this->initialized['smsNotification'] = true; - $this->smsNotification = $smsNotification; - - return $this; - } - - public function getEmailNotification(): ?EmailNotification1 - { - return $this->emailNotification; - } - - public function setEmailNotification(?EmailNotification1 $emailNotification): self - { - $this->initialized['emailNotification'] = true; - $this->emailNotification = $emailNotification; - - return $this; - } -} diff --git a/generated/Model/FromExistingUser1.php b/generated/Model/FromExistingUser1.php deleted file mode 100644 index a792550..0000000 --- a/generated/Model/FromExistingUser1.php +++ /dev/null @@ -1,233 +0,0 @@ -initialized); - } - /** - * Create signer from an existing user. - * - * @var string|null - */ - protected $userId; - /** - * @var list>|null - */ - protected $fields; - /** - * Insert just after the position of the specified signer id. - * - * @var string|null - */ - protected $insertAfterId; - /** - * @var string|null - */ - protected $signatureLevel; - /** - * @var string|null - */ - protected $signatureAuthenticationMode; - /** - * @var FromScratch1RedirectUrls|null - */ - protected $redirectUrls; - /** - * @var FromScratch1CustomText|null - */ - protected $customText; - /** - * Override the delivery mode of the Signature Request for this Signer. - * - * @var string|null - */ - protected $deliveryMode; - /** - * @var string|null - */ - protected $identificationAttestationId; - /** - * @var SmsNotification1|null - */ - protected $smsNotification; - /** - * @var EmailNotification1|null - */ - protected $emailNotification; - - /** - * Create signer from an existing user. - */ - public function getUserId(): ?string - { - return $this->userId; - } - - /** - * Create signer from an existing user. - */ - public function setUserId(?string $userId): self - { - $this->initialized['userId'] = true; - $this->userId = $userId; - - return $this; - } - - /** - * @return list>|null - */ - public function getFields(): ?array - { - return $this->fields; - } - - /** - * @param list>|null $fields - */ - public function setFields(?array $fields): self - { - $this->initialized['fields'] = true; - $this->fields = $fields; - - return $this; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function getInsertAfterId(): ?string - { - return $this->insertAfterId; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function setInsertAfterId(?string $insertAfterId): self - { - $this->initialized['insertAfterId'] = true; - $this->insertAfterId = $insertAfterId; - - return $this; - } - - public function getSignatureLevel(): ?string - { - return $this->signatureLevel; - } - - public function setSignatureLevel(?string $signatureLevel): self - { - $this->initialized['signatureLevel'] = true; - $this->signatureLevel = $signatureLevel; - - return $this; - } - - public function getSignatureAuthenticationMode(): ?string - { - return $this->signatureAuthenticationMode; - } - - public function setSignatureAuthenticationMode(?string $signatureAuthenticationMode): self - { - $this->initialized['signatureAuthenticationMode'] = true; - $this->signatureAuthenticationMode = $signatureAuthenticationMode; - - return $this; - } - - public function getRedirectUrls(): ?FromScratch1RedirectUrls - { - return $this->redirectUrls; - } - - public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self - { - $this->initialized['redirectUrls'] = true; - $this->redirectUrls = $redirectUrls; - - return $this; - } - - public function getCustomText(): ?FromScratch1CustomText - { - return $this->customText; - } - - public function setCustomText(?FromScratch1CustomText $customText): self - { - $this->initialized['customText'] = true; - $this->customText = $customText; - - return $this; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function getDeliveryMode(): ?string - { - return $this->deliveryMode; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function setDeliveryMode(?string $deliveryMode): self - { - $this->initialized['deliveryMode'] = true; - $this->deliveryMode = $deliveryMode; - - return $this; - } - - public function getIdentificationAttestationId(): ?string - { - return $this->identificationAttestationId; - } - - public function setIdentificationAttestationId(?string $identificationAttestationId): self - { - $this->initialized['identificationAttestationId'] = true; - $this->identificationAttestationId = $identificationAttestationId; - - return $this; - } - - public function getSmsNotification(): ?SmsNotification1 - { - return $this->smsNotification; - } - - public function setSmsNotification(?SmsNotification1 $smsNotification): self - { - $this->initialized['smsNotification'] = true; - $this->smsNotification = $smsNotification; - - return $this; - } - - public function getEmailNotification(): ?EmailNotification1 - { - return $this->emailNotification; - } - - public function setEmailNotification(?EmailNotification1 $emailNotification): self - { - $this->initialized['emailNotification'] = true; - $this->emailNotification = $emailNotification; - - return $this; - } -} diff --git a/generated/Model/FromScratch.php b/generated/Model/FromScratch.php deleted file mode 100644 index 1fe59c8..0000000 --- a/generated/Model/FromScratch.php +++ /dev/null @@ -1,33 +0,0 @@ -initialized); - } - /** - * @var FromScratchInfo|null - */ - protected $info; - - public function getInfo(): ?FromScratchInfo - { - return $this->info; - } - - public function setInfo(?FromScratchInfo $info): self - { - $this->initialized['info'] = true; - $this->info = $info; - - return $this; - } -} diff --git a/generated/Model/FromScratch1.php b/generated/Model/FromScratch1.php deleted file mode 100644 index ceb186a..0000000 --- a/generated/Model/FromScratch1.php +++ /dev/null @@ -1,225 +0,0 @@ -initialized); - } - /** - * @var FromScratch1Info|null - */ - protected $info; - /** - * @var list>|null - */ - protected $fields; - /** - * Insert just after the position of the specified signer id. - * - * @var string|null - */ - protected $insertAfterId; - /** - * @var string|null - */ - protected $signatureLevel; - /** - * @var string|null - */ - protected $signatureAuthenticationMode; - /** - * @var FromScratch1RedirectUrls|null - */ - protected $redirectUrls; - /** - * @var FromScratch1CustomText|null - */ - protected $customText; - /** - * Override the delivery mode of the Signature Request for this Signer. - * - * @var string|null - */ - protected $deliveryMode; - /** - * @var string|null - */ - protected $identificationAttestationId; - /** - * @var SmsNotification1|null - */ - protected $smsNotification; - /** - * @var EmailNotification1|null - */ - protected $emailNotification; - - public function getInfo(): ?FromScratch1Info - { - return $this->info; - } - - public function setInfo(?FromScratch1Info $info): self - { - $this->initialized['info'] = true; - $this->info = $info; - - return $this; - } - - /** - * @return list>|null - */ - public function getFields(): ?array - { - return $this->fields; - } - - /** - * @param list>|null $fields - */ - public function setFields(?array $fields): self - { - $this->initialized['fields'] = true; - $this->fields = $fields; - - return $this; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function getInsertAfterId(): ?string - { - return $this->insertAfterId; - } - - /** - * Insert just after the position of the specified signer id. - */ - public function setInsertAfterId(?string $insertAfterId): self - { - $this->initialized['insertAfterId'] = true; - $this->insertAfterId = $insertAfterId; - - return $this; - } - - public function getSignatureLevel(): ?string - { - return $this->signatureLevel; - } - - public function setSignatureLevel(?string $signatureLevel): self - { - $this->initialized['signatureLevel'] = true; - $this->signatureLevel = $signatureLevel; - - return $this; - } - - public function getSignatureAuthenticationMode(): ?string - { - return $this->signatureAuthenticationMode; - } - - public function setSignatureAuthenticationMode(?string $signatureAuthenticationMode): self - { - $this->initialized['signatureAuthenticationMode'] = true; - $this->signatureAuthenticationMode = $signatureAuthenticationMode; - - return $this; - } - - public function getRedirectUrls(): ?FromScratch1RedirectUrls - { - return $this->redirectUrls; - } - - public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self - { - $this->initialized['redirectUrls'] = true; - $this->redirectUrls = $redirectUrls; - - return $this; - } - - public function getCustomText(): ?FromScratch1CustomText - { - return $this->customText; - } - - public function setCustomText(?FromScratch1CustomText $customText): self - { - $this->initialized['customText'] = true; - $this->customText = $customText; - - return $this; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function getDeliveryMode(): ?string - { - return $this->deliveryMode; - } - - /** - * Override the delivery mode of the Signature Request for this Signer. - */ - public function setDeliveryMode(?string $deliveryMode): self - { - $this->initialized['deliveryMode'] = true; - $this->deliveryMode = $deliveryMode; - - return $this; - } - - public function getIdentificationAttestationId(): ?string - { - return $this->identificationAttestationId; - } - - public function setIdentificationAttestationId(?string $identificationAttestationId): self - { - $this->initialized['identificationAttestationId'] = true; - $this->identificationAttestationId = $identificationAttestationId; - - return $this; - } - - public function getSmsNotification(): ?SmsNotification1 - { - return $this->smsNotification; - } - - public function setSmsNotification(?SmsNotification1 $smsNotification): self - { - $this->initialized['smsNotification'] = true; - $this->smsNotification = $smsNotification; - - return $this; - } - - public function getEmailNotification(): ?EmailNotification1 - { - return $this->emailNotification; - } - - public function setEmailNotification(?EmailNotification1 $emailNotification): self - { - $this->initialized['emailNotification'] = true; - $this->emailNotification = $emailNotification; - - return $this; - } -} diff --git a/generated/Model/FromSignatureRequestDocument.php b/generated/Model/FromSignatureRequestDocument.php new file mode 100644 index 0000000..b603a14 --- /dev/null +++ b/generated/Model/FromSignatureRequestDocument.php @@ -0,0 +1,50 @@ +initialized); + } + /** + * Id of the Signature Request Document, the Signature Request must be Done. + * + * @var string|null + */ + protected $signatureRequestDocumentId; + + /** + * Id of the Signature Request Document, the Signature Request must be Done. + */ + public function getSignatureRequestDocumentId(): ?string + { + return $this->signatureRequestDocumentId; + } + + /** + * Id of the Signature Request Document, the Signature Request must be Done. + */ + public function setSignatureRequestDocumentId(?string $signatureRequestDocumentId): self + { + $this->initialized['signatureRequestDocumentId'] = true; + $this->signatureRequestDocumentId = $signatureRequestDocumentId; + + return $this; + } + + public function definedProperties(): array + { + return ['signatureRequestDocumentId' => ['signature_request_document_id', 'getSignatureRequestDocumentId', 'setSignatureRequestDocumentId']]; + } +} diff --git a/generated/Model/GermanInvoiceDocument.php b/generated/Model/GermanInvoiceDocument.php new file mode 100644 index 0000000..f715173 --- /dev/null +++ b/generated/Model/GermanInvoiceDocument.php @@ -0,0 +1,482 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var GermanInvoiceExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var InvoiceCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?GermanInvoiceExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?GermanInvoiceExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?InvoiceCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?InvoiceCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/GermanInvoiceExtraction.php b/generated/Model/GermanInvoiceExtraction.php new file mode 100644 index 0000000..879b948 --- /dev/null +++ b/generated/Model/GermanInvoiceExtraction.php @@ -0,0 +1,366 @@ +initialized); + } + /** + * The date the invoice was issued, extracted from the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * The invoice number extracted from the document. + * + * @var string|null + */ + protected $invoiceNumber; + /** + * The date of the sale or service, extracted from the document. + * + * @var \DateTime|null + */ + protected $invoiceDate; + /** + * The seller (issuer) name extracted from the document. + * + * @var string|null + */ + protected $sellerName; + /** + * The seller (issuer) postal address extracted from the document. + * + * @var string|null + */ + protected $sellerAddress; + /** + * The seller Handelsregisternummer (HRB/HRA) or Steuernummer extracted from the document. + * + * @var string|null + */ + protected $sellerCompanyNumber; + /** + * The seller intra-community VAT number extracted from the document. + * + * @var string|null + */ + protected $vatIdentificationNumber; + /** + * The billing address extracted from the document, when distinct. + * + * @var string|null + */ + protected $billingAddress; + /** + * The shipping address extracted from the document, when distinct. + * + * @var string|null + */ + protected $shippingAddress; + /** + * The buyer (customer) name extracted from the document. + * + * @var string|null + */ + protected $buyerName; + /** + * The buyer (customer) postal address extracted from the document. + * + * @var string|null + */ + protected $buyerAddress; + /** + * The total amount excluding taxes extracted from the document. + * + * @var float|null + */ + protected $totalExcludingTaxes; + /** + * The total amount including taxes extracted from the document. + * + * @var float|null + */ + protected $totalIncludingTaxes; + /** + * The document type extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * The date the invoice was issued, extracted from the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * The date the invoice was issued, extracted from the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * The invoice number extracted from the document. + */ + public function getInvoiceNumber(): ?string + { + return $this->invoiceNumber; + } + + /** + * The invoice number extracted from the document. + */ + public function setInvoiceNumber(?string $invoiceNumber): self + { + $this->initialized['invoiceNumber'] = true; + $this->invoiceNumber = $invoiceNumber; + + return $this; + } + + /** + * The date of the sale or service, extracted from the document. + */ + public function getInvoiceDate(): ?\DateTime + { + return $this->invoiceDate; + } + + /** + * The date of the sale or service, extracted from the document. + */ + public function setInvoiceDate(?\DateTime $invoiceDate): self + { + $this->initialized['invoiceDate'] = true; + $this->invoiceDate = $invoiceDate; + + return $this; + } + + /** + * The seller (issuer) name extracted from the document. + */ + public function getSellerName(): ?string + { + return $this->sellerName; + } + + /** + * The seller (issuer) name extracted from the document. + */ + public function setSellerName(?string $sellerName): self + { + $this->initialized['sellerName'] = true; + $this->sellerName = $sellerName; + + return $this; + } + + /** + * The seller (issuer) postal address extracted from the document. + */ + public function getSellerAddress(): ?string + { + return $this->sellerAddress; + } + + /** + * The seller (issuer) postal address extracted from the document. + */ + public function setSellerAddress(?string $sellerAddress): self + { + $this->initialized['sellerAddress'] = true; + $this->sellerAddress = $sellerAddress; + + return $this; + } + + /** + * The seller Handelsregisternummer (HRB/HRA) or Steuernummer extracted from the document. + */ + public function getSellerCompanyNumber(): ?string + { + return $this->sellerCompanyNumber; + } + + /** + * The seller Handelsregisternummer (HRB/HRA) or Steuernummer extracted from the document. + */ + public function setSellerCompanyNumber(?string $sellerCompanyNumber): self + { + $this->initialized['sellerCompanyNumber'] = true; + $this->sellerCompanyNumber = $sellerCompanyNumber; + + return $this; + } + + /** + * The seller intra-community VAT number extracted from the document. + */ + public function getVatIdentificationNumber(): ?string + { + return $this->vatIdentificationNumber; + } + + /** + * The seller intra-community VAT number extracted from the document. + */ + public function setVatIdentificationNumber(?string $vatIdentificationNumber): self + { + $this->initialized['vatIdentificationNumber'] = true; + $this->vatIdentificationNumber = $vatIdentificationNumber; + + return $this; + } + + /** + * The billing address extracted from the document, when distinct. + */ + public function getBillingAddress(): ?string + { + return $this->billingAddress; + } + + /** + * The billing address extracted from the document, when distinct. + */ + public function setBillingAddress(?string $billingAddress): self + { + $this->initialized['billingAddress'] = true; + $this->billingAddress = $billingAddress; + + return $this; + } + + /** + * The shipping address extracted from the document, when distinct. + */ + public function getShippingAddress(): ?string + { + return $this->shippingAddress; + } + + /** + * The shipping address extracted from the document, when distinct. + */ + public function setShippingAddress(?string $shippingAddress): self + { + $this->initialized['shippingAddress'] = true; + $this->shippingAddress = $shippingAddress; + + return $this; + } + + /** + * The buyer (customer) name extracted from the document. + */ + public function getBuyerName(): ?string + { + return $this->buyerName; + } + + /** + * The buyer (customer) name extracted from the document. + */ + public function setBuyerName(?string $buyerName): self + { + $this->initialized['buyerName'] = true; + $this->buyerName = $buyerName; + + return $this; + } + + /** + * The buyer (customer) postal address extracted from the document. + */ + public function getBuyerAddress(): ?string + { + return $this->buyerAddress; + } + + /** + * The buyer (customer) postal address extracted from the document. + */ + public function setBuyerAddress(?string $buyerAddress): self + { + $this->initialized['buyerAddress'] = true; + $this->buyerAddress = $buyerAddress; + + return $this; + } + + /** + * The total amount excluding taxes extracted from the document. + */ + public function getTotalExcludingTaxes(): ?float + { + return $this->totalExcludingTaxes; + } + + /** + * The total amount excluding taxes extracted from the document. + */ + public function setTotalExcludingTaxes(?float $totalExcludingTaxes): self + { + $this->initialized['totalExcludingTaxes'] = true; + $this->totalExcludingTaxes = $totalExcludingTaxes; + + return $this; + } + + /** + * The total amount including taxes extracted from the document. + */ + public function getTotalIncludingTaxes(): ?float + { + return $this->totalIncludingTaxes; + } + + /** + * The total amount including taxes extracted from the document. + */ + public function setTotalIncludingTaxes(?float $totalIncludingTaxes): self + { + $this->initialized['totalIncludingTaxes'] = true; + $this->totalIncludingTaxes = $totalIncludingTaxes; + + return $this; + } + + /** + * The document type extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/GermanProofOfAddressDocument.php b/generated/Model/GermanProofOfAddressDocument.php new file mode 100644 index 0000000..7bf95f5 --- /dev/null +++ b/generated/Model/GermanProofOfAddressDocument.php @@ -0,0 +1,482 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var GermanProofOfAddressExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var ProofOfAddressCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?GermanProofOfAddressExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?GermanProofOfAddressExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?ProofOfAddressCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?ProofOfAddressCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/GermanProofOfAddressExtraction.php b/generated/Model/GermanProofOfAddressExtraction.php new file mode 100644 index 0000000..fa0731f --- /dev/null +++ b/generated/Model/GermanProofOfAddressExtraction.php @@ -0,0 +1,166 @@ +initialized); + } + /** + * The first name of the registered person, extracted from the document. + * + * @var string|null + */ + protected $firstName; + /** + * The last name of the registered person, extracted from the document. + * + * @var string|null + */ + protected $lastName; + /** + * The full main residence address extracted from the document. + * + * @var string|null + */ + protected $fullAddress; + /** + * The date since when the person has been living at the main residence (Einzugsdatum), extracted from the document. + * + * @var \DateTime|null + */ + protected $residenceStartDate; + /** + * The date the certificate was issued (Ausstellungsdatum), extracted from the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * The document type extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * The first name of the registered person, extracted from the document. + */ + public function getFirstName(): ?string + { + return $this->firstName; + } + + /** + * The first name of the registered person, extracted from the document. + */ + public function setFirstName(?string $firstName): self + { + $this->initialized['firstName'] = true; + $this->firstName = $firstName; + + return $this; + } + + /** + * The last name of the registered person, extracted from the document. + */ + public function getLastName(): ?string + { + return $this->lastName; + } + + /** + * The last name of the registered person, extracted from the document. + */ + public function setLastName(?string $lastName): self + { + $this->initialized['lastName'] = true; + $this->lastName = $lastName; + + return $this; + } + + /** + * The full main residence address extracted from the document. + */ + public function getFullAddress(): ?string + { + return $this->fullAddress; + } + + /** + * The full main residence address extracted from the document. + */ + public function setFullAddress(?string $fullAddress): self + { + $this->initialized['fullAddress'] = true; + $this->fullAddress = $fullAddress; + + return $this; + } + + /** + * The date since when the person has been living at the main residence (Einzugsdatum), extracted from the document. + */ + public function getResidenceStartDate(): ?\DateTime + { + return $this->residenceStartDate; + } + + /** + * The date since when the person has been living at the main residence (Einzugsdatum), extracted from the document. + */ + public function setResidenceStartDate(?\DateTime $residenceStartDate): self + { + $this->initialized['residenceStartDate'] = true; + $this->residenceStartDate = $residenceStartDate; + + return $this; + } + + /** + * The date the certificate was issued (Ausstellungsdatum), extracted from the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * The date the certificate was issued (Ausstellungsdatum), extracted from the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * The document type extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/GermanTaxNoticeDocument.php b/generated/Model/GermanTaxNoticeDocument.php new file mode 100644 index 0000000..2197f8a --- /dev/null +++ b/generated/Model/GermanTaxNoticeDocument.php @@ -0,0 +1,485 @@ +initialized); + } + /** + * The unique identifier for a resource. + * + * @var string|null + */ + protected $id; + /** + * The Workspace ID in which the Document Analysis has been created. + * + * @var string|null + */ + protected $workspaceId; + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + * + * @var string|null + */ + protected $workflowSessionId; + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + * + * @var string|null + */ + protected $previousAttemptId; + /** + * Creation date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $createdAt; + /** + * Update date of the Document Analysis. + * + * @var \DateTime|null + */ + protected $updatedAt; + /** + * Status of the Document Analysis. + * + * @var string|null + */ + protected $status; + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @var list|null + */ + protected $statusCodes; + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + * + * @var string|null + */ + protected $countryCode; + /** + * Unique identifier of an Applicant. + * + * @var string|null + */ + protected $applicantId; + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + * + * @var bool|null + */ + protected $dataAnonymized; + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + * + * @var AnalysisType|null + */ + protected $analysisType; + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + * + * @var FraudRiskAnalysis|null + */ + protected $fraudRiskAnalysis; + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + * + * @var DocumentClassification|null + */ + protected $documentClassification; + /** + * @var string|null + */ + protected $type; + /** + * Extracted data from the document. + * + * @var GermanTaxNoticeExtraction|null + */ + protected $extractedFromDocument; + /** + * Checks performed on the document. + * + * @var TaxNoticeCheck|null + */ + protected $checks; + + /** + * The unique identifier for a resource. + */ + public function getId(): ?string + { + return $this->id; + } + + /** + * The unique identifier for a resource. + */ + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function getWorkspaceId(): ?string + { + return $this->workspaceId; + } + + /** + * The Workspace ID in which the Document Analysis has been created. + */ + public function setWorkspaceId(?string $workspaceId): self + { + $this->initialized['workspaceId'] = true; + $this->workspaceId = $workspaceId; + + return $this; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function getWorkflowSessionId(): ?string + { + return $this->workflowSessionId; + } + + /** + * Unique identifier of a Workflow Session. When provided, an Action is created in the Workflow Session, and this resource is associated with that Action. + */ + public function setWorkflowSessionId(?string $workflowSessionId): self + { + $this->initialized['workflowSessionId'] = true; + $this->workflowSessionId = $workflowSessionId; + + return $this; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function getPreviousAttemptId(): ?string + { + return $this->previousAttemptId; + } + + /** + * ID of the previous attempt within the same `workflow_session_id`. + * Allows continuity between multiple attempts of the same Action. + * Null if this is the first attempt. + */ + public function setPreviousAttemptId(?string $previousAttemptId): self + { + $this->initialized['previousAttemptId'] = true; + $this->previousAttemptId = $previousAttemptId; + + return $this; + } + + /** + * Creation date of the Document Analysis. + */ + public function getCreatedAt(): ?\DateTime + { + return $this->createdAt; + } + + /** + * Creation date of the Document Analysis. + */ + public function setCreatedAt(?\DateTime $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + /** + * Update date of the Document Analysis. + */ + public function getUpdatedAt(): ?\DateTime + { + return $this->updatedAt; + } + + /** + * Update date of the Document Analysis. + */ + public function setUpdatedAt(?\DateTime $updatedAt): self + { + $this->initialized['updatedAt'] = true; + $this->updatedAt = $updatedAt; + + return $this; + } + + /** + * Status of the Document Analysis. + */ + public function getStatus(): ?string + { + return $this->status; + } + + /** + * Status of the Document Analysis. + */ + public function setStatus(?string $status): self + { + $this->initialized['status'] = true; + $this->status = $status; + + return $this; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @return list|null + */ + public function getStatusCodes(): ?array + { + return $this->statusCodes; + } + + /** + * List of status codes. Indicates the cause when the status is `failed`. + * + * `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. + * + * @param list|null $statusCodes + */ + public function setStatusCodes(?array $statusCodes): self + { + $this->initialized['statusCodes'] = true; + $this->statusCodes = $statusCodes; + + return $this; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + /** + * The country code associated with the document analysis. + * Null for document types that don't require a country code. + */ + public function setCountryCode(?string $countryCode): self + { + $this->initialized['countryCode'] = true; + $this->countryCode = $countryCode; + + return $this; + } + + /** + * Unique identifier of an Applicant. + */ + public function getApplicantId(): ?string + { + return $this->applicantId; + } + + /** + * Unique identifier of an Applicant. + */ + public function setApplicantId(?string $applicantId): self + { + $this->initialized['applicantId'] = true; + $this->applicantId = $applicantId; + + return $this; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function getDataAnonymized(): ?bool + { + return $this->dataAnonymized; + } + + /** + * Indicates if the personal data extracted from the document has been anonymized. + * If set to `true`, the personal data has been anonymized and most fields will be NULL. + */ + public function setDataAnonymized(?bool $dataAnonymized): self + { + $this->initialized['dataAnonymized'] = true; + $this->dataAnonymized = $dataAnonymized; + + return $this; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function getAnalysisType(): ?AnalysisType + { + return $this->analysisType; + } + + /** + * Controls what the Document Analysis performs. + * + * - When `extraction` is `true` (default), data is extracted from the document and a document `type` is **required**. + * - When `extraction` is `false` (fraud-only), no `type` must be provided and `fraud_level` must be `standard` or `advanced`. Only available with `multipart/form-data` (direct file upload); not supported when attaching to an Applicant (`application/json`), where a document `type` is always required. + */ + public function setAnalysisType(?AnalysisType $analysisType): self + { + $this->initialized['analysisType'] = true; + $this->analysisType = $analysisType; + + return $this; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function getFraudRiskAnalysis(): ?FraudRiskAnalysis + { + return $this->fraudRiskAnalysis; + } + + /** + * Result of the fraud detection analysis. `null` when no fraud detection verdict is available + * (e.g. fraud detection was not requested, or is still in progress). + */ + public function setFraudRiskAnalysis(?FraudRiskAnalysis $fraudRiskAnalysis): self + { + $this->initialized['fraudRiskAnalysis'] = true; + $this->fraudRiskAnalysis = $fraudRiskAnalysis; + + return $this; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function getDocumentClassification(): ?DocumentClassification + { + return $this->documentClassification; + } + + /** + * Result of the document classification. + * `null` when no classification ran for this analysis, When a classification + * did run, the node is present and `document_type` may itself be `null`, + * meaning no supported type was recognised on the document. + */ + public function setDocumentClassification(?DocumentClassification $documentClassification): self + { + $this->initialized['documentClassification'] = true; + $this->documentClassification = $documentClassification; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * Extracted data from the document. + */ + public function getExtractedFromDocument(): ?GermanTaxNoticeExtraction + { + return $this->extractedFromDocument; + } + + /** + * Extracted data from the document. + */ + public function setExtractedFromDocument(?GermanTaxNoticeExtraction $extractedFromDocument): self + { + $this->initialized['extractedFromDocument'] = true; + $this->extractedFromDocument = $extractedFromDocument; + + return $this; + } + + /** + * Checks performed on the document. + */ + public function getChecks(): ?TaxNoticeCheck + { + return $this->checks; + } + + /** + * Checks performed on the document. + */ + public function setChecks(?TaxNoticeCheck $checks): self + { + $this->initialized['checks'] = true; + $this->checks = $checks; + + return $this; + } + + public function definedProperties(): array + { + return ['id' => ['id', 'getId', 'setId'], 'workspaceId' => ['workspace_id', 'getWorkspaceId', 'setWorkspaceId'], 'workflowSessionId' => ['workflow_session_id', 'getWorkflowSessionId', 'setWorkflowSessionId'], 'previousAttemptId' => ['previous_attempt_id', 'getPreviousAttemptId', 'setPreviousAttemptId'], 'createdAt' => ['created_at', 'getCreatedAt', 'setCreatedAt'], 'updatedAt' => ['updated_at', 'getUpdatedAt', 'setUpdatedAt'], 'status' => ['status', 'getStatus', 'setStatus'], 'statusCodes' => ['status_codes', 'getStatusCodes', 'setStatusCodes'], 'countryCode' => ['country_code', 'getCountryCode', 'setCountryCode'], 'applicantId' => ['applicant_id', 'getApplicantId', 'setApplicantId'], 'dataAnonymized' => ['data_anonymized', 'getDataAnonymized', 'setDataAnonymized'], 'analysisType' => ['analysis_type', 'getAnalysisType', 'setAnalysisType'], 'fraudRiskAnalysis' => ['fraud_risk_analysis', 'getFraudRiskAnalysis', 'setFraudRiskAnalysis'], 'documentClassification' => ['document_classification', 'getDocumentClassification', 'setDocumentClassification'], 'type' => ['type', 'getType', 'setType'], 'extractedFromDocument' => ['extracted_from_document', 'getExtractedFromDocument', 'setExtractedFromDocument'], 'checks' => ['checks', 'getChecks', 'setChecks']]; + } +} diff --git a/generated/Model/GermanTaxNoticeExtraction.php b/generated/Model/GermanTaxNoticeExtraction.php new file mode 100644 index 0000000..e73e99c --- /dev/null +++ b/generated/Model/GermanTaxNoticeExtraction.php @@ -0,0 +1,216 @@ +initialized); + } + /** + * The holder full name of the first declarant extracted from the document. + * + * @var string|null + */ + protected $fullName1; + /** + * The holder full name of the second declarant extracted from the document. + * + * @var string|null + */ + protected $fullName2; + /** + * The tax identification number (IdNr) of the first declarant extracted from the document. + * + * @var string|null + */ + protected $fiscalNumber1; + /** + * The tax identification number (IdNr) of the second declarant extracted from the document. + * + * @var string|null + */ + protected $fiscalNumber2; + /** + * The tax notice issuance date extracted from the document. + * + * @var \DateTime|null + */ + protected $issuanceDate; + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + * + * @var int|null + */ + protected $incomeYear; + /** + * The taxable income (zu versteuerndes Einkommen) extracted from the document. + * + * @var int|null + */ + protected $referenceIncome; + /** + * The document type extracted from the document. + * + * @var string|null + */ + protected $documentType; + + /** + * The holder full name of the first declarant extracted from the document. + */ + public function getFullName1(): ?string + { + return $this->fullName1; + } + + /** + * The holder full name of the first declarant extracted from the document. + */ + public function setFullName1(?string $fullName1): self + { + $this->initialized['fullName1'] = true; + $this->fullName1 = $fullName1; + + return $this; + } + + /** + * The holder full name of the second declarant extracted from the document. + */ + public function getFullName2(): ?string + { + return $this->fullName2; + } + + /** + * The holder full name of the second declarant extracted from the document. + */ + public function setFullName2(?string $fullName2): self + { + $this->initialized['fullName2'] = true; + $this->fullName2 = $fullName2; + + return $this; + } + + /** + * The tax identification number (IdNr) of the first declarant extracted from the document. + */ + public function getFiscalNumber1(): ?string + { + return $this->fiscalNumber1; + } + + /** + * The tax identification number (IdNr) of the first declarant extracted from the document. + */ + public function setFiscalNumber1(?string $fiscalNumber1): self + { + $this->initialized['fiscalNumber1'] = true; + $this->fiscalNumber1 = $fiscalNumber1; + + return $this; + } + + /** + * The tax identification number (IdNr) of the second declarant extracted from the document. + */ + public function getFiscalNumber2(): ?string + { + return $this->fiscalNumber2; + } + + /** + * The tax identification number (IdNr) of the second declarant extracted from the document. + */ + public function setFiscalNumber2(?string $fiscalNumber2): self + { + $this->initialized['fiscalNumber2'] = true; + $this->fiscalNumber2 = $fiscalNumber2; + + return $this; + } + + /** + * The tax notice issuance date extracted from the document. + */ + public function getIssuanceDate(): ?\DateTime + { + return $this->issuanceDate; + } + + /** + * The tax notice issuance date extracted from the document. + */ + public function setIssuanceDate(?\DateTime $issuanceDate): self + { + $this->initialized['issuanceDate'] = true; + $this->issuanceDate = $issuanceDate; + + return $this; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + */ + public function getIncomeYear(): ?int + { + return $this->incomeYear; + } + + /** + * Year of incomes (usually the year before document issuance) extracted from the document. + */ + public function setIncomeYear(?int $incomeYear): self + { + $this->initialized['incomeYear'] = true; + $this->incomeYear = $incomeYear; + + return $this; + } + + /** + * The taxable income (zu versteuerndes Einkommen) extracted from the document. + */ + public function getReferenceIncome(): ?int + { + return $this->referenceIncome; + } + + /** + * The taxable income (zu versteuerndes Einkommen) extracted from the document. + */ + public function setReferenceIncome(?int $referenceIncome): self + { + $this->initialized['referenceIncome'] = true; + $this->referenceIncome = $referenceIncome; + + return $this; + } + + /** + * The document type extracted from the document. + */ + public function getDocumentType(): ?string + { + return $this->documentType; + } + + /** + * The document type extracted from the document. + */ + public function setDocumentType(?string $documentType): self + { + $this->initialized['documentType'] = true; + $this->documentType = $documentType; + + return $this; + } +} diff --git a/generated/Model/GetConsumptionAddon200Response.php b/generated/Model/GetConsumptionAddon200Response.php index a16bafb..ca3ed0f 100644 --- a/generated/Model/GetConsumptionAddon200Response.php +++ b/generated/Model/GetConsumptionAddon200Response.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class GetConsumptionAddon200Response extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class GetConsumptionAddon200Response implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -36,4 +40,9 @@ public function setData(?array $data): self return $this; } + + public function definedProperties(): array + { + return ['data' => ['data', 'getData', 'setData']]; + } } diff --git a/generated/Model/GetConsumptionDetail200Response.php b/generated/Model/GetConsumptionDetail200Response.php index e3db53c..44b3fd2 100644 --- a/generated/Model/GetConsumptionDetail200Response.php +++ b/generated/Model/GetConsumptionDetail200Response.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class GetConsumptionDetail200Response extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class GetConsumptionDetail200Response implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -61,4 +65,9 @@ public function setData(?array $data): self return $this; } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } } diff --git a/generated/Model/GetConsumptionsRecordsElectronicSeals200Response.php b/generated/Model/GetConsumptionsRecordsElectronicSeals200Response.php new file mode 100644 index 0000000..df51fd1 --- /dev/null +++ b/generated/Model/GetConsumptionsRecordsElectronicSeals200Response.php @@ -0,0 +1,73 @@ +initialized); + } + /** + * Metadata about the response. + * + * @var Pagination|null + */ + protected $meta; + /** + * @var list|null + */ + protected $data; + + /** + * Metadata about the response. + */ + public function getMeta(): ?Pagination + { + return $this->meta; + } + + /** + * Metadata about the response. + */ + public function setMeta(?Pagination $meta): self + { + $this->initialized['meta'] = true; + $this->meta = $meta; + + return $this; + } + + /** + * @return list|null + */ + public function getData(): ?array + { + return $this->data; + } + + /** + * @param list|null $data + */ + public function setData(?array $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/GetConsumptionsRecordsIdentifications200Response.php b/generated/Model/GetConsumptionsRecordsIdentifications200Response.php new file mode 100644 index 0000000..56ede02 --- /dev/null +++ b/generated/Model/GetConsumptionsRecordsIdentifications200Response.php @@ -0,0 +1,73 @@ +initialized); + } + /** + * Metadata about the response. + * + * @var Pagination|null + */ + protected $meta; + /** + * @var list|null + */ + protected $data; + + /** + * Metadata about the response. + */ + public function getMeta(): ?Pagination + { + return $this->meta; + } + + /** + * Metadata about the response. + */ + public function setMeta(?Pagination $meta): self + { + $this->initialized['meta'] = true; + $this->meta = $meta; + + return $this; + } + + /** + * @return list|null + */ + public function getData(): ?array + { + return $this->data; + } + + /** + * @param list|null $data + */ + public function setData(?array $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/GetConsumptionsRecordsInvitedSigners200Response.php b/generated/Model/GetConsumptionsRecordsInvitedSigners200Response.php new file mode 100644 index 0000000..72ea7d6 --- /dev/null +++ b/generated/Model/GetConsumptionsRecordsInvitedSigners200Response.php @@ -0,0 +1,73 @@ +initialized); + } + /** + * Metadata about the response. + * + * @var Pagination|null + */ + protected $meta; + /** + * @var list|null + */ + protected $data; + + /** + * Metadata about the response. + */ + public function getMeta(): ?Pagination + { + return $this->meta; + } + + /** + * Metadata about the response. + */ + public function setMeta(?Pagination $meta): self + { + $this->initialized['meta'] = true; + $this->meta = $meta; + + return $this; + } + + /** + * @return list|null + */ + public function getData(): ?array + { + return $this->data; + } + + /** + * @param list|null $data + */ + public function setData(?array $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/GetContacts200Response.php b/generated/Model/GetContacts200Response.php index 524c431..465dd08 100644 --- a/generated/Model/GetContacts200Response.php +++ b/generated/Model/GetContacts200Response.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class GetContacts200Response extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class GetContacts200Response implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,7 +18,7 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Cursor based pagination. + * Metadata about the response. * * @var Pagination|null */ @@ -25,7 +29,7 @@ public function isInitialized($property): bool protected $data; /** - * Cursor based pagination. + * Metadata about the response. */ public function getMeta(): ?Pagination { @@ -33,7 +37,7 @@ public function getMeta(): ?Pagination } /** - * Cursor based pagination. + * Metadata about the response. */ public function setMeta(?Pagination $meta): self { @@ -61,4 +65,9 @@ public function setData(?array $data): self return $this; } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } } diff --git a/generated/Model/GetCustomExperiences200Response.php b/generated/Model/GetCustomExperiences200Response.php index ed19405..c39653b 100644 --- a/generated/Model/GetCustomExperiences200Response.php +++ b/generated/Model/GetCustomExperiences200Response.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class GetCustomExperiences200Response extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class GetCustomExperiences200Response implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,7 +18,7 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Cursor based pagination. + * Metadata about the response. * * @var Pagination|null */ @@ -25,7 +29,7 @@ public function isInitialized($property): bool protected $data; /** - * Cursor based pagination. + * Metadata about the response. */ public function getMeta(): ?Pagination { @@ -33,7 +37,7 @@ public function getMeta(): ?Pagination } /** - * Cursor based pagination. + * Metadata about the response. */ public function setMeta(?Pagination $meta): self { @@ -61,4 +65,9 @@ public function setData(?array $data): self return $this; } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } } diff --git a/generated/Model/GetDocumentAnalyses200Response.php b/generated/Model/GetDocumentAnalyses200Response.php new file mode 100644 index 0000000..ec09c86 --- /dev/null +++ b/generated/Model/GetDocumentAnalyses200Response.php @@ -0,0 +1,73 @@ +initialized); + } + /** + * Metadata about the response. + * + * @var Pagination|null + */ + protected $meta; + /** + * @var list|null + */ + protected $data; + + /** + * Metadata about the response. + */ + public function getMeta(): ?Pagination + { + return $this->meta; + } + + /** + * Metadata about the response. + */ + public function setMeta(?Pagination $meta): self + { + $this->initialized['meta'] = true; + $this->meta = $meta; + + return $this; + } + + /** + * @return list|null + */ + public function getData(): ?array + { + return $this->data; + } + + /** + * @param list|null $data + */ + public function setData(?array $data): self + { + $this->initialized['data'] = true; + $this->data = $data; + + return $this; + } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } +} diff --git a/generated/Model/GetInvitations200Response.php b/generated/Model/GetInvitations200Response.php index 53d5d49..880be5b 100644 --- a/generated/Model/GetInvitations200Response.php +++ b/generated/Model/GetInvitations200Response.php @@ -2,8 +2,12 @@ namespace Qdequippe\Yousign\Api\Model; -class GetInvitations200Response extends \ArrayObject +use Qdequippe\Yousign\Api\Runtime\AdditionalAndPatternProperties; +use Qdequippe\Yousign\Api\Runtime\AdditionalPropertiesInterface; + +class GetInvitations200Response implements AdditionalPropertiesInterface { + use AdditionalAndPatternProperties; /** * @var array */ @@ -14,7 +18,7 @@ public function isInitialized($property): bool return \array_key_exists($property, $this->initialized); } /** - * Cursor based pagination. + * Metadata about the response. * * @var Pagination|null */ @@ -25,7 +29,7 @@ public function isInitialized($property): bool protected $data; /** - * Cursor based pagination. + * Metadata about the response. */ public function getMeta(): ?Pagination { @@ -33,7 +37,7 @@ public function getMeta(): ?Pagination } /** - * Cursor based pagination. + * Metadata about the response. */ public function setMeta(?Pagination $meta): self { @@ -61,4 +65,9 @@ public function setData(?array $data): self return $this; } + + public function definedProperties(): array + { + return ['meta' => ['meta', 'getMeta', 'setMeta'], 'data' => ['data', 'getData', 'setData']]; + } } diff --git a/generated/Model/GetLabels200Response.php b/generated/Model/GetLabels200Response.php new file mode 100644 index 0000000..2163147 --- /dev/null +++ b/generated/Model/GetLabels200Response.php @@ -0,0 +1,73 @@ +initialized); + } + /** + * Metadata about the response. + * + * @var Pagination|null + */ + protected $meta; + /** + * @var list