Skip to content

Commit

Permalink
Version 7.0.0-rc1-v2.1-24.1.01.00 release (#220)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
asif-docusign and root authored May 3, 2024
1 parent 855615f commit 10991dd
Show file tree
Hide file tree
Showing 22 changed files with 4,953 additions and 198 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.

## [v7.0.0-rc1] - eSignature API v2.1-24.1.01.00 - 2024-05-02
### Changed
- Added support for version v2.1-24.1.01.00 of the DocuSign ESignature API.
- Updated the SDK release version.

## [v6.19.0] - eSignature API v2.1-23.4.02.00 - 2024-04-30
### Changed
- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API.
Expand Down
98 changes: 69 additions & 29 deletions src/Api/EnvelopesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,47 @@ public function setResendEnvelope(?string $resend_envelope): self
}


/**
* CreateRecipientProofFileResourceTokenOptions 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 CreateRecipientProofFileResourceTokenOptions
{
/**
* $token_scopes
* @var ?string
*/
protected ?string $token_scopes = null;

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

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


/**
* GetChunkedUploadOptions Class Doc Comment
*
Expand Down Expand Up @@ -399,7 +440,7 @@ public function setEncoding(?string $encoding): self
class GetConsumerDisclosureOptions
{
/**
* $lang_code2 The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
* $lang_code2 The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
* @var ?string
*/
protected ?string $lang_code2 = null;
Expand All @@ -416,7 +457,7 @@ public function getLangCode2(): ?string

/**
* Sets lang_code2
* @param ?string $lang_code2 The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
* @param ?string $lang_code2 The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language.
*
* @return self
*/
Expand Down Expand Up @@ -4307,14 +4348,14 @@ public function createDocumentTabsWithHttpInfo($account_id, $document_id, $envel
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ViewUrl
*/
public function createEditView($account_id, $envelope_id, $return_url_request = null)
public function createEditView($account_id, $envelope_id, $envelope_view_request = null)
{
list($response) = $this->createEditViewWithHttpInfo($account_id, $envelope_id, $return_url_request);
list($response) = $this->createEditViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request);
return $response;
}

Expand All @@ -4325,12 +4366,12 @@ public function createEditView($account_id, $envelope_id, $return_url_request =
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
*/
public function createEditViewWithHttpInfo($account_id, $envelope_id, $return_url_request = null): array
public function createEditViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
Expand Down Expand Up @@ -4361,8 +4402,8 @@ public function createEditViewWithHttpInfo($account_id, $envelope_id, $return_ur
$resourcePath = str_replace("{format}", "json", $resourcePath);
// body params
$_tempBody = null;
if (isset($return_url_request)) {
$_tempBody = $return_url_request;
if (isset($envelope_view_request)) {
$_tempBody = $envelope_view_request;
}

// for model (json/xml)
Expand Down Expand Up @@ -5666,14 +5707,14 @@ public function createRecipientProofFileLinkWithHttpInfo($account_id, $envelope_
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param ?string $recipient_id The ID of the recipient being accessed.
* @param ?string $token_scopes
* @param \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\IdEvidenceResourceToken
*/
public function createRecipientProofFileResourceToken($account_id, $envelope_id, $recipient_id, $token_scopes)
public function createRecipientProofFileResourceToken($account_id, $envelope_id, $recipient_id, \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options = null)
{
list($response) = $this->createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $token_scopes);
list($response) = $this->createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $options);
return $response;
}

Expand All @@ -5685,12 +5726,12 @@ public function createRecipientProofFileResourceToken($account_id, $envelope_id,
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param ?string $recipient_id The ID of the recipient being accessed.
* @param ?string $token_scopes
* @param \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options for modifying the behavior of the function. (optional)
*
* @throws ApiException on non-2xx response
* @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
public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
Expand All @@ -5704,17 +5745,20 @@ public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $
if ($recipient_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $recipient_id when calling createRecipientProofFileResourceToken');
}
// verify the required parameter 'token_scopes' is set
if ($token_scopes === null) {
throw new \InvalidArgumentException('Missing the required parameter $token_scopes when calling createRecipientProofFileResourceToken');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof_token";
$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->getTokenScopes() != 'null') {
$queryParams['token_scopes'] = $this->apiClient->getSerializer()->toQueryValue($options->getTokenScopes());
}
}

// path params
if ($account_id !== null) {
Expand All @@ -5728,10 +5772,6 @@ public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $
if ($recipient_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "recipientId", $recipient_id);
}
// path params
if ($token_scopes !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "token_scopes", $token_scopes);
}

// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);
Expand Down Expand Up @@ -5990,14 +6030,14 @@ public function createResponsiveHtmlPreviewWithHttpInfo($account_id, $envelope_i
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ViewUrl
*/
public function createSenderView($account_id, $envelope_id, $return_url_request = null)
public function createSenderView($account_id, $envelope_id, $envelope_view_request = null)
{
list($response) = $this->createSenderViewWithHttpInfo($account_id, $envelope_id, $return_url_request);
list($response) = $this->createSenderViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request);
return $response;
}

Expand All @@ -6008,12 +6048,12 @@ public function createSenderView($account_id, $envelope_id, $return_url_request
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
*/
public function createSenderViewWithHttpInfo($account_id, $envelope_id, $return_url_request = null): array
public function createSenderViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
Expand Down Expand Up @@ -6044,8 +6084,8 @@ public function createSenderViewWithHttpInfo($account_id, $envelope_id, $return_
$resourcePath = str_replace("{format}", "json", $resourcePath);
// body params
$_tempBody = null;
if (isset($return_url_request)) {
$_tempBody = $return_url_request;
if (isset($envelope_view_request)) {
$_tempBody = $envelope_view_request;
}

// for model (json/xml)
Expand Down
14 changes: 7 additions & 7 deletions src/Api/TemplatesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1802,14 +1802,14 @@ public function createDocumentFieldsWithHttpInfo($account_id, $document_id, $tem
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $template_id The ID of the template being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\TemplateViewRequest $template_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ViewUrl
*/
public function createEditView($account_id, $template_id, $return_url_request = null)
public function createEditView($account_id, $template_id, $template_view_request = null)
{
list($response) = $this->createEditViewWithHttpInfo($account_id, $template_id, $return_url_request);
list($response) = $this->createEditViewWithHttpInfo($account_id, $template_id, $template_view_request);
return $response;
}

Expand All @@ -1820,12 +1820,12 @@ public function createEditView($account_id, $template_id, $return_url_request =
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $template_id The ID of the template being accessed.
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
* @param \DocuSign\eSign\Model\TemplateViewRequest $template_view_request (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
*/
public function createEditViewWithHttpInfo($account_id, $template_id, $return_url_request = null): array
public function createEditViewWithHttpInfo($account_id, $template_id, $template_view_request = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
Expand Down Expand Up @@ -1856,8 +1856,8 @@ public function createEditViewWithHttpInfo($account_id, $template_id, $return_ur
$resourcePath = str_replace("{format}", "json", $resourcePath);
// body params
$_tempBody = null;
if (isset($return_url_request)) {
$_tempBody = $return_url_request;
if (isset($template_view_request)) {
$_tempBody = $template_view_request;
}

// for model (json/xml)
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Swagger-Codegen/v2.1/6.19.0/php/' . PHP_VERSION;
protected $userAgent = 'Swagger-Codegen/v2.1/7.0.0-rc1/php/' . PHP_VERSION;

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -774,7 +774,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: v2.1' . PHP_EOL;
$report .= ' SDK Package Version: 6.19.0' . PHP_EOL;
$report .= ' SDK Package Version: 7.0.0-rc1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
Loading

0 comments on commit 10991dd

Please sign in to comment.