Skip to content

Commit

Permalink
Changes by create-pull-request action (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 7, 2024
1 parent e4905ee commit f121171
Show file tree
Hide file tree
Showing 58 changed files with 3,782 additions and 4 deletions.
164 changes: 164 additions & 0 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Qdequippe\Yousign\Api\Endpoint\DeleteElectronicSealImage;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdApproversApproverId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId;
use Qdequippe\Yousign\Api\Endpoint\DeleteSignatureRequestsSignatureRequestIdDocumentsDocumentId;
Expand Down Expand Up @@ -48,6 +50,8 @@
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdDocumentsDownload;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdFollowers;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdMetadata;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdSignerConsentRequests;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdSignerDocumentRequests;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdSigners;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdSignersSignerIdAuditTrails;
use Qdequippe\Yousign\Api\Endpoint\GetSignatureRequestsSignatureRequestIdSignersSignerIdDocuments;
Expand All @@ -68,8 +72,10 @@
use Qdequippe\Yousign\Api\Endpoint\PatchCustomExperiencesCustomExperienceId;
use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestId;
use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdApproversApproverId;
use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId;
use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdDocumentsDocumentId;
use Qdequippe\Yousign\Api\Endpoint\PatchSignatureRequestsSignatureRequestIdSignersSignerId;
use Qdequippe\Yousign\Api\Endpoint\PatchUsersUserId;
use Qdequippe\Yousign\Api\Endpoint\PatchWebhooksWebhookId;
use Qdequippe\Yousign\Api\Endpoint\PatchWorkspacesWorkspaceId;
use Qdequippe\Yousign\Api\Endpoint\PostArchives;
Expand All @@ -82,6 +88,7 @@
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdApprovers;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdApproversApproverIdSendReminder;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdCancel;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdConsentRequests;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdDocumentRequests;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdDocuments;
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdDocumentsDocumentIdFields;
Expand All @@ -95,6 +102,7 @@
use Qdequippe\Yousign\Api\Endpoint\PostSignatureRequestsSignatureRequestIdSignersSignerIdSign;
use Qdequippe\Yousign\Api\Endpoint\PostWebhooksSubscriptions;
use Qdequippe\Yousign\Api\Endpoint\PostWorkspace;
use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId;
use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdDocumentRequestsDocumentRequestIdSignersSignerId;
use Qdequippe\Yousign\Api\Endpoint\PutSignatureRequestsSignatureRequestIdMetadata;
use Qdequippe\Yousign\Api\Endpoint\PutWorkspacesWorkspaceIdUsers;
Expand All @@ -106,6 +114,7 @@
use Qdequippe\Yousign\Api\Model\CreateFollowersInner;
use Qdequippe\Yousign\Api\Model\CreateSignatureRequest;
use Qdequippe\Yousign\Api\Model\CreateSignatureRequestMetadata;
use Qdequippe\Yousign\Api\Model\CreateSignerConsentRequest;
use Qdequippe\Yousign\Api\Model\CreateSignerDocumentRequest;
use Qdequippe\Yousign\Api\Model\CreateWebhookSubscription;
use Qdequippe\Yousign\Api\Model\CreateWorkspace;
Expand All @@ -125,6 +134,8 @@
use Qdequippe\Yousign\Api\Model\UpdateSignatureRequest;
use Qdequippe\Yousign\Api\Model\UpdateSignatureRequestMetadata;
use Qdequippe\Yousign\Api\Model\UpdateSigner;
use Qdequippe\Yousign\Api\Model\UpdateSignerConsentRequest;
use Qdequippe\Yousign\Api\Model\UpdateUser;
use Qdequippe\Yousign\Api\Model\UpdateWebhookSubscription;
use Qdequippe\Yousign\Api\Model\UpdateWorkspace;
use Qdequippe\Yousign\Api\Model\UploadArchivedFile;
Expand Down Expand Up @@ -934,6 +945,139 @@ public function postSignatureRequestsSignatureRequestIdCancel(string $signatureR
return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdCancel($signatureRequestId, $requestBody), $fetch);
}

/**
* Returns a list of Signer Consent Requests 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\GetSignatureRequestsSignatureRequestIdSignerConsentRequests200Response|ResponseInterface|null
*
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsUnauthorizedException
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsForbiddenException
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerConsentRequestsNotFoundException
*/
public function getSignatureRequestsSignatureRequestIdSignerConsentRequests(string $signatureRequestId, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new GetSignatureRequestsSignatureRequestIdSignerConsentRequests($signatureRequestId), $fetch);
}

/**
* Adds a Signer Consent Request to a given Signature Request. This action is only permitted when the Signature Request is a draft.
*
* @param string $signatureRequestId Signature Request Id
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\SignerConsentRequest|ResponseInterface|null
*
* @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsBadRequestException
* @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnauthorizedException
* @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsForbiddenException
* @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsNotFoundException
* @throws Exception\PostSignatureRequestsSignatureRequestIdConsentRequestsUnsupportedMediaTypeException
*/
public function postSignatureRequestsSignatureRequestIdConsentRequests(string $signatureRequestId, ?CreateSignerConsentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new PostSignatureRequestsSignatureRequestIdConsentRequests($signatureRequestId, $requestBody), $fetch);
}

/**
* Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft.
*
* @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
*
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException
*/
public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId(string $signatureRequestId, string $consentRequestId, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId($signatureRequestId, $consentRequestId), $fetch);
}

/**
* 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.
*
* @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
*
* @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException
* @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException
* @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException
* @throws Exception\PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException
*/
public function patchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId(string $signatureRequestId, string $consentRequestId, ?UpdateSignerConsentRequest $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new PatchSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId($signatureRequestId, $consentRequestId, $requestBody), $fetch);
}

/**
* Remove a Signer from a given Signer Consent Request. This action is only permitted when the Signature Request is a draft.
*
* @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
*
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException
* @throws Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException
*/
public function deleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId(string $signatureRequestId, string $consentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId($signatureRequestId, $consentRequestId, $signerId), $fetch);
}

/**
* Adds a Signer to a given Signer Consent Request. This action is only permitted when the Signature Request is a draft.
*
* @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
*
* @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdBadRequestException
* @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdUnauthorizedException
* @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdForbiddenException
* @throws Exception\PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerIdNotFoundException
*/
public function putSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId(string $signatureRequestId, string $consentRequestId, string $signerId, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new PutSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdSignersSignerId($signatureRequestId, $consentRequestId, $signerId), $fetch);
}

/**
* Returns a list of Signer Document Requests 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\GetSignatureRequestsSignatureRequestIdSignerDocumentRequests200Response|ResponseInterface|null
*
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsUnauthorizedException
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsForbiddenException
* @throws Exception\GetSignatureRequestsSignatureRequestIdSignerDocumentRequestsNotFoundException
*/
public function getSignatureRequestsSignatureRequestIdSignerDocumentRequests(string $signatureRequestId, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new GetSignatureRequestsSignatureRequestIdSignerDocumentRequests($signatureRequestId), $fetch);
}

/**
* Adds a Signer Document Request to a given Signature Request.
*
Expand Down Expand Up @@ -1704,6 +1848,26 @@ public function getUsersUserId(string $userId, string $fetch = self::FETCH_OBJEC
return $this->executeEndpoint(new GetUsersUserId($userId), $fetch);
}

/**
* Updates a given User.
* Any parameters not provided are left unchanged.
*
* @param string $userId User Id
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\User|ResponseInterface|null
*
* @throws Exception\PatchUsersUserIdBadRequestException
* @throws Exception\PatchUsersUserIdUnauthorizedException
* @throws Exception\PatchUsersUserIdForbiddenException
* @throws Exception\PatchUsersUserIdNotFoundException
* @throws Exception\PatchUsersUserIdUnsupportedMediaTypeException
*/
public function patchUsersUserId(string $userId, ?UpdateUser $requestBody = null, string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new PatchUsersUserId($userId, $requestBody), $fetch);
}

/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php

namespace Qdequippe\Yousign\Api\Endpoint;

use Psr\Http\Message\ResponseInterface;
use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException;
use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException;
use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException;
use Qdequippe\Yousign\Api\Exception\DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException;
use Qdequippe\Yousign\Api\Model\BadRequestResponse;
use Qdequippe\Yousign\Api\Model\ForbiddenResponse;
use Qdequippe\Yousign\Api\Model\NotFoundResponse;
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 Symfony\Component\Serializer\SerializerInterface;

class DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestId extends BaseEndpoint implements Endpoint
{
use EndpointTrait;

/**
* Delete a Signer Consent Request from signature request. This action is only permitted when the Signature Request is a draft.
*
* @param string $signatureRequestId Signature Request Id
* @param string $consentRequestId Signer Consent Request Id
*/
public function __construct(protected string $signatureRequestId, protected string $consentRequestId)
{
}

public function getMethod(): string
{
return 'DELETE';
}

public function getUri(): string
{
return str_replace(['{signatureRequestId}', '{consentRequestId}'], [$this->signatureRequestId, $this->consentRequestId], '/signature_requests/{signatureRequestId}/consent_requests/{consentRequestId}');
}

public function getBody(SerializerInterface $serializer, $streamFactory = null): array
{
return [[], null];
}

public function getExtraHeaders(): array
{
return ['Accept' => ['application/json']];
}

/**
* @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException
* @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException
* @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException
* @throws DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException
*/
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 && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdBadRequestException($serializer->deserialize($body, BadRequestResponse::class, 'json'), $response);
}
if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdUnauthorizedException($serializer->deserialize($body, UnauthorizedResponse::class, 'json'), $response);
}
if (null !== $contentType && (403 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdForbiddenException($serializer->deserialize($body, ForbiddenResponse::class, 'json'), $response);
}
if (null !== $contentType && (404 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new DeleteSignatureRequestsSignatureRequestIdConsentRequestsConsentRequestIdNotFoundException($serializer->deserialize($body, NotFoundResponse::class, 'json'), $response);
}

return null;
}

public function getAuthenticationScopes(): array
{
return ['bearerAuth'];
}
}
Loading

0 comments on commit f121171

Please sign in to comment.