-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 7.0.0-rc1-v2.1-24.1.01.00 release (#220)
Co-authored-by: root <[email protected]>
- Loading branch information
1 parent
855615f
commit 10991dd
Showing
22 changed files
with
4,953 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
* | ||
|
@@ -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; | ||
|
@@ -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 | ||
*/ | ||
|
@@ -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; | ||
} | ||
|
||
|
@@ -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) { | ||
|
@@ -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) | ||
|
@@ -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; | ||
} | ||
|
||
|
@@ -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) { | ||
|
@@ -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) { | ||
|
@@ -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); | ||
|
@@ -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; | ||
} | ||
|
||
|
@@ -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) { | ||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.