diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore index c8a15abf..05ec67ed 100644 --- a/.swagger-codegen-ignore +++ b/.swagger-codegen-ignore @@ -35,13 +35,11 @@ LICENSE .travis.yml .php_cs autoload.php -composer.json # Specific src and test files phpunit.xml.dist docs/ test/ -src/Configuration.php src/ApiClient.php src/ApiException.php src/Client/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 57432bf1..32db2364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,23 @@ 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.19.0-rc2] - eSignature API v2.1-23.4.02.00 - 2024-03-15 +### Changed +- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API. +- Updated the SDK release version. +- Adjusted the minimum required firebase/php-jwt package version to 6.0. + + +## [v6.19.0-rc1] - eSignature API v2.1-23.4.02.00 - 2024-03-12 +### Changed +- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API. +- Updated the SDK release version. + +## [v6.19.0-alpha1] - eSignature API v2.1-23.4.02.00 - 2024-03-07 +### Changed +- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API. +- Updated the SDK release version. + ## [v6.18.0] - eSignature API v2.1-23.3.01.02 - 2023-11-13 ### Changed - Added support for version v2.1-23.3.01.02 of the DocuSign ESignature API. diff --git a/composer.json b/composer.json index 8e2ed0d1..4a993889 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "docusign/esign-client", - "description": "The DocuSign PHP library makes integrating DocuSign into your websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-php-client repository. Join the eSign revolution!", + "description": "The DocuSign PHP library makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-php-client repository. Join the eSign revolution!", "keywords": [ "DocuSign", "Agreement", @@ -22,7 +22,7 @@ "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "firebase/php-jwt": "^5.0 || ^6.0" + "firebase/php-jwt": "^6.0" }, "require-dev": { "phpunit/phpunit": "~4.8", @@ -36,4 +36,4 @@ "autoload-dev": { "psr-4": { "DocuSign\\eSign\\" : "test/" } } -} +} \ No newline at end of file diff --git a/src/Api/AccountsApi.php b/src/Api/AccountsApi.php index 943d9081..98adb9a6 100644 --- a/src/Api/AccountsApi.php +++ b/src/Api/AccountsApi.php @@ -5316,7 +5316,7 @@ public function getBrandResourcesByContentTypeWithHttpInfo($account_id, $brand_i * Gets the Electronic Record and Signature Disclosure. * * @param ?string $account_id The external account number (int) or account ID Guid. - * @param ?string $lang_code 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_code 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. * * @throws ApiException on non-2xx response * @return \DocuSign\eSign\Model\ConsumerDisclosure @@ -5333,7 +5333,7 @@ public function getConsumerDisclosure($account_id, $lang_code) * Gets the Electronic Record and Signature Disclosure. * * @param ?string $account_id The external account number (int) or account ID Guid. - * @param ?string $lang_code 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_code 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. * * @throws ApiException on non-2xx response * @return array of \DocuSign\eSign\Model\ConsumerDisclosure, HTTP status code, HTTP response headers (array of strings) @@ -8320,7 +8320,7 @@ public function updateBrandResourcesByContentTypeWithHttpInfo($account_id, $bran * Update Consumer Disclosure. * * @param ?string $account_id The external account number (int) or account ID Guid. - * @param ?string $lang_code 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_code 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. * @param \DocuSign\eSign\Model\ConsumerDisclosure $consumer_disclosure (optional) * @param \DocuSign\eSign\Api\AccountsApi\UpdateConsumerDisclosureOptions $options for modifying the behavior of the function. (optional) * @@ -8339,7 +8339,7 @@ public function updateConsumerDisclosure($account_id, $lang_code, $consumer_disc * Update Consumer Disclosure. * * @param ?string $account_id The external account number (int) or account ID Guid. - * @param ?string $lang_code 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_code 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. * @param \DocuSign\eSign\Model\ConsumerDisclosure $consumer_disclosure (optional) * @param \DocuSign\eSign\Api\AccountsApi\UpdateConsumerDisclosureOptions $options for modifying the behavior of the function. (optional) * diff --git a/src/Api/EnvelopesApi.php b/src/Api/EnvelopesApi.php index 14168647..99942e1f 100644 --- a/src/Api/EnvelopesApi.php +++ b/src/Api/EnvelopesApi.php @@ -399,7 +399,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), 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), 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 +416,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), 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), 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 */ @@ -9087,7 +9087,7 @@ public function getCommentsTranscriptWithHttpInfo($account_id, $envelope_id, \Do * * @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 $lang_code 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_code 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. * @param ?string $recipient_id The ID of the recipient being accessed. * @param \DocuSign\eSign\Api\EnvelopesApi\GetConsumerDisclosureOptions $options for modifying the behavior of the function. (optional) * @@ -9107,7 +9107,7 @@ public function getConsumerDisclosure($account_id, $envelope_id, $lang_code, $re * * @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 $lang_code 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_code 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. * @param ?string $recipient_id The ID of the recipient being accessed. * @param \DocuSign\eSign\Api\EnvelopesApi\GetConsumerDisclosureOptions $options for modifying the behavior of the function. (optional) * diff --git a/src/Api/UsersApi.php b/src/Api/UsersApi.php index 517a44b1..1cd39cdc 100644 --- a/src/Api/UsersApi.php +++ b/src/Api/UsersApi.php @@ -3674,7 +3674,7 @@ public function updateSignatureWithHttpInfo($account_id, $signature_id, $user_id * @param ?string $image_type One of **signature_image** or **initials_image**. * @param ?string $signature_id The ID of the signature being accessed. * @param ?string $user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. - * @param ?string $image_bytes Image content. (required) + * @param ?string $image_bytes Updated image content. (required) * @param \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response @@ -3695,7 +3695,7 @@ public function updateSignatureImage($account_id, $image_type, $signature_id, $u * @param ?string $image_type One of **signature_image** or **initials_image**. * @param ?string $signature_id The ID of the signature being accessed. * @param ?string $user_id The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. - * @param ?string $image_bytes Image content. (required) + * @param ?string $image_bytes Updated image content. (required) * @param \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response diff --git a/src/Configuration.php b/src/Configuration.php index 6a39c8e3..584ca1ac 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -5,7 +5,8 @@ * * @category Class * @package DocuSign\eSign - * @author Swagger Codegen team + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. * @link https://github.com/swagger-api/swagger-codegen */ @@ -17,7 +18,7 @@ * OpenAPI spec version: v2.1 * Contact: devcenter@docusign.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * + * Swagger Codegen version: 2.4.21 */ /** @@ -34,7 +35,8 @@ * * @category Class * @package DocuSign\eSign - * @author Swagger Codegen team + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. * @link https://github.com/swagger-api/swagger-codegen */ class Configuration @@ -109,7 +111,7 @@ class Configuration * * @var string */ - protected $userAgent = "Swagger-Codegen/5.1.0/php"; + protected $userAgent = 'Swagger-Codegen/v2.1/6.19.0-rc2/php/' . PHP_VERSION; /** * Debug switch (default set to false) @@ -450,6 +452,7 @@ public function getHost() * * @param string $userAgent the user agent of the api client * + * @throws \InvalidArgumentException * @return Configuration */ public function setUserAgent($userAgent) @@ -769,9 +772,9 @@ public static function toDebugReport() { $report = 'PHP SDK (DocuSign\eSign) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . phpversion() . PHP_EOL; + $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: v2.1' . PHP_EOL; - $report .= ' SDK Package Version: 5.1.0' . PHP_EOL; + $report .= ' SDK Package Version: 6.19.0-rc2' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/Model/AccountSettingsInformation.php b/src/Model/AccountSettingsInformation.php index 83b03607..27c81db5 100644 --- a/src/Model/AccountSettingsInformation.php +++ b/src/Model/AccountSettingsInformation.php @@ -413,6 +413,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_contact_suggestions_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_customer_satisfaction_metric_tracking' => '?string', 'enable_customer_satisfaction_metric_tracking_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'enable_data_verification_extensions' => '?string', + 'enable_data_verification_extensions_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_d_sig_eu_advanced_pens' => '?string', 'enable_d_sig_eu_advanced_pens_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_d_sig_express_pens' => '?string', @@ -528,8 +530,12 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_strike_through_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_transaction_point' => '?string', 'enable_transaction_point_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'enable_unified_repository' => '?string', + 'enable_unified_repository_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_vaulting' => '?string', 'enable_vaulting_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'enable_web_forms_runtime_ap_is' => '?string', + 'enable_web_forms_runtime_ap_is_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_web_forms_separate_user_permissions' => '?string', 'enable_web_forms_separate_user_permissions_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_witnessing' => '?string', @@ -563,6 +569,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'fax_out_enabled_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'finish_reminder' => '?string', 'finish_reminder_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'forbid_adding_user_stamps' => '?string', + 'forbid_adding_user_stamps_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'guided_forms_html_allowed' => '?string', 'guided_forms_html_allowed_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'guided_forms_html_conversion_policy' => '?string', @@ -1149,6 +1157,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_contact_suggestions_metadata' => null, 'enable_customer_satisfaction_metric_tracking' => null, 'enable_customer_satisfaction_metric_tracking_metadata' => null, + 'enable_data_verification_extensions' => null, + 'enable_data_verification_extensions_metadata' => null, 'enable_d_sig_eu_advanced_pens' => null, 'enable_d_sig_eu_advanced_pens_metadata' => null, 'enable_d_sig_express_pens' => null, @@ -1264,8 +1274,12 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_strike_through_metadata' => null, 'enable_transaction_point' => null, 'enable_transaction_point_metadata' => null, + 'enable_unified_repository' => null, + 'enable_unified_repository_metadata' => null, 'enable_vaulting' => null, 'enable_vaulting_metadata' => null, + 'enable_web_forms_runtime_ap_is' => null, + 'enable_web_forms_runtime_ap_is_metadata' => null, 'enable_web_forms_separate_user_permissions' => null, 'enable_web_forms_separate_user_permissions_metadata' => null, 'enable_witnessing' => null, @@ -1299,6 +1313,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'fax_out_enabled_metadata' => null, 'finish_reminder' => null, 'finish_reminder_metadata' => null, + 'forbid_adding_user_stamps' => null, + 'forbid_adding_user_stamps_metadata' => null, 'guided_forms_html_allowed' => null, 'guided_forms_html_allowed_metadata' => null, 'guided_forms_html_conversion_policy' => null, @@ -1906,6 +1922,8 @@ public static function swaggerFormats() 'enable_contact_suggestions_metadata' => 'enableContactSuggestionsMetadata', 'enable_customer_satisfaction_metric_tracking' => 'enableCustomerSatisfactionMetricTracking', 'enable_customer_satisfaction_metric_tracking_metadata' => 'enableCustomerSatisfactionMetricTrackingMetadata', + 'enable_data_verification_extensions' => 'enableDataVerificationExtensions', + 'enable_data_verification_extensions_metadata' => 'enableDataVerificationExtensionsMetadata', 'enable_d_sig_eu_advanced_pens' => 'enableDSigEUAdvancedPens', 'enable_d_sig_eu_advanced_pens_metadata' => 'enableDSigEUAdvancedPensMetadata', 'enable_d_sig_express_pens' => 'enableDSigExpressPens', @@ -2021,8 +2039,12 @@ public static function swaggerFormats() 'enable_strike_through_metadata' => 'enableStrikeThroughMetadata', 'enable_transaction_point' => 'enableTransactionPoint', 'enable_transaction_point_metadata' => 'enableTransactionPointMetadata', + 'enable_unified_repository' => 'enableUnifiedRepository', + 'enable_unified_repository_metadata' => 'enableUnifiedRepositoryMetadata', 'enable_vaulting' => 'enableVaulting', 'enable_vaulting_metadata' => 'enableVaultingMetadata', + 'enable_web_forms_runtime_ap_is' => 'enableWebFormsRuntimeAPIs', + 'enable_web_forms_runtime_ap_is_metadata' => 'enableWebFormsRuntimeAPIsMetadata', 'enable_web_forms_separate_user_permissions' => 'enableWebFormsSeparateUserPermissions', 'enable_web_forms_separate_user_permissions_metadata' => 'enableWebFormsSeparateUserPermissionsMetadata', 'enable_witnessing' => 'enableWitnessing', @@ -2056,6 +2078,8 @@ public static function swaggerFormats() 'fax_out_enabled_metadata' => 'faxOutEnabledMetadata', 'finish_reminder' => 'finishReminder', 'finish_reminder_metadata' => 'finishReminderMetadata', + 'forbid_adding_user_stamps' => 'forbidAddingUserStamps', + 'forbid_adding_user_stamps_metadata' => 'forbidAddingUserStampsMetadata', 'guided_forms_html_allowed' => 'guidedFormsHtmlAllowed', 'guided_forms_html_allowed_metadata' => 'guidedFormsHtmlAllowedMetadata', 'guided_forms_html_conversion_policy' => 'guidedFormsHtmlConversionPolicy', @@ -2642,6 +2666,8 @@ public static function swaggerFormats() 'enable_contact_suggestions_metadata' => 'setEnableContactSuggestionsMetadata', 'enable_customer_satisfaction_metric_tracking' => 'setEnableCustomerSatisfactionMetricTracking', 'enable_customer_satisfaction_metric_tracking_metadata' => 'setEnableCustomerSatisfactionMetricTrackingMetadata', + 'enable_data_verification_extensions' => 'setEnableDataVerificationExtensions', + 'enable_data_verification_extensions_metadata' => 'setEnableDataVerificationExtensionsMetadata', 'enable_d_sig_eu_advanced_pens' => 'setEnableDSigEuAdvancedPens', 'enable_d_sig_eu_advanced_pens_metadata' => 'setEnableDSigEuAdvancedPensMetadata', 'enable_d_sig_express_pens' => 'setEnableDSigExpressPens', @@ -2757,8 +2783,12 @@ public static function swaggerFormats() 'enable_strike_through_metadata' => 'setEnableStrikeThroughMetadata', 'enable_transaction_point' => 'setEnableTransactionPoint', 'enable_transaction_point_metadata' => 'setEnableTransactionPointMetadata', + 'enable_unified_repository' => 'setEnableUnifiedRepository', + 'enable_unified_repository_metadata' => 'setEnableUnifiedRepositoryMetadata', 'enable_vaulting' => 'setEnableVaulting', 'enable_vaulting_metadata' => 'setEnableVaultingMetadata', + 'enable_web_forms_runtime_ap_is' => 'setEnableWebFormsRuntimeApIs', + 'enable_web_forms_runtime_ap_is_metadata' => 'setEnableWebFormsRuntimeApIsMetadata', 'enable_web_forms_separate_user_permissions' => 'setEnableWebFormsSeparateUserPermissions', 'enable_web_forms_separate_user_permissions_metadata' => 'setEnableWebFormsSeparateUserPermissionsMetadata', 'enable_witnessing' => 'setEnableWitnessing', @@ -2792,6 +2822,8 @@ public static function swaggerFormats() 'fax_out_enabled_metadata' => 'setFaxOutEnabledMetadata', 'finish_reminder' => 'setFinishReminder', 'finish_reminder_metadata' => 'setFinishReminderMetadata', + 'forbid_adding_user_stamps' => 'setForbidAddingUserStamps', + 'forbid_adding_user_stamps_metadata' => 'setForbidAddingUserStampsMetadata', 'guided_forms_html_allowed' => 'setGuidedFormsHtmlAllowed', 'guided_forms_html_allowed_metadata' => 'setGuidedFormsHtmlAllowedMetadata', 'guided_forms_html_conversion_policy' => 'setGuidedFormsHtmlConversionPolicy', @@ -3378,6 +3410,8 @@ public static function swaggerFormats() 'enable_contact_suggestions_metadata' => 'getEnableContactSuggestionsMetadata', 'enable_customer_satisfaction_metric_tracking' => 'getEnableCustomerSatisfactionMetricTracking', 'enable_customer_satisfaction_metric_tracking_metadata' => 'getEnableCustomerSatisfactionMetricTrackingMetadata', + 'enable_data_verification_extensions' => 'getEnableDataVerificationExtensions', + 'enable_data_verification_extensions_metadata' => 'getEnableDataVerificationExtensionsMetadata', 'enable_d_sig_eu_advanced_pens' => 'getEnableDSigEuAdvancedPens', 'enable_d_sig_eu_advanced_pens_metadata' => 'getEnableDSigEuAdvancedPensMetadata', 'enable_d_sig_express_pens' => 'getEnableDSigExpressPens', @@ -3493,8 +3527,12 @@ public static function swaggerFormats() 'enable_strike_through_metadata' => 'getEnableStrikeThroughMetadata', 'enable_transaction_point' => 'getEnableTransactionPoint', 'enable_transaction_point_metadata' => 'getEnableTransactionPointMetadata', + 'enable_unified_repository' => 'getEnableUnifiedRepository', + 'enable_unified_repository_metadata' => 'getEnableUnifiedRepositoryMetadata', 'enable_vaulting' => 'getEnableVaulting', 'enable_vaulting_metadata' => 'getEnableVaultingMetadata', + 'enable_web_forms_runtime_ap_is' => 'getEnableWebFormsRuntimeApIs', + 'enable_web_forms_runtime_ap_is_metadata' => 'getEnableWebFormsRuntimeApIsMetadata', 'enable_web_forms_separate_user_permissions' => 'getEnableWebFormsSeparateUserPermissions', 'enable_web_forms_separate_user_permissions_metadata' => 'getEnableWebFormsSeparateUserPermissionsMetadata', 'enable_witnessing' => 'getEnableWitnessing', @@ -3528,6 +3566,8 @@ public static function swaggerFormats() 'fax_out_enabled_metadata' => 'getFaxOutEnabledMetadata', 'finish_reminder' => 'getFinishReminder', 'finish_reminder_metadata' => 'getFinishReminderMetadata', + 'forbid_adding_user_stamps' => 'getForbidAddingUserStamps', + 'forbid_adding_user_stamps_metadata' => 'getForbidAddingUserStampsMetadata', 'guided_forms_html_allowed' => 'getGuidedFormsHtmlAllowed', 'guided_forms_html_allowed_metadata' => 'getGuidedFormsHtmlAllowedMetadata', 'guided_forms_html_conversion_policy' => 'getGuidedFormsHtmlConversionPolicy', @@ -4168,6 +4208,8 @@ public function __construct(array $data = null) $this->container['enable_contact_suggestions_metadata'] = isset($data['enable_contact_suggestions_metadata']) ? $data['enable_contact_suggestions_metadata'] : null; $this->container['enable_customer_satisfaction_metric_tracking'] = isset($data['enable_customer_satisfaction_metric_tracking']) ? $data['enable_customer_satisfaction_metric_tracking'] : null; $this->container['enable_customer_satisfaction_metric_tracking_metadata'] = isset($data['enable_customer_satisfaction_metric_tracking_metadata']) ? $data['enable_customer_satisfaction_metric_tracking_metadata'] : null; + $this->container['enable_data_verification_extensions'] = isset($data['enable_data_verification_extensions']) ? $data['enable_data_verification_extensions'] : null; + $this->container['enable_data_verification_extensions_metadata'] = isset($data['enable_data_verification_extensions_metadata']) ? $data['enable_data_verification_extensions_metadata'] : null; $this->container['enable_d_sig_eu_advanced_pens'] = isset($data['enable_d_sig_eu_advanced_pens']) ? $data['enable_d_sig_eu_advanced_pens'] : null; $this->container['enable_d_sig_eu_advanced_pens_metadata'] = isset($data['enable_d_sig_eu_advanced_pens_metadata']) ? $data['enable_d_sig_eu_advanced_pens_metadata'] : null; $this->container['enable_d_sig_express_pens'] = isset($data['enable_d_sig_express_pens']) ? $data['enable_d_sig_express_pens'] : null; @@ -4283,8 +4325,12 @@ public function __construct(array $data = null) $this->container['enable_strike_through_metadata'] = isset($data['enable_strike_through_metadata']) ? $data['enable_strike_through_metadata'] : null; $this->container['enable_transaction_point'] = isset($data['enable_transaction_point']) ? $data['enable_transaction_point'] : null; $this->container['enable_transaction_point_metadata'] = isset($data['enable_transaction_point_metadata']) ? $data['enable_transaction_point_metadata'] : null; + $this->container['enable_unified_repository'] = isset($data['enable_unified_repository']) ? $data['enable_unified_repository'] : null; + $this->container['enable_unified_repository_metadata'] = isset($data['enable_unified_repository_metadata']) ? $data['enable_unified_repository_metadata'] : null; $this->container['enable_vaulting'] = isset($data['enable_vaulting']) ? $data['enable_vaulting'] : null; $this->container['enable_vaulting_metadata'] = isset($data['enable_vaulting_metadata']) ? $data['enable_vaulting_metadata'] : null; + $this->container['enable_web_forms_runtime_ap_is'] = isset($data['enable_web_forms_runtime_ap_is']) ? $data['enable_web_forms_runtime_ap_is'] : null; + $this->container['enable_web_forms_runtime_ap_is_metadata'] = isset($data['enable_web_forms_runtime_ap_is_metadata']) ? $data['enable_web_forms_runtime_ap_is_metadata'] : null; $this->container['enable_web_forms_separate_user_permissions'] = isset($data['enable_web_forms_separate_user_permissions']) ? $data['enable_web_forms_separate_user_permissions'] : null; $this->container['enable_web_forms_separate_user_permissions_metadata'] = isset($data['enable_web_forms_separate_user_permissions_metadata']) ? $data['enable_web_forms_separate_user_permissions_metadata'] : null; $this->container['enable_witnessing'] = isset($data['enable_witnessing']) ? $data['enable_witnessing'] : null; @@ -4318,6 +4364,8 @@ public function __construct(array $data = null) $this->container['fax_out_enabled_metadata'] = isset($data['fax_out_enabled_metadata']) ? $data['fax_out_enabled_metadata'] : null; $this->container['finish_reminder'] = isset($data['finish_reminder']) ? $data['finish_reminder'] : null; $this->container['finish_reminder_metadata'] = isset($data['finish_reminder_metadata']) ? $data['finish_reminder_metadata'] : null; + $this->container['forbid_adding_user_stamps'] = isset($data['forbid_adding_user_stamps']) ? $data['forbid_adding_user_stamps'] : null; + $this->container['forbid_adding_user_stamps_metadata'] = isset($data['forbid_adding_user_stamps_metadata']) ? $data['forbid_adding_user_stamps_metadata'] : null; $this->container['guided_forms_html_allowed'] = isset($data['guided_forms_html_allowed']) ? $data['guided_forms_html_allowed'] : null; $this->container['guided_forms_html_allowed_metadata'] = isset($data['guided_forms_html_allowed_metadata']) ? $data['guided_forms_html_allowed_metadata'] : null; $this->container['guided_forms_html_conversion_policy'] = isset($data['guided_forms_html_conversion_policy']) ? $data['guided_forms_html_conversion_policy'] : null; @@ -13041,6 +13089,54 @@ public function setEnableCustomerSatisfactionMetricTrackingMetadata($enable_cust return $this; } + /** + * Gets enable_data_verification_extensions + * + * @return ?string + */ + public function getEnableDataVerificationExtensions() + { + return $this->container['enable_data_verification_extensions']; + } + + /** + * Sets enable_data_verification_extensions + * + * @param ?string $enable_data_verification_extensions + * + * @return $this + */ + public function setEnableDataVerificationExtensions($enable_data_verification_extensions) + { + $this->container['enable_data_verification_extensions'] = $enable_data_verification_extensions; + + return $this; + } + + /** + * Gets enable_data_verification_extensions_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getEnableDataVerificationExtensionsMetadata() + { + return $this->container['enable_data_verification_extensions_metadata']; + } + + /** + * Sets enable_data_verification_extensions_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $enable_data_verification_extensions_metadata + * + * @return $this + */ + public function setEnableDataVerificationExtensionsMetadata($enable_data_verification_extensions_metadata) + { + $this->container['enable_data_verification_extensions_metadata'] = $enable_data_verification_extensions_metadata; + + return $this; + } + /** * Gets enable_d_sig_eu_advanced_pens * @@ -15801,6 +15897,54 @@ public function setEnableTransactionPointMetadata($enable_transaction_point_meta return $this; } + /** + * Gets enable_unified_repository + * + * @return ?string + */ + public function getEnableUnifiedRepository() + { + return $this->container['enable_unified_repository']; + } + + /** + * Sets enable_unified_repository + * + * @param ?string $enable_unified_repository + * + * @return $this + */ + public function setEnableUnifiedRepository($enable_unified_repository) + { + $this->container['enable_unified_repository'] = $enable_unified_repository; + + return $this; + } + + /** + * Gets enable_unified_repository_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getEnableUnifiedRepositoryMetadata() + { + return $this->container['enable_unified_repository_metadata']; + } + + /** + * Sets enable_unified_repository_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $enable_unified_repository_metadata + * + * @return $this + */ + public function setEnableUnifiedRepositoryMetadata($enable_unified_repository_metadata) + { + $this->container['enable_unified_repository_metadata'] = $enable_unified_repository_metadata; + + return $this; + } + /** * Gets enable_vaulting * @@ -15849,6 +15993,54 @@ public function setEnableVaultingMetadata($enable_vaulting_metadata) return $this; } + /** + * Gets enable_web_forms_runtime_ap_is + * + * @return ?string + */ + public function getEnableWebFormsRuntimeApIs() + { + return $this->container['enable_web_forms_runtime_ap_is']; + } + + /** + * Sets enable_web_forms_runtime_ap_is + * + * @param ?string $enable_web_forms_runtime_ap_is + * + * @return $this + */ + public function setEnableWebFormsRuntimeApIs($enable_web_forms_runtime_ap_is) + { + $this->container['enable_web_forms_runtime_ap_is'] = $enable_web_forms_runtime_ap_is; + + return $this; + } + + /** + * Gets enable_web_forms_runtime_ap_is_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getEnableWebFormsRuntimeApIsMetadata() + { + return $this->container['enable_web_forms_runtime_ap_is_metadata']; + } + + /** + * Sets enable_web_forms_runtime_ap_is_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $enable_web_forms_runtime_ap_is_metadata + * + * @return $this + */ + public function setEnableWebFormsRuntimeApIsMetadata($enable_web_forms_runtime_ap_is_metadata) + { + $this->container['enable_web_forms_runtime_ap_is_metadata'] = $enable_web_forms_runtime_ap_is_metadata; + + return $this; + } + /** * Gets enable_web_forms_separate_user_permissions * @@ -16641,6 +16833,54 @@ public function setFinishReminderMetadata($finish_reminder_metadata) return $this; } + /** + * Gets forbid_adding_user_stamps + * + * @return ?string + */ + public function getForbidAddingUserStamps() + { + return $this->container['forbid_adding_user_stamps']; + } + + /** + * Sets forbid_adding_user_stamps + * + * @param ?string $forbid_adding_user_stamps + * + * @return $this + */ + public function setForbidAddingUserStamps($forbid_adding_user_stamps) + { + $this->container['forbid_adding_user_stamps'] = $forbid_adding_user_stamps; + + return $this; + } + + /** + * Gets forbid_adding_user_stamps_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getForbidAddingUserStampsMetadata() + { + return $this->container['forbid_adding_user_stamps_metadata']; + } + + /** + * Sets forbid_adding_user_stamps_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $forbid_adding_user_stamps_metadata + * + * @return $this + */ + public function setForbidAddingUserStampsMetadata($forbid_adding_user_stamps_metadata) + { + $this->container['forbid_adding_user_stamps_metadata'] = $forbid_adding_user_stamps_metadata; + + return $this; + } + /** * Gets guided_forms_html_allowed * diff --git a/src/Model/DelayedRouting.php b/src/Model/DelayedRouting.php index 957efb42..1984fa30 100644 --- a/src/Model/DelayedRouting.php +++ b/src/Model/DelayedRouting.php @@ -279,7 +279,7 @@ public function getStatus() /** * Sets status * - * @param ?string $status \\\"pending\\\" if the current workflow step has not been reached and the delay has not yet started. \\\"started\\\" if the delay is in progress. \\\"completed\\\" if the delay has elapsed and the envelope has been sent to the current workflow step's recipients. + * @param ?string $status Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. * * @return $this */ diff --git a/src/Model/DocGenFormField.php b/src/Model/DocGenFormField.php index c709fc0e..15da462b 100644 --- a/src/Model/DocGenFormField.php +++ b/src/Model/DocGenFormField.php @@ -65,6 +65,7 @@ class DocGenFormField implements ModelInterface, ArrayAccess 'options' => '\DocuSign\eSign\Model\DocGenFormFieldOption[]', 'predefined_validation' => '?string', 'required' => '?string', + 'row_values' => '\DocuSign\eSign\Model\DocGenFormFieldRowValue[]', 'type' => '?string', 'validation' => '\DocuSign\eSign\Model\DocGenFormFieldValidation', 'value' => '?string' @@ -82,6 +83,7 @@ class DocGenFormField implements ModelInterface, ArrayAccess 'options' => null, 'predefined_validation' => null, 'required' => null, + 'row_values' => null, 'type' => null, 'validation' => null, 'value' => null @@ -120,6 +122,7 @@ public static function swaggerFormats() 'options' => 'options', 'predefined_validation' => 'predefinedValidation', 'required' => 'required', + 'row_values' => 'rowValues', 'type' => 'type', 'validation' => 'validation', 'value' => 'value' @@ -137,6 +140,7 @@ public static function swaggerFormats() 'options' => 'setOptions', 'predefined_validation' => 'setPredefinedValidation', 'required' => 'setRequired', + 'row_values' => 'setRowValues', 'type' => 'setType', 'validation' => 'setValidation', 'value' => 'setValue' @@ -154,6 +158,7 @@ public static function swaggerFormats() 'options' => 'getOptions', 'predefined_validation' => 'getPredefinedValidation', 'required' => 'getRequired', + 'row_values' => 'getRowValues', 'type' => 'getType', 'validation' => 'getValidation', 'value' => 'getValue' @@ -225,6 +230,7 @@ public function __construct(array $data = null) $this->container['options'] = isset($data['options']) ? $data['options'] : null; $this->container['predefined_validation'] = isset($data['predefined_validation']) ? $data['predefined_validation'] : null; $this->container['required'] = isset($data['required']) ? $data['required'] : null; + $this->container['row_values'] = isset($data['row_values']) ? $data['row_values'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['validation'] = isset($data['validation']) ? $data['validation'] : null; $this->container['value'] = isset($data['value']) ? $data['value'] : null; @@ -398,6 +404,30 @@ public function setRequired($required) return $this; } + /** + * Gets row_values + * + * @return \DocuSign\eSign\Model\DocGenFormFieldRowValue[] + */ + public function getRowValues() + { + return $this->container['row_values']; + } + + /** + * Sets row_values + * + * @param \DocuSign\eSign\Model\DocGenFormFieldRowValue[] $row_values + * + * @return $this + */ + public function setRowValues($row_values) + { + $this->container['row_values'] = $row_values; + + return $this; + } + /** * Gets type * diff --git a/src/Model/DocGenFormFieldRowValue.php b/src/Model/DocGenFormFieldRowValue.php new file mode 100644 index 00000000..01a3abae --- /dev/null +++ b/src/Model/DocGenFormFieldRowValue.php @@ -0,0 +1,306 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * DocGenFormFieldRowValue Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class DocGenFormFieldRowValue implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'docGenFormFieldRowValue'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'doc_gen_form_field_list' => '\DocuSign\eSign\Model\DocGenFormField[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'doc_gen_form_field_list' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'doc_gen_form_field_list' => 'docGenFormFieldList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'doc_gen_form_field_list' => 'setDocGenFormFieldList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'doc_gen_form_field_list' => 'getDocGenFormFieldList' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['doc_gen_form_field_list'] = isset($data['doc_gen_form_field_list']) ? $data['doc_gen_form_field_list'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets doc_gen_form_field_list + * + * @return \DocuSign\eSign\Model\DocGenFormField[] + */ + public function getDocGenFormFieldList() + { + return $this->container['doc_gen_form_field_list']; + } + + /** + * Sets doc_gen_form_field_list + * + * @param \DocuSign\eSign\Model\DocGenFormField[] $doc_gen_form_field_list + * + * @return $this + */ + public function setDocGenFormFieldList($doc_gen_form_field_list) + { + $this->container['doc_gen_form_field_list'] = $doc_gen_form_field_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/Group.php b/src/Model/Group.php index 1f2dfdc0..074adca4 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -60,6 +60,7 @@ class Group implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'access_type' => '?string', 'ds_group_id' => '?string', 'error_details' => '\DocuSign\eSign\Model\ErrorDetails', 'group_id' => '?string', @@ -76,6 +77,7 @@ class Group implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'access_type' => null, 'ds_group_id' => null, 'error_details' => null, 'group_id' => null, @@ -113,6 +115,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ + 'access_type' => 'accessType', 'ds_group_id' => 'dsGroupId', 'error_details' => 'errorDetails', 'group_id' => 'groupId', @@ -129,6 +132,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ + 'access_type' => 'setAccessType', 'ds_group_id' => 'setDsGroupId', 'error_details' => 'setErrorDetails', 'group_id' => 'setGroupId', @@ -145,6 +149,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ + 'access_type' => 'getAccessType', 'ds_group_id' => 'getDsGroupId', 'error_details' => 'getErrorDetails', 'group_id' => 'getGroupId', @@ -215,6 +220,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['access_type'] = isset($data['access_type']) ? $data['access_type'] : null; $this->container['ds_group_id'] = isset($data['ds_group_id']) ? $data['ds_group_id'] : null; $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; $this->container['group_id'] = isset($data['group_id']) ? $data['group_id'] : null; @@ -249,6 +255,30 @@ public function valid() } + /** + * Gets access_type + * + * @return ?string + */ + public function getAccessType() + { + return $this->container['access_type']; + } + + /** + * Sets access_type + * + * @param ?string $access_type + * + * @return $this + */ + public function setAccessType($access_type) + { + $this->container['access_type'] = $access_type; + + return $this; + } + /** * Gets ds_group_id * diff --git a/src/Model/OfflineAttributes.php b/src/Model/OfflineAttributes.php index 6ba04084..1b42a338 100644 --- a/src/Model/OfflineAttributes.php +++ b/src/Model/OfflineAttributes.php @@ -37,7 +37,7 @@ * OfflineAttributes Class Doc Comment * * @category Class - * @description DocuSign internal use, but it is needed for swagger tools (go lang, Elixir/OTP) to generate client library. + * @description Reserved for DocuSign use. * @package DocuSign\eSign * @author Swagger Codegen team * @license The DocuSign PHP Client SDK is licensed under the MIT License. diff --git a/src/Model/ScheduledSending.php b/src/Model/ScheduledSending.php index c031471e..59b6ee33 100644 --- a/src/Model/ScheduledSending.php +++ b/src/Model/ScheduledSending.php @@ -309,7 +309,7 @@ public function getStatus() /** * Sets status * - * @param ?string $status \\\"pending\\\" if the envelope has not yet been sent and the scheduled sending delay has not iniaited. \\\"started\\\" if the scheduled sending delay is in progress. \\\"completed\\\" if the scheduled sending delay has elapsed and the envelope has been sent. + * @param ?string $status Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. * * @return $this */ diff --git a/src/Model/UserSettingsInformation.php b/src/Model/UserSettingsInformation.php index e1ef00f3..e07aabb6 100644 --- a/src/Model/UserSettingsInformation.php +++ b/src/Model/UserSettingsInformation.php @@ -63,6 +63,8 @@ class UserSettingsInformation implements ModelInterface, ArrayAccess 'account_management_granular' => '\DocuSign\eSign\Model\UserAccountManagementGranularInformation', 'admin_only' => '?string', 'admin_only_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'allow_access_to_all_account_agreements' => '?string', + 'allow_access_to_all_account_agreements_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_auto_tagging' => '?string', 'allowed_orchestration_access' => '?string', 'allowed_orchestration_access_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', @@ -206,6 +208,8 @@ class UserSettingsInformation implements ModelInterface, ArrayAccess 'account_management_granular' => null, 'admin_only' => null, 'admin_only_metadata' => null, + 'allow_access_to_all_account_agreements' => null, + 'allow_access_to_all_account_agreements_metadata' => null, 'allow_auto_tagging' => null, 'allowed_orchestration_access' => null, 'allowed_orchestration_access_metadata' => null, @@ -370,6 +374,8 @@ public static function swaggerFormats() 'account_management_granular' => 'accountManagementGranular', 'admin_only' => 'adminOnly', 'admin_only_metadata' => 'adminOnlyMetadata', + 'allow_access_to_all_account_agreements' => 'allowAccessToAllAccountAgreements', + 'allow_access_to_all_account_agreements_metadata' => 'allowAccessToAllAccountAgreementsMetadata', 'allow_auto_tagging' => 'allowAutoTagging', 'allowed_orchestration_access' => 'allowedOrchestrationAccess', 'allowed_orchestration_access_metadata' => 'allowedOrchestrationAccessMetadata', @@ -513,6 +519,8 @@ public static function swaggerFormats() 'account_management_granular' => 'setAccountManagementGranular', 'admin_only' => 'setAdminOnly', 'admin_only_metadata' => 'setAdminOnlyMetadata', + 'allow_access_to_all_account_agreements' => 'setAllowAccessToAllAccountAgreements', + 'allow_access_to_all_account_agreements_metadata' => 'setAllowAccessToAllAccountAgreementsMetadata', 'allow_auto_tagging' => 'setAllowAutoTagging', 'allowed_orchestration_access' => 'setAllowedOrchestrationAccess', 'allowed_orchestration_access_metadata' => 'setAllowedOrchestrationAccessMetadata', @@ -656,6 +664,8 @@ public static function swaggerFormats() 'account_management_granular' => 'getAccountManagementGranular', 'admin_only' => 'getAdminOnly', 'admin_only_metadata' => 'getAdminOnlyMetadata', + 'allow_access_to_all_account_agreements' => 'getAllowAccessToAllAccountAgreements', + 'allow_access_to_all_account_agreements_metadata' => 'getAllowAccessToAllAccountAgreementsMetadata', 'allow_auto_tagging' => 'getAllowAutoTagging', 'allowed_orchestration_access' => 'getAllowedOrchestrationAccess', 'allowed_orchestration_access_metadata' => 'getAllowedOrchestrationAccessMetadata', @@ -853,6 +863,8 @@ public function __construct(array $data = null) $this->container['account_management_granular'] = isset($data['account_management_granular']) ? $data['account_management_granular'] : null; $this->container['admin_only'] = isset($data['admin_only']) ? $data['admin_only'] : null; $this->container['admin_only_metadata'] = isset($data['admin_only_metadata']) ? $data['admin_only_metadata'] : null; + $this->container['allow_access_to_all_account_agreements'] = isset($data['allow_access_to_all_account_agreements']) ? $data['allow_access_to_all_account_agreements'] : null; + $this->container['allow_access_to_all_account_agreements_metadata'] = isset($data['allow_access_to_all_account_agreements_metadata']) ? $data['allow_access_to_all_account_agreements_metadata'] : null; $this->container['allow_auto_tagging'] = isset($data['allow_auto_tagging']) ? $data['allow_auto_tagging'] : null; $this->container['allowed_orchestration_access'] = isset($data['allowed_orchestration_access']) ? $data['allowed_orchestration_access'] : null; $this->container['allowed_orchestration_access_metadata'] = isset($data['allowed_orchestration_access_metadata']) ? $data['allowed_orchestration_access_metadata'] : null; @@ -1083,6 +1095,54 @@ public function setAdminOnlyMetadata($admin_only_metadata) return $this; } + /** + * Gets allow_access_to_all_account_agreements + * + * @return ?string + */ + public function getAllowAccessToAllAccountAgreements() + { + return $this->container['allow_access_to_all_account_agreements']; + } + + /** + * Sets allow_access_to_all_account_agreements + * + * @param ?string $allow_access_to_all_account_agreements + * + * @return $this + */ + public function setAllowAccessToAllAccountAgreements($allow_access_to_all_account_agreements) + { + $this->container['allow_access_to_all_account_agreements'] = $allow_access_to_all_account_agreements; + + return $this; + } + + /** + * Gets allow_access_to_all_account_agreements_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getAllowAccessToAllAccountAgreementsMetadata() + { + return $this->container['allow_access_to_all_account_agreements_metadata']; + } + + /** + * Sets allow_access_to_all_account_agreements_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $allow_access_to_all_account_agreements_metadata + * + * @return $this + */ + public function setAllowAccessToAllAccountAgreementsMetadata($allow_access_to_all_account_agreements_metadata) + { + $this->container['allow_access_to_all_account_agreements_metadata'] = $allow_access_to_all_account_agreements_metadata; + + return $this; + } + /** * Gets allow_auto_tagging * diff --git a/test/UnitTests.php b/test/UnitTests.php index b5ad57ad..cd8c9e13 100644 --- a/test/UnitTests.php +++ b/test/UnitTests.php @@ -222,23 +222,6 @@ public function testGetFormData($testConfig) $this->assertNotNull($envelopeFormData->getPrefillFormData()->getFormData()[0]->getName()); } - /** - * @depends testCreateEnvelope - */ - public function testListTabs($testConfig) - { - $envelopesApi = new EnvelopesApi($testConfig->getApiClient()); - $createdEnvelope = $envelopesApi->getEnvelope($testConfig->getAccountId(), $testConfig->getEnvelopeId()); - $recipients = $envelopesApi->listRecipients($testConfig->getAccountId(), $createdEnvelope->getEnvelopeId()); - $tabs = $envelopesApi->listTabs($testConfig->getAccountId(), $testConfig->getEnvelopeId(), $recipients->getSigners()[1]->getRecipientId()); - $listTabs = $tabs->getListTabs(); - - $this->assertNotNull($listTabs); - $this->assertContainsOnlyInstancesOf('DocuSign\eSign\Model\ModelList', $listTabs); - - return $testConfig; - } - /** * @depends testLogin */ @@ -398,7 +381,7 @@ public function testRequestSignatureFromTemplate($testConfig) $envelop_summary = $envelopeApi->createEnvelope($testConfig->getAccountId(), $envelop_definition, $options); if(!empty($envelop_summary)) { -// $testConfig->setEnvelopeId($envelop_summary->getEnvelopeId()); + // $testConfig->setEnvelopeId($envelop_summary->getEnvelopeId()); } $this->assertNotEmpty($envelop_summary); @@ -406,6 +389,37 @@ public function testRequestSignatureFromTemplate($testConfig) return $testConfig; } + /** + * @depends testSignatureRequestOnDocument + */ + public function testDateTabs($testConfig) + { + $envelopesApi = new EnvelopesApi($testConfig->getApiClient()); + $createdEnvelope = $envelopesApi->getEnvelope($testConfig->getAccountId(), $testConfig->getEnvelopeId()); + $recipients = $envelopesApi->listRecipients($testConfig->getAccountId(), $createdEnvelope->getEnvelopeId()); + + // Initialize a flag to check if at least one recipient has non-null date tabs + $atLeastOneDateTabNotNull = false; + + // Iterate over all recipients + foreach ($recipients->getSigners() as $signer) { + $recipientId = $signer->getRecipientId(); + $tabs = $envelopesApi->listTabs($testConfig->getAccountId(), $testConfig->getEnvelopeId(), $recipientId); + $dateTabs = $tabs->getDateTabs(); + + // Check if dateTabs is not null for the current recipient + if (!empty($dateTabs)) { + $this->assertContainsOnlyInstancesOf('DocuSign\eSign\Model\Date', $dateTabs); + $atLeastOneDateTabNotNull = true; + } + } + + // Assert that at least one recipient has non-null date tabs + $this->assertTrue($atLeastOneDateTabNotNull); + + return $testConfig; + } + /** * @depends testSignatureRequestOnDocument */ @@ -968,14 +982,13 @@ public function testAddRecipientToTemplate($testConfig) { // new signer $recipientId = '123'; - $firstName = 'TestSignerFirstName'; - $lastName = 'TestSignerLastName'; + $name = 'TestSignerName'; $signer = new Signer([ 'role_name' => 'signer', 'recipient_id' => $recipientId, 'routing_order' => '1', - 'first_name' => $firstName, - 'last_name' => $lastName, + 'name' => $name, + 'email' => $testConfig-> getRecipientEmail() ]); $sign_here = new SignHere(['document_id' => '1', 'page_number' => '1', 'x_position' => '191', 'y_position' => '148']); @@ -1040,8 +1053,7 @@ public function testAddRecipientToTemplate($testConfig) $signersAfter = $recipientsAfter->getSigners(); $lastSignerKey = array_key_last($signersAfter); $this->assertEquals($recipientId, $signersAfter[$lastSignerKey]->getRecipientId()); - $this->assertEquals($firstName, $signersAfter[$lastSignerKey]->getFirstName()); - $this->assertEquals($lastName, $signersAfter[$lastSignerKey]->getLastName()); + $this->assertEquals($name, $signersAfter[$lastSignerKey]->getName()); } /**