Skip to content

Commit 10991dd

Browse files
asif-docusignroot
andauthored
Version 7.0.0-rc1-v2.1-24.1.01.00 release (#220)
Co-authored-by: root <[email protected]>
1 parent 855615f commit 10991dd

22 files changed

+4953
-198
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

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

6+
## [v7.0.0-rc1] - eSignature API v2.1-24.1.01.00 - 2024-05-02
7+
### Changed
8+
- Added support for version v2.1-24.1.01.00 of the DocuSign ESignature API.
9+
- Updated the SDK release version.
10+
611
## [v6.19.0] - eSignature API v2.1-23.4.02.00 - 2024-04-30
712
### Changed
813
- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API.

src/Api/EnvelopesApi.php

Lines changed: 69 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,47 @@ public function setResendEnvelope(?string $resend_envelope): self
305305
}
306306

307307

308+
/**
309+
* CreateRecipientProofFileResourceTokenOptions Class Doc Comment
310+
*
311+
* @category Class
312+
* @package DocuSign\eSign
313+
* @author Swagger Codegen team <[email protected]>
314+
* @license The DocuSign PHP Client SDK is licensed under the MIT License.
315+
* @link https://github.com/swagger-api/swagger-codegen
316+
*/
317+
class CreateRecipientProofFileResourceTokenOptions
318+
{
319+
/**
320+
* $token_scopes
321+
* @var ?string
322+
*/
323+
protected ?string $token_scopes = null;
324+
325+
/**
326+
* Gets token_scopes
327+
*
328+
* @return ?string
329+
*/
330+
public function getTokenScopes(): ?string
331+
{
332+
return $this->token_scopes;
333+
}
334+
335+
/**
336+
* Sets token_scopes
337+
* @param ?string $token_scopes
338+
*
339+
* @return self
340+
*/
341+
public function setTokenScopes(?string $token_scopes): self
342+
{
343+
$this->token_scopes = $token_scopes;
344+
return $this;
345+
}
346+
}
347+
348+
308349
/**
309350
* GetChunkedUploadOptions Class Doc Comment
310351
*
@@ -399,7 +440,7 @@ public function setEncoding(?string $encoding): self
399440
class GetConsumerDisclosureOptions
400441
{
401442
/**
402-
* $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.
443+
* $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.
403444
* @var ?string
404445
*/
405446
protected ?string $lang_code2 = null;
@@ -416,7 +457,7 @@ public function getLangCode2(): ?string
416457

417458
/**
418459
* Sets lang_code2
419-
* @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.
460+
* @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.
420461
*
421462
* @return self
422463
*/
@@ -4307,14 +4348,14 @@ public function createDocumentTabsWithHttpInfo($account_id, $document_id, $envel
43074348
*
43084349
* @param ?string $account_id The external account number (int) or account ID Guid.
43094350
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
4310-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
4351+
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
43114352
*
43124353
* @throws ApiException on non-2xx response
43134354
* @return \DocuSign\eSign\Model\ViewUrl
43144355
*/
4315-
public function createEditView($account_id, $envelope_id, $return_url_request = null)
4356+
public function createEditView($account_id, $envelope_id, $envelope_view_request = null)
43164357
{
4317-
list($response) = $this->createEditViewWithHttpInfo($account_id, $envelope_id, $return_url_request);
4358+
list($response) = $this->createEditViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request);
43184359
return $response;
43194360
}
43204361

@@ -4325,12 +4366,12 @@ public function createEditView($account_id, $envelope_id, $return_url_request =
43254366
*
43264367
* @param ?string $account_id The external account number (int) or account ID Guid.
43274368
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
4328-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
4369+
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
43294370
*
43304371
* @throws ApiException on non-2xx response
43314372
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
43324373
*/
4333-
public function createEditViewWithHttpInfo($account_id, $envelope_id, $return_url_request = null): array
4374+
public function createEditViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request = null): array
43344375
{
43354376
// verify the required parameter 'account_id' is set
43364377
if ($account_id === null) {
@@ -4361,8 +4402,8 @@ public function createEditViewWithHttpInfo($account_id, $envelope_id, $return_ur
43614402
$resourcePath = str_replace("{format}", "json", $resourcePath);
43624403
// body params
43634404
$_tempBody = null;
4364-
if (isset($return_url_request)) {
4365-
$_tempBody = $return_url_request;
4405+
if (isset($envelope_view_request)) {
4406+
$_tempBody = $envelope_view_request;
43664407
}
43674408

43684409
// for model (json/xml)
@@ -5666,14 +5707,14 @@ public function createRecipientProofFileLinkWithHttpInfo($account_id, $envelope_
56665707
* @param ?string $account_id The external account number (int) or account ID Guid.
56675708
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
56685709
* @param ?string $recipient_id The ID of the recipient being accessed.
5669-
* @param ?string $token_scopes
5710+
* @param \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options for modifying the behavior of the function. (optional)
56705711
*
56715712
* @throws ApiException on non-2xx response
56725713
* @return \DocuSign\eSign\Model\IdEvidenceResourceToken
56735714
*/
5674-
public function createRecipientProofFileResourceToken($account_id, $envelope_id, $recipient_id, $token_scopes)
5715+
public function createRecipientProofFileResourceToken($account_id, $envelope_id, $recipient_id, \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options = null)
56755716
{
5676-
list($response) = $this->createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $token_scopes);
5717+
list($response) = $this->createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $options);
56775718
return $response;
56785719
}
56795720

@@ -5685,12 +5726,12 @@ public function createRecipientProofFileResourceToken($account_id, $envelope_id,
56855726
* @param ?string $account_id The external account number (int) or account ID Guid.
56865727
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
56875728
* @param ?string $recipient_id The ID of the recipient being accessed.
5688-
* @param ?string $token_scopes
5729+
* @param \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options for modifying the behavior of the function. (optional)
56895730
*
56905731
* @throws ApiException on non-2xx response
56915732
* @return array of \DocuSign\eSign\Model\IdEvidenceResourceToken, HTTP status code, HTTP response headers (array of strings)
56925733
*/
5693-
public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, $token_scopes): array
5734+
public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $envelope_id, $recipient_id, \DocuSign\eSign\Api\EnvelopesApi\CreateRecipientProofFileResourceTokenOptions $options = null): array
56945735
{
56955736
// verify the required parameter 'account_id' is set
56965737
if ($account_id === null) {
@@ -5704,17 +5745,20 @@ public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $
57045745
if ($recipient_id === null) {
57055746
throw new \InvalidArgumentException('Missing the required parameter $recipient_id when calling createRecipientProofFileResourceToken');
57065747
}
5707-
// verify the required parameter 'token_scopes' is set
5708-
if ($token_scopes === null) {
5709-
throw new \InvalidArgumentException('Missing the required parameter $token_scopes when calling createRecipientProofFileResourceToken');
5710-
}
57115748
// parse inputs
57125749
$resourcePath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof_token";
57135750
$httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present
57145751
$queryParams = $headerParams = $formParams = [];
57155752
$headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']);
57165753
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
57175754

5755+
if ($options != null)
5756+
{
5757+
// query params
5758+
if ($options->getTokenScopes() != 'null') {
5759+
$queryParams['token_scopes'] = $this->apiClient->getSerializer()->toQueryValue($options->getTokenScopes());
5760+
}
5761+
}
57185762

57195763
// path params
57205764
if ($account_id !== null) {
@@ -5728,10 +5772,6 @@ public function createRecipientProofFileResourceTokenWithHttpInfo($account_id, $
57285772
if ($recipient_id !== null) {
57295773
$resourcePath = self::updateResourcePath($resourcePath, "recipientId", $recipient_id);
57305774
}
5731-
// path params
5732-
if ($token_scopes !== null) {
5733-
$resourcePath = self::updateResourcePath($resourcePath, "token_scopes", $token_scopes);
5734-
}
57355775

57365776
// default format to json
57375777
$resourcePath = str_replace("{format}", "json", $resourcePath);
@@ -5990,14 +6030,14 @@ public function createResponsiveHtmlPreviewWithHttpInfo($account_id, $envelope_i
59906030
*
59916031
* @param ?string $account_id The external account number (int) or account ID Guid.
59926032
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
5993-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
6033+
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
59946034
*
59956035
* @throws ApiException on non-2xx response
59966036
* @return \DocuSign\eSign\Model\ViewUrl
59976037
*/
5998-
public function createSenderView($account_id, $envelope_id, $return_url_request = null)
6038+
public function createSenderView($account_id, $envelope_id, $envelope_view_request = null)
59996039
{
6000-
list($response) = $this->createSenderViewWithHttpInfo($account_id, $envelope_id, $return_url_request);
6040+
list($response) = $this->createSenderViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request);
60016041
return $response;
60026042
}
60036043

@@ -6008,12 +6048,12 @@ public function createSenderView($account_id, $envelope_id, $return_url_request
60086048
*
60096049
* @param ?string $account_id The external account number (int) or account ID Guid.
60106050
* @param ?string $envelope_id The envelopeId Guid of the envelope being accessed.
6011-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
6051+
* @param \DocuSign\eSign\Model\EnvelopeViewRequest $envelope_view_request (optional)
60126052
*
60136053
* @throws ApiException on non-2xx response
60146054
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
60156055
*/
6016-
public function createSenderViewWithHttpInfo($account_id, $envelope_id, $return_url_request = null): array
6056+
public function createSenderViewWithHttpInfo($account_id, $envelope_id, $envelope_view_request = null): array
60176057
{
60186058
// verify the required parameter 'account_id' is set
60196059
if ($account_id === null) {
@@ -6044,8 +6084,8 @@ public function createSenderViewWithHttpInfo($account_id, $envelope_id, $return_
60446084
$resourcePath = str_replace("{format}", "json", $resourcePath);
60456085
// body params
60466086
$_tempBody = null;
6047-
if (isset($return_url_request)) {
6048-
$_tempBody = $return_url_request;
6087+
if (isset($envelope_view_request)) {
6088+
$_tempBody = $envelope_view_request;
60496089
}
60506090

60516091
// for model (json/xml)

src/Api/TemplatesApi.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,14 +1802,14 @@ public function createDocumentFieldsWithHttpInfo($account_id, $document_id, $tem
18021802
*
18031803
* @param ?string $account_id The external account number (int) or account ID Guid.
18041804
* @param ?string $template_id The ID of the template being accessed.
1805-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
1805+
* @param \DocuSign\eSign\Model\TemplateViewRequest $template_view_request (optional)
18061806
*
18071807
* @throws ApiException on non-2xx response
18081808
* @return \DocuSign\eSign\Model\ViewUrl
18091809
*/
1810-
public function createEditView($account_id, $template_id, $return_url_request = null)
1810+
public function createEditView($account_id, $template_id, $template_view_request = null)
18111811
{
1812-
list($response) = $this->createEditViewWithHttpInfo($account_id, $template_id, $return_url_request);
1812+
list($response) = $this->createEditViewWithHttpInfo($account_id, $template_id, $template_view_request);
18131813
return $response;
18141814
}
18151815

@@ -1820,12 +1820,12 @@ public function createEditView($account_id, $template_id, $return_url_request =
18201820
*
18211821
* @param ?string $account_id The external account number (int) or account ID Guid.
18221822
* @param ?string $template_id The ID of the template being accessed.
1823-
* @param \DocuSign\eSign\Model\ReturnUrlRequest $return_url_request (optional)
1823+
* @param \DocuSign\eSign\Model\TemplateViewRequest $template_view_request (optional)
18241824
*
18251825
* @throws ApiException on non-2xx response
18261826
* @return array of \DocuSign\eSign\Model\ViewUrl, HTTP status code, HTTP response headers (array of strings)
18271827
*/
1828-
public function createEditViewWithHttpInfo($account_id, $template_id, $return_url_request = null): array
1828+
public function createEditViewWithHttpInfo($account_id, $template_id, $template_view_request = null): array
18291829
{
18301830
// verify the required parameter 'account_id' is set
18311831
if ($account_id === null) {
@@ -1856,8 +1856,8 @@ public function createEditViewWithHttpInfo($account_id, $template_id, $return_ur
18561856
$resourcePath = str_replace("{format}", "json", $resourcePath);
18571857
// body params
18581858
$_tempBody = null;
1859-
if (isset($return_url_request)) {
1860-
$_tempBody = $return_url_request;
1859+
if (isset($template_view_request)) {
1860+
$_tempBody = $template_view_request;
18611861
}
18621862

18631863
// for model (json/xml)

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Configuration
111111
*
112112
* @var string
113113
*/
114-
protected $userAgent = 'Swagger-Codegen/v2.1/6.19.0/php/' . PHP_VERSION;
114+
protected $userAgent = 'Swagger-Codegen/v2.1/7.0.0-rc1/php/' . PHP_VERSION;
115115

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

780780
return $report;

0 commit comments

Comments
 (0)