From 94aa32d777d821a45d140533049ff09440fc8ebc Mon Sep 17 00:00:00 2001 From: Eleanor Harris <86789088+eleanorharris@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:06:39 -0400 Subject: [PATCH] Version 6.18.0-rc-v2.1-23.3.01.02 release (#212) Co-authored-by: root --- CHANGELOG.md | 5 + src/Api/AccountsApi.php | 8 +- src/Api/EnvelopesApi.php | 4 +- src/Api/UsersApi.php | 19 +- src/Model/AccountSettingsInformation.php | 90 ++++++ src/Model/DelayedRouting.php | 2 +- src/Model/DocGenFormField.php | 120 +++++++ src/Model/DocGenFormFieldOption.php | 396 +++++++++++++++++++++++ src/Model/DocGenFormFieldValidation.php | 336 +++++++++++++++++++ src/Model/Document.php | 30 ++ src/Model/OfflineAttributes.php | 2 +- src/Model/ScheduledSending.php | 2 +- 12 files changed, 1001 insertions(+), 13 deletions(-) create mode 100644 src/Model/DocGenFormFieldOption.php create mode 100644 src/Model/DocGenFormFieldValidation.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 8520baae..87077ae6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. +## [v6.18.0-rc] - eSignature API v2.1-23.3.01.02 - 2023-10-25 +### Changed +- Added support for version v2.1-23.3.01.02 of the DocuSign ESignature API. +- Updated the SDK release version. + ## [v6.17.0] - eSignature API v2.1-23.3.00.01 - 2023-09-01 ### Changed - Added support for version v2.1-23.3.00.01 of the DocuSign ESignature API. diff --git a/src/Api/AccountsApi.php b/src/Api/AccountsApi.php index 95976b15..b9af367e 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), 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), 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), 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), 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), 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), 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), 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), 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 4510e024..748595db 100644 --- a/src/Api/EnvelopesApi.php +++ b/src/Api/EnvelopesApi.php @@ -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), 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), 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), 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), 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 a19a6b50..a232fe26 100644 --- a/src/Api/UsersApi.php +++ b/src/Api/UsersApi.php @@ -3674,14 +3674,15 @@ 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 \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response * @return \DocuSign\eSign\Model\UserSignature */ - public function updateSignatureImage($account_id, $image_type, $signature_id, $user_id, \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options = null) + public function updateSignatureImage($account_id, $image_type, $signature_id, $user_id, $image_bytes, \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options = null) { - list($response) = $this->updateSignatureImageWithHttpInfo($account_id, $image_type, $signature_id, $user_id, $options); + list($response) = $this->updateSignatureImageWithHttpInfo($account_id, $image_type, $signature_id, $user_id, $image_bytes, $options); return $response; } @@ -3694,12 +3695,13 @@ 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 \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response * @return array of \DocuSign\eSign\Model\UserSignature, HTTP status code, HTTP response headers (array of strings) */ - public function updateSignatureImageWithHttpInfo($account_id, $image_type, $signature_id, $user_id, \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options = null): array + public function updateSignatureImageWithHttpInfo($account_id, $image_type, $signature_id, $user_id, $image_bytes, \DocuSign\eSign\Api\UsersApi\UpdateSignatureImageOptions $options = null): array { // verify the required parameter 'account_id' is set if ($account_id === null) { @@ -3717,6 +3719,10 @@ public function updateSignatureImageWithHttpInfo($account_id, $image_type, $sign if ($user_id === null) { throw new \InvalidArgumentException('Missing the required parameter $user_id when calling updateSignatureImage'); } + // verify the required parameter 'image_bytes' is set + if ($image_bytes === null) { + throw new \InvalidArgumentException('Missing the required parameter $image_bytes when calling updateSignatureImage'); + } // parse inputs $resourcePath = "/v2.1/accounts/{accountId}/users/{userId}/signatures/{signatureId}/{imageType}"; $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present @@ -3751,7 +3757,12 @@ public function updateSignatureImageWithHttpInfo($account_id, $image_type, $sign // default format to json $resourcePath = str_replace("{format}", "json", $resourcePath); - + // body params + $_tempBody = null; + if (isset($image_bytes)) { + $_tempBody = $image_bytes; + } + // for model (json/xml) if (isset($_tempBody)) { $httpBody = $_tempBody; // $_tempBody is the method argument, if present diff --git a/src/Model/AccountSettingsInformation.php b/src/Model/AccountSettingsInformation.php index fe2e55d0..d305d207 100644 --- a/src/Model/AccountSettingsInformation.php +++ b/src/Model/AccountSettingsInformation.php @@ -367,6 +367,7 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'draft_envelope_retention' => '?string', 'draft_envelope_retention_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'dss_enable_provisioning_pen_configuration_radmin_option' => '?string', + 'dss_enable_signature_type_custom_tag_radmin_radmin_option' => '?string', 'dss_sign_28411_enable_leave_page_prompt_radmin_option' => '?string', 'dss_sign_29182_slide_up_bar_radmin_option' => '?string', 'email_template_version' => '?string', @@ -455,6 +456,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_in_browser_editor_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_key_terms_suggestions_by_document_type' => '?string', 'enable_key_terms_suggestions_by_document_type_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'enable_large_file_support' => '?string', + 'enable_large_file_support_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_participant_recipient_setting_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'enable_payment_processing' => '?string', 'enable_payment_processing_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', @@ -1100,6 +1103,7 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'draft_envelope_retention' => null, 'draft_envelope_retention_metadata' => null, 'dss_enable_provisioning_pen_configuration_radmin_option' => null, + 'dss_enable_signature_type_custom_tag_radmin_radmin_option' => null, 'dss_sign_28411_enable_leave_page_prompt_radmin_option' => null, 'dss_sign_29182_slide_up_bar_radmin_option' => null, 'email_template_version' => null, @@ -1188,6 +1192,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'enable_in_browser_editor_metadata' => null, 'enable_key_terms_suggestions_by_document_type' => null, 'enable_key_terms_suggestions_by_document_type_metadata' => null, + 'enable_large_file_support' => null, + 'enable_large_file_support_metadata' => null, 'enable_participant_recipient_setting_metadata' => null, 'enable_payment_processing' => null, 'enable_payment_processing_metadata' => null, @@ -1854,6 +1860,7 @@ public static function swaggerFormats() 'draft_envelope_retention' => 'draftEnvelopeRetention', 'draft_envelope_retention_metadata' => 'draftEnvelopeRetentionMetadata', 'dss_enable_provisioning_pen_configuration_radmin_option' => 'dss_EnableProvisioningPenConfiguration_RadminOption', + 'dss_enable_signature_type_custom_tag_radmin_radmin_option' => 'dss_EnableSignatureTypeCustomTagRadmin_RadminOption', 'dss_sign_28411_enable_leave_page_prompt_radmin_option' => 'dss_SIGN_28411_EnableLeavePagePrompt_RadminOption', 'dss_sign_29182_slide_up_bar_radmin_option' => 'dss_SIGN_29182_SlideUpBar_RadminOption', 'email_template_version' => 'emailTemplateVersion', @@ -1942,6 +1949,8 @@ public static function swaggerFormats() 'enable_in_browser_editor_metadata' => 'enableInBrowserEditorMetadata', 'enable_key_terms_suggestions_by_document_type' => 'enableKeyTermsSuggestionsByDocumentType', 'enable_key_terms_suggestions_by_document_type_metadata' => 'enableKeyTermsSuggestionsByDocumentTypeMetadata', + 'enable_large_file_support' => 'enableLargeFileSupport', + 'enable_large_file_support_metadata' => 'enableLargeFileSupportMetadata', 'enable_participant_recipient_setting_metadata' => 'enableParticipantRecipientSettingMetadata', 'enable_payment_processing' => 'enablePaymentProcessing', 'enable_payment_processing_metadata' => 'enablePaymentProcessingMetadata', @@ -2587,6 +2596,7 @@ public static function swaggerFormats() 'draft_envelope_retention' => 'setDraftEnvelopeRetention', 'draft_envelope_retention_metadata' => 'setDraftEnvelopeRetentionMetadata', 'dss_enable_provisioning_pen_configuration_radmin_option' => 'setDssEnableProvisioningPenConfigurationRadminOption', + 'dss_enable_signature_type_custom_tag_radmin_radmin_option' => 'setDssEnableSignatureTypeCustomTagRadminRadminOption', 'dss_sign_28411_enable_leave_page_prompt_radmin_option' => 'setDssSign28411EnableLeavePagePromptRadminOption', 'dss_sign_29182_slide_up_bar_radmin_option' => 'setDssSign29182SlideUpBarRadminOption', 'email_template_version' => 'setEmailTemplateVersion', @@ -2675,6 +2685,8 @@ public static function swaggerFormats() 'enable_in_browser_editor_metadata' => 'setEnableInBrowserEditorMetadata', 'enable_key_terms_suggestions_by_document_type' => 'setEnableKeyTermsSuggestionsByDocumentType', 'enable_key_terms_suggestions_by_document_type_metadata' => 'setEnableKeyTermsSuggestionsByDocumentTypeMetadata', + 'enable_large_file_support' => 'setEnableLargeFileSupport', + 'enable_large_file_support_metadata' => 'setEnableLargeFileSupportMetadata', 'enable_participant_recipient_setting_metadata' => 'setEnableParticipantRecipientSettingMetadata', 'enable_payment_processing' => 'setEnablePaymentProcessing', 'enable_payment_processing_metadata' => 'setEnablePaymentProcessingMetadata', @@ -3320,6 +3332,7 @@ public static function swaggerFormats() 'draft_envelope_retention' => 'getDraftEnvelopeRetention', 'draft_envelope_retention_metadata' => 'getDraftEnvelopeRetentionMetadata', 'dss_enable_provisioning_pen_configuration_radmin_option' => 'getDssEnableProvisioningPenConfigurationRadminOption', + 'dss_enable_signature_type_custom_tag_radmin_radmin_option' => 'getDssEnableSignatureTypeCustomTagRadminRadminOption', 'dss_sign_28411_enable_leave_page_prompt_radmin_option' => 'getDssSign28411EnableLeavePagePromptRadminOption', 'dss_sign_29182_slide_up_bar_radmin_option' => 'getDssSign29182SlideUpBarRadminOption', 'email_template_version' => 'getEmailTemplateVersion', @@ -3408,6 +3421,8 @@ public static function swaggerFormats() 'enable_in_browser_editor_metadata' => 'getEnableInBrowserEditorMetadata', 'enable_key_terms_suggestions_by_document_type' => 'getEnableKeyTermsSuggestionsByDocumentType', 'enable_key_terms_suggestions_by_document_type_metadata' => 'getEnableKeyTermsSuggestionsByDocumentTypeMetadata', + 'enable_large_file_support' => 'getEnableLargeFileSupport', + 'enable_large_file_support_metadata' => 'getEnableLargeFileSupportMetadata', 'enable_participant_recipient_setting_metadata' => 'getEnableParticipantRecipientSettingMetadata', 'enable_payment_processing' => 'getEnablePaymentProcessing', 'enable_payment_processing_metadata' => 'getEnablePaymentProcessingMetadata', @@ -4107,6 +4122,7 @@ public function __construct(array $data = null) $this->container['draft_envelope_retention'] = isset($data['draft_envelope_retention']) ? $data['draft_envelope_retention'] : null; $this->container['draft_envelope_retention_metadata'] = isset($data['draft_envelope_retention_metadata']) ? $data['draft_envelope_retention_metadata'] : null; $this->container['dss_enable_provisioning_pen_configuration_radmin_option'] = isset($data['dss_enable_provisioning_pen_configuration_radmin_option']) ? $data['dss_enable_provisioning_pen_configuration_radmin_option'] : null; + $this->container['dss_enable_signature_type_custom_tag_radmin_radmin_option'] = isset($data['dss_enable_signature_type_custom_tag_radmin_radmin_option']) ? $data['dss_enable_signature_type_custom_tag_radmin_radmin_option'] : null; $this->container['dss_sign_28411_enable_leave_page_prompt_radmin_option'] = isset($data['dss_sign_28411_enable_leave_page_prompt_radmin_option']) ? $data['dss_sign_28411_enable_leave_page_prompt_radmin_option'] : null; $this->container['dss_sign_29182_slide_up_bar_radmin_option'] = isset($data['dss_sign_29182_slide_up_bar_radmin_option']) ? $data['dss_sign_29182_slide_up_bar_radmin_option'] : null; $this->container['email_template_version'] = isset($data['email_template_version']) ? $data['email_template_version'] : null; @@ -4195,6 +4211,8 @@ public function __construct(array $data = null) $this->container['enable_in_browser_editor_metadata'] = isset($data['enable_in_browser_editor_metadata']) ? $data['enable_in_browser_editor_metadata'] : null; $this->container['enable_key_terms_suggestions_by_document_type'] = isset($data['enable_key_terms_suggestions_by_document_type']) ? $data['enable_key_terms_suggestions_by_document_type'] : null; $this->container['enable_key_terms_suggestions_by_document_type_metadata'] = isset($data['enable_key_terms_suggestions_by_document_type_metadata']) ? $data['enable_key_terms_suggestions_by_document_type_metadata'] : null; + $this->container['enable_large_file_support'] = isset($data['enable_large_file_support']) ? $data['enable_large_file_support'] : null; + $this->container['enable_large_file_support_metadata'] = isset($data['enable_large_file_support_metadata']) ? $data['enable_large_file_support_metadata'] : null; $this->container['enable_participant_recipient_setting_metadata'] = isset($data['enable_participant_recipient_setting_metadata']) ? $data['enable_participant_recipient_setting_metadata'] : null; $this->container['enable_payment_processing'] = isset($data['enable_payment_processing']) ? $data['enable_payment_processing'] : null; $this->container['enable_payment_processing_metadata'] = isset($data['enable_payment_processing_metadata']) ? $data['enable_payment_processing_metadata'] : null; @@ -11919,6 +11937,30 @@ public function setDssEnableProvisioningPenConfigurationRadminOption($dss_enable return $this; } + /** + * Gets dss_enable_signature_type_custom_tag_radmin_radmin_option + * + * @return ?string + */ + public function getDssEnableSignatureTypeCustomTagRadminRadminOption() + { + return $this->container['dss_enable_signature_type_custom_tag_radmin_radmin_option']; + } + + /** + * Sets dss_enable_signature_type_custom_tag_radmin_radmin_option + * + * @param ?string $dss_enable_signature_type_custom_tag_radmin_radmin_option + * + * @return $this + */ + public function setDssEnableSignatureTypeCustomTagRadminRadminOption($dss_enable_signature_type_custom_tag_radmin_radmin_option) + { + $this->container['dss_enable_signature_type_custom_tag_radmin_radmin_option'] = $dss_enable_signature_type_custom_tag_radmin_radmin_option; + + return $this; + } + /** * Gets dss_sign_28411_enable_leave_page_prompt_radmin_option * @@ -14031,6 +14073,54 @@ public function setEnableKeyTermsSuggestionsByDocumentTypeMetadata($enable_key_t return $this; } + /** + * Gets enable_large_file_support + * + * @return ?string + */ + public function getEnableLargeFileSupport() + { + return $this->container['enable_large_file_support']; + } + + /** + * Sets enable_large_file_support + * + * @param ?string $enable_large_file_support + * + * @return $this + */ + public function setEnableLargeFileSupport($enable_large_file_support) + { + $this->container['enable_large_file_support'] = $enable_large_file_support; + + return $this; + } + + /** + * Gets enable_large_file_support_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getEnableLargeFileSupportMetadata() + { + return $this->container['enable_large_file_support_metadata']; + } + + /** + * Sets enable_large_file_support_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $enable_large_file_support_metadata + * + * @return $this + */ + public function setEnableLargeFileSupportMetadata($enable_large_file_support_metadata) + { + $this->container['enable_large_file_support_metadata'] = $enable_large_file_support_metadata; + + return $this; + } + /** * Gets enable_participant_recipient_setting_metadata * diff --git a/src/Model/DelayedRouting.php b/src/Model/DelayedRouting.php index 83633f33..8be75c2f 100644 --- a/src/Model/DelayedRouting.php +++ b/src/Model/DelayedRouting.php @@ -279,7 +279,7 @@ public function getStatus() /** * Sets status * - * @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. + * @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. * * @return $this */ diff --git a/src/Model/DocGenFormField.php b/src/Model/DocGenFormField.php index 327ab7f7..b043c5d4 100644 --- a/src/Model/DocGenFormField.php +++ b/src/Model/DocGenFormField.php @@ -59,10 +59,14 @@ class DocGenFormField implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'description' => '?string', 'label' => '?string', 'name' => '?string', + 'options' => '\DocuSign\eSign\Model\DocGenFormFieldOption[]', + 'predefined_validation' => '?string', 'required' => '?string', 'type' => '?string', + 'validation' => '\DocuSign\eSign\Model\DocGenFormFieldValidation', 'value' => '?string' ]; @@ -72,10 +76,14 @@ class DocGenFormField implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'description' => null, 'label' => null, 'name' => null, + 'options' => null, + 'predefined_validation' => null, 'required' => null, 'type' => null, + 'validation' => null, 'value' => null ]; @@ -106,10 +114,14 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ + 'description' => 'description', 'label' => 'label', 'name' => 'name', + 'options' => 'options', + 'predefined_validation' => 'predefinedValidation', 'required' => 'required', 'type' => 'type', + 'validation' => 'validation', 'value' => 'value' ]; @@ -119,10 +131,14 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ + 'description' => 'setDescription', 'label' => 'setLabel', 'name' => 'setName', + 'options' => 'setOptions', + 'predefined_validation' => 'setPredefinedValidation', 'required' => 'setRequired', 'type' => 'setType', + 'validation' => 'setValidation', 'value' => 'setValue' ]; @@ -132,10 +148,14 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ + 'description' => 'getDescription', 'label' => 'getLabel', 'name' => 'getName', + 'options' => 'getOptions', + 'predefined_validation' => 'getPredefinedValidation', 'required' => 'getRequired', 'type' => 'getType', + 'validation' => 'getValidation', 'value' => 'getValue' ]; @@ -199,10 +219,14 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['label'] = isset($data['label']) ? $data['label'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : 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['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; } @@ -230,6 +254,30 @@ public function valid() } + /** + * Gets description + * + * @return ?string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param ?string $description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + /** * Gets label * @@ -278,6 +326,54 @@ public function setName($name) return $this; } + /** + * Gets options + * + * @return \DocuSign\eSign\Model\DocGenFormFieldOption[] + */ + public function getOptions() + { + return $this->container['options']; + } + + /** + * Sets options + * + * @param \DocuSign\eSign\Model\DocGenFormFieldOption[] $options + * + * @return $this + */ + public function setOptions($options) + { + $this->container['options'] = $options; + + return $this; + } + + /** + * Gets predefined_validation + * + * @return ?string + */ + public function getPredefinedValidation() + { + return $this->container['predefined_validation']; + } + + /** + * Sets predefined_validation + * + * @param ?string $predefined_validation + * + * @return $this + */ + public function setPredefinedValidation($predefined_validation) + { + $this->container['predefined_validation'] = $predefined_validation; + + return $this; + } + /** * Gets required * @@ -326,6 +422,30 @@ public function setType($type) return $this; } + /** + * Gets validation + * + * @return \DocuSign\eSign\Model\DocGenFormFieldValidation + */ + public function getValidation() + { + return $this->container['validation']; + } + + /** + * Sets validation + * + * @param \DocuSign\eSign\Model\DocGenFormFieldValidation $validation + * + * @return $this + */ + public function setValidation($validation) + { + $this->container['validation'] = $validation; + + return $this; + } + /** * Gets value * diff --git a/src/Model/DocGenFormFieldOption.php b/src/Model/DocGenFormFieldOption.php new file mode 100644 index 00000000..f8c19a05 --- /dev/null +++ b/src/Model/DocGenFormFieldOption.php @@ -0,0 +1,396 @@ + + * @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-SNAPSHOT + */ + +/** + * 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; + +/** + * DocGenFormFieldOption 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 DocGenFormFieldOption implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'docGenFormFieldOption'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'description' => '?string', + 'label' => '?string', + 'selected' => '?string', + 'value' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'description' => null, + 'label' => null, + 'selected' => null, + 'value' => 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 = [ + 'description' => 'description', + 'label' => 'label', + 'selected' => 'selected', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'description' => 'setDescription', + 'label' => 'setLabel', + 'selected' => 'setSelected', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'description' => 'getDescription', + 'label' => 'getLabel', + 'selected' => 'getSelected', + 'value' => 'getValue' + ]; + + /** + * 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['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['label'] = isset($data['label']) ? $data['label'] : null; + $this->container['selected'] = isset($data['selected']) ? $data['selected'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : 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 description + * + * @return ?string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param ?string $description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets label + * + * @return ?string + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param ?string $label + * + * @return $this + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + + /** + * Gets selected + * + * @return ?string + */ + public function getSelected() + { + return $this->container['selected']; + } + + /** + * Sets selected + * + * @param ?string $selected + * + * @return $this + */ + public function setSelected($selected) + { + $this->container['selected'] = $selected; + + return $this; + } + + /** + * Gets value + * + * @return ?string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param ?string $value Specifies the value of the tab. + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + 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/DocGenFormFieldValidation.php b/src/Model/DocGenFormFieldValidation.php new file mode 100644 index 00000000..6b578568 --- /dev/null +++ b/src/Model/DocGenFormFieldValidation.php @@ -0,0 +1,336 @@ + + * @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-SNAPSHOT + */ + +/** + * 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; + +/** + * DocGenFormFieldValidation 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 DocGenFormFieldValidation implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'docGenFormFieldValidation'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'error_message' => '?string', + 'expression' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error_message' => null, + 'expression' => 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 = [ + 'error_message' => 'errorMessage', + 'expression' => 'expression' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error_message' => 'setErrorMessage', + 'expression' => 'setExpression' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error_message' => 'getErrorMessage', + 'expression' => 'getExpression' + ]; + + /** + * 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['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + $this->container['expression'] = isset($data['expression']) ? $data['expression'] : 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 error_message + * + * @return ?string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param ?string $error_message + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + + /** + * Gets expression + * + * @return ?string + */ + public function getExpression() + { + return $this->container['expression']; + } + + /** + * Sets expression + * + * @param ?string $expression + * + * @return $this + */ + public function setExpression($expression) + { + $this->container['expression'] = $expression; + + 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/Document.php b/src/Model/Document.php index fff98c3e..07f8dd89 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -62,6 +62,7 @@ class Document implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'apply_anchor_tabs' => '?string', 'assign_tabs_to_recipient_id' => '?string', + 'authoritative_copy' => '?bool', 'display' => '?string', 'doc_gen_form_fields' => '\DocuSign\eSign\Model\DocGenFormField[]', 'document_base64' => '?string', @@ -97,6 +98,7 @@ class Document implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'apply_anchor_tabs' => null, 'assign_tabs_to_recipient_id' => null, + 'authoritative_copy' => null, 'display' => null, 'doc_gen_form_fields' => null, 'document_base64' => null, @@ -153,6 +155,7 @@ public static function swaggerFormats() protected static $attributeMap = [ 'apply_anchor_tabs' => 'applyAnchorTabs', 'assign_tabs_to_recipient_id' => 'assignTabsToRecipientId', + 'authoritative_copy' => 'authoritativeCopy', 'display' => 'display', 'doc_gen_form_fields' => 'docGenFormFields', 'document_base64' => 'documentBase64', @@ -188,6 +191,7 @@ public static function swaggerFormats() protected static $setters = [ 'apply_anchor_tabs' => 'setApplyAnchorTabs', 'assign_tabs_to_recipient_id' => 'setAssignTabsToRecipientId', + 'authoritative_copy' => 'setAuthoritativeCopy', 'display' => 'setDisplay', 'doc_gen_form_fields' => 'setDocGenFormFields', 'document_base64' => 'setDocumentBase64', @@ -223,6 +227,7 @@ public static function swaggerFormats() protected static $getters = [ 'apply_anchor_tabs' => 'getApplyAnchorTabs', 'assign_tabs_to_recipient_id' => 'getAssignTabsToRecipientId', + 'authoritative_copy' => 'getAuthoritativeCopy', 'display' => 'getDisplay', 'doc_gen_form_fields' => 'getDocGenFormFields', 'document_base64' => 'getDocumentBase64', @@ -312,6 +317,7 @@ public function __construct(array $data = null) { $this->container['apply_anchor_tabs'] = isset($data['apply_anchor_tabs']) ? $data['apply_anchor_tabs'] : null; $this->container['assign_tabs_to_recipient_id'] = isset($data['assign_tabs_to_recipient_id']) ? $data['assign_tabs_to_recipient_id'] : null; + $this->container['authoritative_copy'] = isset($data['authoritative_copy']) ? $data['authoritative_copy'] : null; $this->container['display'] = isset($data['display']) ? $data['display'] : null; $this->container['doc_gen_form_fields'] = isset($data['doc_gen_form_fields']) ? $data['doc_gen_form_fields'] : null; $this->container['document_base64'] = isset($data['document_base64']) ? $data['document_base64'] : null; @@ -411,6 +417,30 @@ public function setAssignTabsToRecipientId($assign_tabs_to_recipient_id) return $this; } + /** + * Gets authoritative_copy + * + * @return ?bool + */ + public function getAuthoritativeCopy() + { + return $this->container['authoritative_copy']; + } + + /** + * Sets authoritative_copy + * + * @param ?bool $authoritative_copy Specifies the Authoritative copy feature. If set to true the Authoritative copy feature is enabled. + * + * @return $this + */ + public function setAuthoritativeCopy($authoritative_copy) + { + $this->container['authoritative_copy'] = $authoritative_copy; + + return $this; + } + /** * Gets display * diff --git a/src/Model/OfflineAttributes.php b/src/Model/OfflineAttributes.php index 11c9c461..bad4f740 100644 --- a/src/Model/OfflineAttributes.php +++ b/src/Model/OfflineAttributes.php @@ -37,7 +37,7 @@ * OfflineAttributes Class Doc Comment * * @category Class - * @description Reserved for DocuSign use. + * @description DocuSign internal use, but it is needed for swagger tools (go lang, Elixir/OTP) to generate client library. * @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 bc2be59a..4d1dd65d 100644 --- a/src/Model/ScheduledSending.php +++ b/src/Model/ScheduledSending.php @@ -309,7 +309,7 @@ public function getStatus() /** * Sets status * - * @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. + * @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. * * @return $this */