Skip to content

Commit

Permalink
Version 6.9.0-v2.1-22.1.02.00 release (#173)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
dbbrahmbhatt and root authored May 23, 2022
1 parent 719a6d7 commit 0700f55
Show file tree
Hide file tree
Showing 60 changed files with 6,926 additions and 189 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.

## [v6.9.0] - eSignature API v2.1-22.1.02.00 - 2022-05-18
### Changed
- Added support for version v2.1-22.1.02.00 of the DocuSign ESignature API.
- Updated the SDK release version.

## [v6.8.0] - eSignature API v2.1-22.1.01.00 - 2022-04-07
### Changed
- Added support for version v2.1-22.1.01.00 of the DocuSign ESignature API.
Expand Down
197 changes: 53 additions & 144 deletions src/Api/AccountsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,47 +715,6 @@ public function setInclude(?string $include): self
}


/**
* GetReservedDomainExistenceOptions Class Doc Comment
*
* @category Class
* @package DocuSign\eSign
* @author Swagger Codegen team <[email protected]>
* @license The DocuSign PHP Client SDK is licensed under the MIT License.
* @link https://github.com/swagger-api/swagger-codegen
*/
class GetReservedDomainExistenceOptions
{
/**
* $email_domain
* @var ?string
*/
protected ?string $email_domain = null;

/**
* Gets email_domain
*
* @return ?string
*/
public function getEmailDomain(): ?string
{
return $this->email_domain;
}

/**
* Sets email_domain
* @param ?string $email_domain
*
* @return self
*/
public function setEmailDomain(?string $email_domain): self
{
$this->email_domain = $email_domain;
return $this;
}
}


/**
* ListBrandsOptions Class Doc Comment
*
Expand Down Expand Up @@ -1218,6 +1177,47 @@ public function setTransparentPng(?string $transparent_png): self
}


/**
* UpdateBrandOptions Class Doc Comment
*
* @category Class
* @package DocuSign\eSign
* @author Swagger Codegen team <[email protected]>
* @license The DocuSign PHP Client SDK is licensed under the MIT License.
* @link https://github.com/swagger-api/swagger-codegen
*/
class UpdateBrandOptions
{
/**
* $replace_brand
* @var ?string
*/
protected ?string $replace_brand = null;

/**
* Gets replace_brand
*
* @return ?string
*/
public function getReplaceBrand(): ?string
{
return $this->replace_brand;
}

/**
* Sets replace_brand
* @param ?string $replace_brand
*
* @return self
*/
public function setReplaceBrand(?string $replace_brand): self
{
$this->replace_brand = $replace_brand;
return $this;
}
}


/**
* UpdateConsumerDisclosureOptions Class Doc Comment
*
Expand Down Expand Up @@ -5153,106 +5153,6 @@ public function getProvisioningWithHttpInfo(): array
}
}

/**
* Operation getReservedDomainExistence
*
* Returns whether or not the specified email domain is reserved/claimed.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Api\AccountsApi\GetReservedDomainExistenceOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ReservedDomainExistence
*/
public function getReservedDomainExistence($account_id, \DocuSign\eSign\Api\AccountsApi\GetReservedDomainExistenceOptions $options = null)
{
list($response) = $this->getReservedDomainExistenceWithHttpInfo($account_id, $options);
return $response;
}

/**
* Operation getReservedDomainExistenceWithHttpInfo
*
* Returns whether or not the specified email domain is reserved/claimed.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Api\AccountsApi\GetReservedDomainExistenceOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ReservedDomainExistence, HTTP status code, HTTP response headers (array of strings)
*/
public function getReservedDomainExistenceWithHttpInfo($account_id, \DocuSign\eSign\Api\AccountsApi\GetReservedDomainExistenceOptions $options = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getReservedDomainExistence');
}
// verify the required parameter 'email_domain' is set
if ($email_domain === null) {
throw new \InvalidArgumentException('Missing the required parameter $email_domain when calling getReservedDomainExistence');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/reserved_domains";
$httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present
$queryParams = $headerParams = $formParams = [];
$headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']);
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);

if ($options != null)
{
// query params
if ($options->getEmailDomain() != 'null') {
$queryParams['email_domain'] = $this->apiClient->getSerializer()->toQueryValue($options->getEmailDomain());
}
}

// path params
if ($account_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id);
}

// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);

// for model (json/xml)
if (isset($_tempBody)) {
$httpBody = $_tempBody; // $_tempBody is the method argument, if present
} elseif (count($formParams) > 0) {
$httpBody = $formParams; // for HTTP post (form)
}
// this endpoint requires OAuth (access token)
if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) {
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken();
}
// make the API Call
try {
list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
$resourcePath,
'GET',
$queryParams,
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\ReservedDomainExistence',
'/v2.1/accounts/{accountId}/reserved_domains'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ReservedDomainExistence', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ReservedDomainExistence', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
case 400:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}

throw $e;
}
}

/**
* Operation getSupportedLanguages
*
Expand Down Expand Up @@ -6796,13 +6696,14 @@ public function updateAccountTabSettingsWithHttpInfo($account_id, $tab_account_s
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $brand_id The unique identifier of a brand.
* @param \DocuSign\eSign\Model\Brand $brand (optional)
* @param \DocuSign\eSign\Api\AccountsApi\UpdateBrandOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\Brand
*/
public function updateBrand($account_id, $brand_id, $brand = null)
public function updateBrand($account_id, $brand_id, $brand = null, \DocuSign\eSign\Api\AccountsApi\UpdateBrandOptions $options = null)
{
list($response) = $this->updateBrandWithHttpInfo($account_id, $brand_id, $brand);
list($response) = $this->updateBrandWithHttpInfo($account_id, $brand_id, $brand, $options);
return $response;
}

Expand All @@ -6814,11 +6715,12 @@ public function updateBrand($account_id, $brand_id, $brand = null)
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $brand_id The unique identifier of a brand.
* @param \DocuSign\eSign\Model\Brand $brand (optional)
* @param \DocuSign\eSign\Api\AccountsApi\UpdateBrandOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\Brand, HTTP status code, HTTP response headers (array of strings)
*/
public function updateBrandWithHttpInfo($account_id, $brand_id, $brand = null): array
public function updateBrandWithHttpInfo($account_id, $brand_id, $brand = null, \DocuSign\eSign\Api\AccountsApi\UpdateBrandOptions $options = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
Expand All @@ -6835,6 +6737,13 @@ public function updateBrandWithHttpInfo($account_id, $brand_id, $brand = null):
$headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']);
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);

if ($options != null)
{
// query params
if ($options->getReplaceBrand() != 'null') {
$queryParams['replace_brand'] = $this->apiClient->getSerializer()->toQueryValue($options->getReplaceBrand());
}
}

// path params
if ($account_id !== null) {
Expand Down
20 changes: 10 additions & 10 deletions src/Api/EnvelopesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5268,7 +5268,7 @@ public function createRecipientManualReviewViewWithHttpInfo($account_id, $envelo
* @param ?string $recipient_id The ID of the recipient being accessed.
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ProofServiceViewLink
* @return \DocuSign\eSign\Model\IdEvidenceViewLink
*/
public function createRecipientProofFileLink($account_id, $envelope_id, $recipient_id)
{
Expand All @@ -5286,7 +5286,7 @@ public function createRecipientProofFileLink($account_id, $envelope_id, $recipie
* @param ?string $recipient_id The ID of the recipient being accessed.
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ProofServiceViewLink, HTTP status code, HTTP response headers (array of strings)
* @return array of \DocuSign\eSign\Model\IdEvidenceViewLink, HTTP status code, HTTP response headers (array of strings)
*/
public function createRecipientProofFileLinkWithHttpInfo($account_id, $envelope_id, $recipient_id): array
{
Expand Down Expand Up @@ -5344,15 +5344,15 @@ public function createRecipientProofFileLinkWithHttpInfo($account_id, $envelope_
$queryParams,
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\ProofServiceViewLink',
'\DocuSign\eSign\Model\IdEvidenceViewLink',
'/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ProofServiceViewLink', $httpHeader), $statusCode, $httpHeader];
return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\IdEvidenceViewLink', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 201:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ProofServiceViewLink', $e->getResponseHeaders());
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\IdEvidenceViewLink', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
case 400:
Expand All @@ -5376,7 +5376,7 @@ public function createRecipientProofFileLinkWithHttpInfo($account_id, $envelope_
* @param ?string $token_scopes
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ProofServiceResourceToken
* @return \DocuSign\eSign\Model\IdEvidenceResourceToken
*/
public function createRecipientProofFileResourceToken($account_id, $envelope_id, $recipient_id, $token_scopes)
{
Expand All @@ -5395,7 +5395,7 @@ public function createRecipientProofFileResourceToken($account_id, $envelope_id,
* @param ?string $token_scopes
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ProofServiceResourceToken, HTTP status code, HTTP response headers (array of strings)
* @return array of \DocuSign\eSign\Model\IdEvidenceResourceToken, HTTP status code, HTTP response headers (array of strings)
*/
public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $token_scopes): array
{
Expand Down Expand Up @@ -5461,15 +5461,15 @@ public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $
$queryParams,
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\ProofServiceResourceToken',
'\DocuSign\eSign\Model\IdEvidenceResourceToken',
'/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof_token'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ProofServiceResourceToken', $httpHeader), $statusCode, $httpHeader];
return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\IdEvidenceResourceToken', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 201:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ProofServiceResourceToken', $e->getResponseHeaders());
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\IdEvidenceResourceToken', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
case 400:
Expand Down
Loading

0 comments on commit 0700f55

Please sign in to comment.