From 10fd2e0a26c8941aa3cc822e790f9d9741e631a6 Mon Sep 17 00:00:00 2001 From: Dhaval Brahmbhatt <32913565+dbbrahmbhatt@users.noreply.github.com> Date: Wed, 18 Mar 2020 12:07:26 -0700 Subject: [PATCH] Version 4.2.0-rc-v2-20.1.00 (#91) Co-authored-by: Dhaval Brahmbhatt --- CHANGELOG.md | 5 + src/Api/AccountsApi.php | 60 +- src/Api/BulkEnvelopesApi.php | 28 +- src/Api/ConnectApi.php | 766 +++++++++++++++++++- src/Api/EnvelopesApi.php | 219 +++++- src/Api/OrganizationsApi.php | 493 +++++++++++++ src/Api/TrustServiceProvidersApi.php | 183 ----- src/Configuration.php | 4 +- src/Model/AccountRoleSettings.php | 52 ++ src/Model/AuthenticationStatus.php | 26 + src/Model/CarbonCopy.php | 52 ++ src/Model/CertifiedDelivery.php | 52 ++ src/Model/Document.php | 26 - src/Model/DocumentHtmlDisplaySettings.php | 26 + src/Model/Envelope.php | 52 ++ src/Model/EnvelopeDefinition.php | 52 ++ src/Model/EnvelopeDocument.php | 52 +- src/Model/EnvelopeTemplate.php | 52 ++ src/Model/EnvelopeTemplateResult.php | 52 ++ src/Model/EventNotification.php | 26 + src/Model/NewAccountDefinition.php | 26 + src/Model/OfflineAttributes.php | 358 +++++++++ src/Model/PaymentDetails.php | 104 +++ src/Model/RecipientEmailNotification.php | 2 +- src/Model/RecipientIdentityInputOption.php | 279 +++++++ src/Model/RecipientIdentityPhoneNumber.php | 279 +++++++ src/Model/RecipientIdentityVerification.php | 253 +++++++ src/Model/RecipientProofFile.php | 227 ++++++ src/Model/Signer.php | 52 ++ src/Model/SmartSectionDisplaySettings.php | 26 + src/Model/Witness.php | 52 ++ src/README.md | 78 -- test/TestConfig.php | 4 +- test/UnitTests.php | 32 +- 34 files changed, 3693 insertions(+), 357 deletions(-) create mode 100644 src/Api/OrganizationsApi.php delete mode 100644 src/Api/TrustServiceProvidersApi.php create mode 100644 src/Model/OfflineAttributes.php create mode 100644 src/Model/RecipientIdentityInputOption.php create mode 100644 src/Model/RecipientIdentityPhoneNumber.php create mode 100644 src/Model/RecipientIdentityVerification.php create mode 100644 src/Model/RecipientProofFile.php delete mode 100644 src/README.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 11dfd54a..3e2f6c18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,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. +## [4.2.0] - eSignature API v2-20.1.00 - 2020-03-13 +### Changed +* The SDK now supports version 20.1.00 of the DocuSign eSignature API. +* SDK Release Version updated.git chec + ## [4.1.0] - eSignature API v2-19.2.02 - 2019-09-28 ### Changed * The SDK now supports version 19.2.02 of the DocuSign eSignature API. diff --git a/src/Api/AccountsApi.php b/src/Api/AccountsApi.php index f0664fd6..e943016d 100644 --- a/src/Api/AccountsApi.php +++ b/src/Api/AccountsApi.php @@ -140,6 +140,34 @@ public function setApplyToTemplates($apply_to_templates) return $this; } } +class DeletePermissionProfileOptions +{ + /** + * $move_users_to + * @var string + */ + protected $move_users_to; + + /** + * Gets move_users_to + * @return string + */ + public function getMoveUsersTo() + { + return $this->move_users_to; + } + + /** + * Sets move_users_to + * @param string $move_users_to + * @return $this + */ + public function setMoveUsersTo($move_users_to) + { + $this->move_users_to = $move_users_to; + return $this; + } +} class GetAccountInformationOptions { /** @@ -305,7 +333,7 @@ public function setReturnMaster($return_master) class GetConsumerDisclosureDefaultOptions { /** - * $lang_code Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), 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_code Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk), and Vietnamese (vi). Additionally, the value can be set to `browser` to automatically detect the browser language being used by the viewer and display the disclosure in that language. * @var string */ protected $lang_code; @@ -321,7 +349,7 @@ public function getLangCode() /** * Sets lang_code - * @param string $lang_code Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), 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 Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk), and Vietnamese (vi). Additionally, the value can be set to `browser` to automatically detect the browser language being used by the viewer and display the disclosure in that language. * @return $this */ public function setLangCode($lang_code) @@ -1985,12 +2013,13 @@ public function deleteENoteConfigurationWithHttpInfo($account_id) * * @param string $account_id The external account number (int) or account ID Guid. * @param string $permission_profile_id + * @param $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return void */ - public function deletePermissionProfile($account_id, $permission_profile_id) + public function deletePermissionProfile($account_id, $permission_profile_id, AccountsApi\DeletePermissionProfileOptions $options = null) { - list($response) = $this->deletePermissionProfileWithHttpInfo($account_id, $permission_profile_id); + list($response) = $this->deletePermissionProfileWithHttpInfo($account_id, $permission_profile_id, $options); return $response; } @@ -2001,10 +2030,11 @@ public function deletePermissionProfile($account_id, $permission_profile_id) * * @param string $account_id The external account number (int) or account ID Guid. * @param string $permission_profile_id + * @param $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deletePermissionProfileWithHttpInfo($account_id, $permission_profile_id) + public function deletePermissionProfileWithHttpInfo($account_id, $permission_profile_id, AccountsApi\DeletePermissionProfileOptions $options = null) { // verify the required parameter 'account_id' is set if ($account_id === null) { @@ -2026,6 +2056,14 @@ public function deletePermissionProfileWithHttpInfo($account_id, $permission_pro } $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + if ($options != null) + { + // query params + // query params + if ($options->getMoveUsersTo() !== null) { + $queryParams['move_users_to'] = $this->apiClient->getSerializer()->toQueryValue($options->getMoveUsersTo()); + } + } // path params if ($account_id !== null) { @@ -3122,7 +3160,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), 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 \DocuSign\eSign\Client\ApiException on non-2xx response * @return \DocuSign\eSign\Model\ConsumerDisclosure */ @@ -3138,7 +3176,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), 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 \DocuSign\eSign\Client\ApiException on non-2xx response * @return array of \DocuSign\eSign\Model\ConsumerDisclosure, HTTP status code, HTTP response headers (array of strings) */ @@ -5048,7 +5086,7 @@ public function updateBrandWithHttpInfo($account_id, $brand_id, $brand = null) * * Put one branding logo. * - * @param string $account_id The external account number (int) or account ID Guid. + * @param string $account_id The external account number (int) or account id GUID. * @param string $brand_id The unique identifier of a brand. * @param string $logo_type One of **Primary**, **Secondary** or **Email**. * @param string $logo_file_bytes Brand logo binary Stream. Supported formats: JPG, GIF, PNG. Maximum file size: 300 KB. Recommended dimensions: 296 x 76 pixels (larger images will be resized). Changes may take up to one hour to display in all places (required) @@ -5066,7 +5104,7 @@ public function updateBrandLogoByType($account_id, $brand_id, $logo_type, $logo_ * * Put one branding logo. * - * @param string $account_id The external account number (int) or account ID Guid. + * @param string $account_id The external account number (int) or account id GUID. * @param string $brand_id The unique identifier of a brand. * @param string $logo_type One of **Primary**, **Secondary** or **Email**. * @param string $logo_file_bytes Brand logo binary Stream. Supported formats: JPG, GIF, PNG. Maximum file size: 300 KB. Recommended dimensions: 296 x 76 pixels (larger images will be resized). Changes may take up to one hour to display in all places (required) @@ -5292,7 +5330,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), 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 $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response @@ -5310,7 +5348,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), 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 $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response diff --git a/src/Api/BulkEnvelopesApi.php b/src/Api/BulkEnvelopesApi.php index 4e017671..8ed731d7 100644 --- a/src/Api/BulkEnvelopesApi.php +++ b/src/Api/BulkEnvelopesApi.php @@ -134,7 +134,7 @@ public function setCount($count) return $this; } /** - * $include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status. + * $include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=\"failed,queued\") Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status. * @var string */ protected $include; @@ -150,7 +150,7 @@ public function getInclude() /** * Sets include - * @param string $include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status. + * @param string $include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=\"failed,queued\") Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status. * @return $this */ public function setInclude($include) @@ -785,14 +785,14 @@ public function getRecipientsWithHttpInfo($account_id, $envelope_id, $recipient_ * * Adds or replaces envelope bulk recipients. * - * @param string $account_id The external account number (int) or account ID Guid. - * @param string $envelope_id The envelopeId Guid of the envelope being accessed. - * @param string $recipient_id The ID of the recipient being accessed. - * @param \DocuSign\eSign\Model\BulkRecipientsRequest $bulk_recipients_request (optional) + * @param string $account_id The external account number (int) or account id GUID. + * @param string $envelope_id The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec + * @param string $recipient_id The `recipientId` used when the envelope or template was created. + * @param string $bulk_recipients_request (required) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return \DocuSign\eSign\Model\BulkRecipientsSummaryResponse */ - public function updateRecipients($account_id, $envelope_id, $recipient_id, $bulk_recipients_request = null) + public function updateRecipients($account_id, $envelope_id, $recipient_id, $bulk_recipients_request) { list($response) = $this->updateRecipientsWithHttpInfo($account_id, $envelope_id, $recipient_id, $bulk_recipients_request); return $response; @@ -803,14 +803,14 @@ public function updateRecipients($account_id, $envelope_id, $recipient_id, $bulk * * Adds or replaces envelope bulk recipients. * - * @param string $account_id The external account number (int) or account ID Guid. - * @param string $envelope_id The envelopeId Guid of the envelope being accessed. - * @param string $recipient_id The ID of the recipient being accessed. - * @param \DocuSign\eSign\Model\BulkRecipientsRequest $bulk_recipients_request (optional) + * @param string $account_id The external account number (int) or account id GUID. + * @param string $envelope_id The envelope's GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec + * @param string $recipient_id The `recipientId` used when the envelope or template was created. + * @param string $bulk_recipients_request (required) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return array of \DocuSign\eSign\Model\BulkRecipientsSummaryResponse, HTTP status code, HTTP response headers (array of strings) */ - public function updateRecipientsWithHttpInfo($account_id, $envelope_id, $recipient_id, $bulk_recipients_request = null) + public function updateRecipientsWithHttpInfo($account_id, $envelope_id, $recipient_id, $bulk_recipients_request) { // verify the required parameter 'account_id' is set if ($account_id === null) { @@ -824,6 +824,10 @@ public function updateRecipientsWithHttpInfo($account_id, $envelope_id, $recipie if ($recipient_id === null) { throw new \InvalidArgumentException('Missing the required parameter $recipient_id when calling updateRecipients'); } + // verify the required parameter 'bulk_recipients_request' is set + if ($bulk_recipients_request === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_recipients_request when calling updateRecipients'); + } // parse inputs $resourcePath = "/v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients"; $httpBody = ''; diff --git a/src/Api/ConnectApi.php b/src/Api/ConnectApi.php index c5f0d9cc..012e80d2 100644 --- a/src/Api/ConnectApi.php +++ b/src/Api/ConnectApi.php @@ -475,6 +475,92 @@ public function createConfigurationWithHttpInfo($account_id, $connect_custom_con } } + /** + * Operation createConnectSecret + * + * Generates a new connect HMAC Secret. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function createConnectSecret($account_id) + { + list($response) = $this->createConnectSecretWithHttpInfo($account_id); + return $response; + } + + /** + * Operation createConnectSecretWithHttpInfo + * + * Generates a new connect HMAC Secret. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createConnectSecretWithHttpInfo($account_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling createConnectSecret'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/secret"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/accounts/{accountId}/connect/secret' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + /** * Operation deleteConfiguration * @@ -575,6 +661,106 @@ public function deleteConfigurationWithHttpInfo($account_id, $connect_id) } } + /** + * Operation deleteConnectSecret + * + * Delete the connect HMAC Secret for AccountID + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param string $key_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function deleteConnectSecret($account_id, $key_id) + { + list($response) = $this->deleteConnectSecretWithHttpInfo($account_id, $key_id); + return $response; + } + + /** + * Operation deleteConnectSecretWithHttpInfo + * + * Delete the connect HMAC Secret for AccountID + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param string $key_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteConnectSecretWithHttpInfo($account_id, $key_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteConnectSecret'); + } + // verify the required parameter 'key_id' is set + if ($key_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $key_id when calling deleteConnectSecret'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/secret/{keyId}/delete"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // path params + if ($key_id !== null) { + $resourcePath = str_replace( + "{" . "keyId" . "}", + $this->apiClient->getSerializer()->toPathValue($key_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/accounts/{accountId}/connect/secret/{keyId}/delete' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + /** * Operation deleteEventFailureLog * @@ -861,6 +1047,189 @@ public function deleteEventLogsWithHttpInfo($account_id) } } + /** + * Operation deleteMobileNotifiers + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param \DocuSign\eSign\Model\MobileNotifierConfigurationInformation $mobile_notifier_configuration_information (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return \DocuSign\eSign\Model\MobileNotifierConfigurationInformation + */ + public function deleteMobileNotifiers($account_id, $mobile_notifier_configuration_information = null) + { + list($response) = $this->deleteMobileNotifiersWithHttpInfo($account_id, $mobile_notifier_configuration_information); + return $response; + } + + /** + * Operation deleteMobileNotifiersWithHttpInfo + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param \DocuSign\eSign\Model\MobileNotifierConfigurationInformation $mobile_notifier_configuration_information (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\MobileNotifierConfigurationInformation, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteMobileNotifiersWithHttpInfo($account_id, $mobile_notifier_configuration_information = null) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteMobileNotifiers'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/mobile_notifiers"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // body params + $_tempBody = null; + if (isset($mobile_notifier_configuration_information)) { + $_tempBody = $mobile_notifier_configuration_information; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', + '/v2/accounts/{accountId}/connect/mobile_notifiers' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation generateConnectSecret + * + * Generates a new connect HMAC Secret. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function generateConnectSecret($account_id) + { + list($response) = $this->generateConnectSecretWithHttpInfo($account_id); + return $response; + } + + /** + * Operation generateConnectSecretWithHttpInfo + * + * Generates a new connect HMAC Secret. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function generateConnectSecretWithHttpInfo($account_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling generateConnectSecret'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/secret"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/accounts/{accountId}/connect/secret' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + /** * Operation getConfiguration * @@ -919,10 +1288,100 @@ public function getConfigurationWithHttpInfo($account_id, $connect_id) ); } // path params - if ($connect_id !== null) { + if ($connect_id !== null) { + $resourcePath = str_replace( + "{" . "connectId" . "}", + $this->apiClient->getSerializer()->toPathValue($connect_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\ConnectConfigResults', + '/v2/accounts/{accountId}/connect/{connectId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ConnectConfigResults', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ConnectConfigResults', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getConnectSecrets + * + * Get the connect HMAC Secrets for AccountID + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function getConnectSecrets($account_id) + { + list($response) = $this->getConnectSecretsWithHttpInfo($account_id); + return $response; + } + + /** + * Operation getConnectSecretsWithHttpInfo + * + * Get the connect HMAC Secrets for AccountID + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getConnectSecretsWithHttpInfo($account_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getConnectSecrets'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/secrets"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { $resourcePath = str_replace( - "{" . "connectId" . "}", - $this->apiClient->getSerializer()->toPathValue($connect_id), + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), $resourcePath ); } @@ -944,17 +1403,13 @@ public function getConfigurationWithHttpInfo($account_id, $connect_id) $queryParams, $httpBody, $headerParams, - '\DocuSign\eSign\Model\ConnectConfigResults', - '/v2/accounts/{accountId}/connect/{connectId}' + null, + '/v2/accounts/{accountId}/connect/secrets' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ConnectConfigResults', $httpHeader), $statusCode, $httpHeader]; + return [null, $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { - case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ConnectConfigResults', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; case 400: $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); $e->setResponseObject($data); @@ -1377,6 +1832,200 @@ public function listEventLogsWithHttpInfo($account_id, ConnectApi\ListEventLogsO } } + /** + * Operation listMobileNotifiers + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return \DocuSign\eSign\Model\MobileNotifierConfigurationInformation + */ + public function listMobileNotifiers($account_id) + { + list($response) = $this->listMobileNotifiersWithHttpInfo($account_id); + return $response; + } + + /** + * Operation listMobileNotifiersWithHttpInfo + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\MobileNotifierConfigurationInformation, HTTP status code, HTTP response headers (array of strings) + */ + public function listMobileNotifiersWithHttpInfo($account_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling listMobileNotifiers'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/mobile_notifiers"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', + '/v2/accounts/{accountId}/connect/mobile_notifiers' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation listTests + * + * Test connect configuration. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param string $connect_id The ID of the custom Connect configuration being accessed. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return \DocuSign\eSign\Model\ResourceInformation + */ + public function listTests($account_id, $connect_id) + { + list($response) = $this->listTestsWithHttpInfo($account_id, $connect_id); + return $response; + } + + /** + * Operation listTestsWithHttpInfo + * + * Test connect configuration. + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param string $connect_id The ID of the custom Connect configuration being accessed. + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\ResourceInformation, HTTP status code, HTTP response headers (array of strings) + */ + public function listTestsWithHttpInfo($account_id, $connect_id) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling listTests'); + } + // verify the required parameter 'connect_id' is set + if ($connect_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_id when calling listTests'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/{connectId}/tests"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // path params + if ($connect_id !== null) { + $resourcePath = str_replace( + "{" . "connectId" . "}", + $this->apiClient->getSerializer()->toPathValue($connect_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\ResourceInformation', + '/v2/accounts/{accountId}/connect/{connectId}/tests' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ResourceInformation', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ResourceInformation', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + /** * Operation listUsers * @@ -1808,4 +2457,101 @@ public function updateConfigurationWithHttpInfo($account_id, $connect_custom_con throw $e; } } + + /** + * Operation updateMobileNotifiers + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param \DocuSign\eSign\Model\MobileNotifierConfigurationInformation $mobile_notifier_configuration_information (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return \DocuSign\eSign\Model\MobileNotifierConfigurationInformation + */ + public function updateMobileNotifiers($account_id, $mobile_notifier_configuration_information = null) + { + list($response) = $this->updateMobileNotifiersWithHttpInfo($account_id, $mobile_notifier_configuration_information); + return $response; + } + + /** + * Operation updateMobileNotifiersWithHttpInfo + * + * Reserved + * + * @param string $account_id The external account number (int) or account ID Guid. + * @param \DocuSign\eSign\Model\MobileNotifierConfigurationInformation $mobile_notifier_configuration_information (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\MobileNotifierConfigurationInformation, HTTP status code, HTTP response headers (array of strings) + */ + public function updateMobileNotifiersWithHttpInfo($account_id, $mobile_notifier_configuration_information = null) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling updateMobileNotifiers'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/connect/mobile_notifiers"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // body params + $_tempBody = null; + if (isset($mobile_notifier_configuration_information)) { + $_tempBody = $mobile_notifier_configuration_information; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'PUT', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', + '/v2/accounts/{accountId}/connect/mobile_notifiers' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\MobileNotifierConfigurationInformation', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } } diff --git a/src/Api/EnvelopesApi.php b/src/Api/EnvelopesApi.php index 68842b17..ddc8c8fe 100644 --- a/src/Api/EnvelopesApi.php +++ b/src/Api/EnvelopesApi.php @@ -130,6 +130,31 @@ public function setMergeRolesOnDraft($merge_roles_on_draft) $this->merge_roles_on_draft = $merge_roles_on_draft; return $this; } + /** + * $tab_label_exact_matches + * @var string + */ + protected $tab_label_exact_matches; + + /** + * Gets tab_label_exact_matches + * @return string + */ + public function getTabLabelExactMatches() + { + return $this->tab_label_exact_matches; + } + + /** + * Sets tab_label_exact_matches + * @param string $tab_label_exact_matches + * @return $this + */ + public function setTabLabelExactMatches($tab_label_exact_matches) + { + $this->tab_label_exact_matches = $tab_label_exact_matches; + return $this; + } } class CreateRecipientOptions { @@ -187,6 +212,34 @@ public function setInclude($include) return $this; } } +class GetCommentsTranscriptOptions +{ + /** + * $encoding + * @var string + */ + protected $encoding; + + /** + * Gets encoding + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Sets encoding + * @param string $encoding + * @return $this + */ + public function setEncoding($encoding) + { + $this->encoding = $encoding; + return $this; + } +} class GetConsumerDisclosureOptions { /** @@ -839,6 +892,34 @@ public function setIncludeChrome($include_chrome) return $this; } } +class ListDocumentsOptions +{ + /** + * $include_document_size + * @var string + */ + protected $include_document_size; + + /** + * Gets include_document_size + * @return string + */ + public function getIncludeDocumentSize() + { + return $this->include_document_size; + } + + /** + * Sets include_document_size + * @param string $include_document_size + * @return $this + */ + public function setIncludeDocumentSize($include_document_size) + { + $this->include_document_size = $include_document_size; + return $this; + } +} class ListRecipientsOptions { /** @@ -3124,6 +3205,10 @@ public function createEnvelopeWithHttpInfo($account_id, $envelope_definition = n if ($options->getMergeRolesOnDraft() !== null) { $queryParams['merge_roles_on_draft'] = $this->apiClient->getSerializer()->toQueryValue($options->getMergeRolesOnDraft()); } + // query params + if ($options->getTabLabelExactMatches() !== null) { + $queryParams['tab_label_exact_matches'] = $this->apiClient->getSerializer()->toQueryValue($options->getTabLabelExactMatches()); + } } // path params @@ -5691,6 +5776,120 @@ public function getChunkedUploadWithHttpInfo($account_id, $chunked_upload_id, En } } + /** + * Operation getCommentsTranscript + * + * Gets comment transcript for envelope and user + * + * @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 $options Options for modifying the behavior of the function. (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return \SplFileObject + */ + public function getCommentsTranscript($account_id, $envelope_id, EnvelopesApi\GetCommentsTranscriptOptions $options = null) + { + list($response) = $this->getCommentsTranscriptWithHttpInfo($account_id, $envelope_id, $options); + return $response; + } + + /** + * Operation getCommentsTranscriptWithHttpInfo + * + * Gets comment transcript for envelope and user + * + * @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 $options Options for modifying the behavior of the function. (optional) + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) + */ + public function getCommentsTranscriptWithHttpInfo($account_id, $envelope_id, EnvelopesApi\GetCommentsTranscriptOptions $options = null) + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getCommentsTranscript'); + } + // verify the required parameter 'envelope_id' is set + if ($envelope_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $envelope_id when calling getCommentsTranscript'); + } + // parse inputs + $resourcePath = "/v2/accounts/{accountId}/envelopes/{envelopeId}/comments/transcript"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/pdf']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + if ($options != null) + { + // query params + // query params + if ($options->getEncoding() !== null) { + $queryParams['encoding'] = $this->apiClient->getSerializer()->toQueryValue($options->getEncoding()); + } + } + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + "{" . "accountId" . "}", + $this->apiClient->getSerializer()->toPathValue($account_id), + $resourcePath + ); + } + // path params + if ($envelope_id !== null) { + $resourcePath = str_replace( + "{" . "envelopeId" . "}", + $this->apiClient->getSerializer()->toPathValue($envelope_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\SplFileObject', + '/v2/accounts/{accountId}/envelopes/{envelopeId}/comments/transcript' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\SplFileObject', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\SplFileObject', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + /** * Operation getConsumerDisclosure * @@ -5698,7 +5897,7 @@ public function getChunkedUploadWithHttpInfo($account_id, $chunked_upload_id, En * * @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), 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 $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response @@ -5717,7 +5916,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), 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 $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response @@ -8378,12 +8577,13 @@ public function listDocumentFieldsWithHttpInfo($account_id, $document_id, $envel * * @param string $account_id The external account number (int) or account ID Guid. * @param string $envelope_id The envelopeId Guid of the envelope being accessed. + * @param $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return \DocuSign\eSign\Model\EnvelopeDocumentsResult */ - public function listDocuments($account_id, $envelope_id) + public function listDocuments($account_id, $envelope_id, EnvelopesApi\ListDocumentsOptions $options = null) { - list($response) = $this->listDocumentsWithHttpInfo($account_id, $envelope_id); + list($response) = $this->listDocumentsWithHttpInfo($account_id, $envelope_id, $options); return $response; } @@ -8394,10 +8594,11 @@ public function listDocuments($account_id, $envelope_id) * * @param string $account_id The external account number (int) or account ID Guid. * @param string $envelope_id The envelopeId Guid of the envelope being accessed. + * @param $options Options for modifying the behavior of the function. (optional) * @throws \DocuSign\eSign\Client\ApiException on non-2xx response * @return array of \DocuSign\eSign\Model\EnvelopeDocumentsResult, HTTP status code, HTTP response headers (array of strings) */ - public function listDocumentsWithHttpInfo($account_id, $envelope_id) + public function listDocumentsWithHttpInfo($account_id, $envelope_id, EnvelopesApi\ListDocumentsOptions $options = null) { // verify the required parameter 'account_id' is set if ($account_id === null) { @@ -8419,6 +8620,14 @@ public function listDocumentsWithHttpInfo($account_id, $envelope_id) } $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + if ($options != null) + { + // query params + // query params + if ($options->getIncludeDocumentSize() !== null) { + $queryParams['include_document_size'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeDocumentSize()); + } + } // path params if ($account_id !== null) { diff --git a/src/Api/OrganizationsApi.php b/src/Api/OrganizationsApi.php new file mode 100644 index 00000000..360ff6ca --- /dev/null +++ b/src/Api/OrganizationsApi.php @@ -0,0 +1,493 @@ +apiClient = $apiClient; + } + + /** + * Get API client + * + * @return \DocuSign\eSign\Client\ApiClient get the API client + */ + public function getApiClient() + { + return $this->apiClient; + } + + /** + * Set the API client + * + * @param \DocuSign\eSign\Client\ApiClient $apiClient set the API client + * + * @return OrganizationsApi + */ + public function setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) + { + $this->apiClient = $apiClient; + return $this; + } + + /** + * Operation deleteReport + * + * Retrieves org level report by correlation id and site. + * + * @param string $organization_id + * @param string $report_correlation_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function deleteReport($organization_id, $report_correlation_id) + { + list($response) = $this->deleteReportWithHttpInfo($organization_id, $report_correlation_id); + return $response; + } + + /** + * Operation deleteReportWithHttpInfo + * + * Retrieves org level report by correlation id and site. + * + * @param string $organization_id + * @param string $report_correlation_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteReportWithHttpInfo($organization_id, $report_correlation_id) + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling deleteReport'); + } + // verify the required parameter 'report_correlation_id' is set + if ($report_correlation_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $report_correlation_id when calling deleteReport'); + } + // parse inputs + $resourcePath = "/v2/organization_reporting/{organizationId}/reports/{reportCorrelationId}"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($organization_id !== null) { + $resourcePath = str_replace( + "{" . "organizationId" . "}", + $this->apiClient->getSerializer()->toPathValue($organization_id), + $resourcePath + ); + } + // path params + if ($report_correlation_id !== null) { + $resourcePath = str_replace( + "{" . "reportCorrelationId" . "}", + $this->apiClient->getSerializer()->toPathValue($report_correlation_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/organization_reporting/{organizationId}/reports/{reportCorrelationId}' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getAccountSettingsExport + * + * Retrieves an account settings comparison. + * + * @param string $organization_id + * @param string $result_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function getAccountSettingsExport($organization_id, $result_id) + { + list($response) = $this->getAccountSettingsExportWithHttpInfo($organization_id, $result_id); + return $response; + } + + /** + * Operation getAccountSettingsExportWithHttpInfo + * + * Retrieves an account settings comparison. + * + * @param string $organization_id + * @param string $result_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getAccountSettingsExportWithHttpInfo($organization_id, $result_id) + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getAccountSettingsExport'); + } + // verify the required parameter 'result_id' is set + if ($result_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $result_id when calling getAccountSettingsExport'); + } + // parse inputs + $resourcePath = "/v2/organization_exports/{organizationId}/account_settings/{resultId}"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($organization_id !== null) { + $resourcePath = str_replace( + "{" . "organizationId" . "}", + $this->apiClient->getSerializer()->toPathValue($organization_id), + $resourcePath + ); + } + // path params + if ($result_id !== null) { + $resourcePath = str_replace( + "{" . "resultId" . "}", + $this->apiClient->getSerializer()->toPathValue($result_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/organization_exports/{organizationId}/account_settings/{resultId}' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getReport + * + * Retrieves org level report by correlation id and site. + * + * @param string $organization_id + * @param string $report_correlation_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function getReport($organization_id, $report_correlation_id) + { + list($response) = $this->getReportWithHttpInfo($organization_id, $report_correlation_id); + return $response; + } + + /** + * Operation getReportWithHttpInfo + * + * Retrieves org level report by correlation id and site. + * + * @param string $organization_id + * @param string $report_correlation_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getReportWithHttpInfo($organization_id, $report_correlation_id) + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getReport'); + } + // verify the required parameter 'report_correlation_id' is set + if ($report_correlation_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $report_correlation_id when calling getReport'); + } + // parse inputs + $resourcePath = "/v2/organization_reporting/{organizationId}/reports/{reportCorrelationId}"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($organization_id !== null) { + $resourcePath = str_replace( + "{" . "organizationId" . "}", + $this->apiClient->getSerializer()->toPathValue($organization_id), + $resourcePath + ); + } + // path params + if ($report_correlation_id !== null) { + $resourcePath = str_replace( + "{" . "reportCorrelationId" . "}", + $this->apiClient->getSerializer()->toPathValue($report_correlation_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/organization_reporting/{organizationId}/reports/{reportCorrelationId}' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getUserListExport + * + * Retrieves UserList Export Results data. + * + * @param string $organization_id + * @param string $result_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return void + */ + public function getUserListExport($organization_id, $result_id) + { + list($response) = $this->getUserListExportWithHttpInfo($organization_id, $result_id); + return $response; + } + + /** + * Operation getUserListExportWithHttpInfo + * + * Retrieves UserList Export Results data. + * + * @param string $organization_id + * @param string $result_id + * @throws \DocuSign\eSign\Client\ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getUserListExportWithHttpInfo($organization_id, $result_id) + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getUserListExport'); + } + // verify the required parameter 'result_id' is set + if ($result_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $result_id when calling getUserListExport'); + } + // parse inputs + $resourcePath = "/v2/organization_exports/{organizationId}/user_list/{resultId}"; + $httpBody = ''; + $queryParams = []; + $headerParams = []; + $formParams = []; + $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); + if (!is_null($_header_accept)) { + $headerParams['Accept'] = $_header_accept; + } + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($organization_id !== null) { + $resourcePath = str_replace( + "{" . "organizationId" . "}", + $this->apiClient->getSerializer()->toPathValue($organization_id), + $resourcePath + ); + } + // path params + if ($result_id !== null) { + $resourcePath = str_replace( + "{" . "resultId" . "}", + $this->apiClient->getSerializer()->toPathValue($result_id), + $resourcePath + ); + } + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2/organization_exports/{organizationId}/user_list/{resultId}' + ); + + return [null, $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } +} diff --git a/src/Api/TrustServiceProvidersApi.php b/src/Api/TrustServiceProvidersApi.php deleted file mode 100644 index 51b6a1f3..00000000 --- a/src/Api/TrustServiceProvidersApi.php +++ /dev/null @@ -1,183 +0,0 @@ -apiClient = $apiClient; - } - - /** - * Get API client - * - * @return \DocuSign\eSign\Client\ApiClient get the API client - */ - public function getApiClient() - { - return $this->apiClient; - } - - /** - * Set the API client - * - * @param \DocuSign\eSign\Client\ApiClient $apiClient set the API client - * - * @return TrustServiceProvidersApi - */ - public function setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) - { - $this->apiClient = $apiClient; - return $this; - } - - /** - * Operation getSealProviders - * - * Returns Account available seals for specified account. - * - * @param string $account_id The external account number (int) or account ID Guid. - * @throws \DocuSign\eSign\Client\ApiException on non-2xx response - * @return \DocuSign\eSign\Model\AccountSeals - */ - public function getSealProviders($account_id) - { - list($response) = $this->getSealProvidersWithHttpInfo($account_id); - return $response; - } - - /** - * Operation getSealProvidersWithHttpInfo - * - * Returns Account available seals for specified account. - * - * @param string $account_id The external account number (int) or account ID Guid. - * @throws \DocuSign\eSign\Client\ApiException on non-2xx response - * @return array of \DocuSign\eSign\Model\AccountSeals, HTTP status code, HTTP response headers (array of strings) - */ - public function getSealProvidersWithHttpInfo($account_id) - { - // verify the required parameter 'account_id' is set - if ($account_id === null) { - throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getSealProviders'); - } - // parse inputs - $resourcePath = "/v2/accounts/{accountId}/seals"; - $httpBody = ''; - $queryParams = []; - $headerParams = []; - $formParams = []; - $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']); - if (!is_null($_header_accept)) { - $headerParams['Accept'] = $_header_accept; - } - $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); - - - // path params - if ($account_id !== null) { - $resourcePath = str_replace( - "{" . "accountId" . "}", - $this->apiClient->getSerializer()->toPathValue($account_id), - $resourcePath - ); - } - // default format to json - $resourcePath = str_replace("{format}", "json", $resourcePath); - - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - } elseif (count($formParams) > 0) { - $httpBody = $formParams; // for HTTP post (form) - } - // make the API Call - try { - list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( - $resourcePath, - 'GET', - $queryParams, - $httpBody, - $headerParams, - '\DocuSign\eSign\Model\AccountSeals', - '/v2/accounts/{accountId}/seals' - ); - - return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\AccountSeals', $httpHeader), $statusCode, $httpHeader]; - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\AccountSeals', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); - $e->setResponseObject($data); - break; - } - - throw $e; - } - } -} diff --git a/src/Configuration.php b/src/Configuration.php index 39987da6..806ee017 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -109,7 +109,7 @@ class Configuration * * @var string */ - protected $userAgent = "Swagger-Codegen/2.0.1/php"; + protected $userAgent = "Swagger-Codegen/4.2.0-rc/php"; /** * Debug switch (default set to false) @@ -695,7 +695,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . phpversion() . PHP_EOL; $report .= ' OpenAPI Spec Version: v2' . PHP_EOL; - $report .= ' SDK Package Version: 2.0.1' . PHP_EOL; + $report .= ' SDK Package Version: 4.2.0-rc' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/Model/AccountRoleSettings.php b/src/Model/AccountRoleSettings.php index 73f311b4..13db555f 100644 --- a/src/Model/AccountRoleSettings.php +++ b/src/Model/AccountRoleSettings.php @@ -64,6 +64,8 @@ class AccountRoleSettings implements ArrayAccess 'allow_api_sending_on_behalf_of_others_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_api_sequential_signing' => 'string', 'allow_api_sequential_signing_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'allow_auto_tagging' => 'string', + 'allow_auto_tagging_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_bulk_sending' => 'string', 'allow_bulk_sending_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_docu_sign_desktop_client' => 'string', @@ -144,6 +146,8 @@ public static function swaggerTypes() 'allow_api_sending_on_behalf_of_others_metadata' => 'allowApiSendingOnBehalfOfOthersMetadata', 'allow_api_sequential_signing' => 'allowApiSequentialSigning', 'allow_api_sequential_signing_metadata' => 'allowApiSequentialSigningMetadata', + 'allow_auto_tagging' => 'allowAutoTagging', + 'allow_auto_tagging_metadata' => 'allowAutoTaggingMetadata', 'allow_bulk_sending' => 'allowBulkSending', 'allow_bulk_sending_metadata' => 'allowBulkSendingMetadata', 'allow_docu_sign_desktop_client' => 'allowDocuSignDesktopClient', @@ -220,6 +224,8 @@ public static function swaggerTypes() 'allow_api_sending_on_behalf_of_others_metadata' => 'setAllowApiSendingOnBehalfOfOthersMetadata', 'allow_api_sequential_signing' => 'setAllowApiSequentialSigning', 'allow_api_sequential_signing_metadata' => 'setAllowApiSequentialSigningMetadata', + 'allow_auto_tagging' => 'setAllowAutoTagging', + 'allow_auto_tagging_metadata' => 'setAllowAutoTaggingMetadata', 'allow_bulk_sending' => 'setAllowBulkSending', 'allow_bulk_sending_metadata' => 'setAllowBulkSendingMetadata', 'allow_docu_sign_desktop_client' => 'setAllowDocuSignDesktopClient', @@ -296,6 +302,8 @@ public static function swaggerTypes() 'allow_api_sending_on_behalf_of_others_metadata' => 'getAllowApiSendingOnBehalfOfOthersMetadata', 'allow_api_sequential_signing' => 'getAllowApiSequentialSigning', 'allow_api_sequential_signing_metadata' => 'getAllowApiSequentialSigningMetadata', + 'allow_auto_tagging' => 'getAllowAutoTagging', + 'allow_auto_tagging_metadata' => 'getAllowAutoTaggingMetadata', 'allow_bulk_sending' => 'getAllowBulkSending', 'allow_bulk_sending_metadata' => 'getAllowBulkSendingMetadata', 'allow_docu_sign_desktop_client' => 'getAllowDocuSignDesktopClient', @@ -397,6 +405,8 @@ public function __construct(array $data = null) $this->container['allow_api_sending_on_behalf_of_others_metadata'] = isset($data['allow_api_sending_on_behalf_of_others_metadata']) ? $data['allow_api_sending_on_behalf_of_others_metadata'] : null; $this->container['allow_api_sequential_signing'] = isset($data['allow_api_sequential_signing']) ? $data['allow_api_sequential_signing'] : null; $this->container['allow_api_sequential_signing_metadata'] = isset($data['allow_api_sequential_signing_metadata']) ? $data['allow_api_sequential_signing_metadata'] : null; + $this->container['allow_auto_tagging'] = isset($data['allow_auto_tagging']) ? $data['allow_auto_tagging'] : null; + $this->container['allow_auto_tagging_metadata'] = isset($data['allow_auto_tagging_metadata']) ? $data['allow_auto_tagging_metadata'] : null; $this->container['allow_bulk_sending'] = isset($data['allow_bulk_sending']) ? $data['allow_bulk_sending'] : null; $this->container['allow_bulk_sending_metadata'] = isset($data['allow_bulk_sending_metadata']) ? $data['allow_bulk_sending_metadata'] : null; $this->container['allow_docu_sign_desktop_client'] = isset($data['allow_docu_sign_desktop_client']) ? $data['allow_docu_sign_desktop_client'] : null; @@ -690,6 +700,48 @@ public function setAllowApiSequentialSigningMetadata($allow_api_sequential_signi return $this; } + /** + * Gets allow_auto_tagging + * @return string + */ + public function getAllowAutoTagging() + { + return $this->container['allow_auto_tagging']; + } + + /** + * Sets allow_auto_tagging + * @param string $allow_auto_tagging + * @return $this + */ + public function setAllowAutoTagging($allow_auto_tagging) + { + $this->container['allow_auto_tagging'] = $allow_auto_tagging; + + return $this; + } + + /** + * Gets allow_auto_tagging_metadata + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getAllowAutoTaggingMetadata() + { + return $this->container['allow_auto_tagging_metadata']; + } + + /** + * Sets allow_auto_tagging_metadata + * @param \DocuSign\eSign\Model\SettingsMetadata $allow_auto_tagging_metadata + * @return $this + */ + public function setAllowAutoTaggingMetadata($allow_auto_tagging_metadata) + { + $this->container['allow_auto_tagging_metadata'] = $allow_auto_tagging_metadata; + + return $this; + } + /** * Gets allow_bulk_sending * @return string diff --git a/src/Model/AuthenticationStatus.php b/src/Model/AuthenticationStatus.php index 38109a94..4dadbdbb 100644 --- a/src/Model/AuthenticationStatus.php +++ b/src/Model/AuthenticationStatus.php @@ -60,6 +60,7 @@ class AuthenticationStatus implements ArrayAccess 'any_social_id_result' => '\DocuSign\eSign\Model\EventResult', 'facebook_result' => '\DocuSign\eSign\Model\EventResult', 'google_result' => '\DocuSign\eSign\Model\EventResult', + 'identity_verification_result' => '\DocuSign\eSign\Model\EventResult', 'id_lookup_result' => '\DocuSign\eSign\Model\EventResult', 'id_questions_result' => '\DocuSign\eSign\Model\EventResult', 'linkedin_result' => '\DocuSign\eSign\Model\EventResult', @@ -90,6 +91,7 @@ public static function swaggerTypes() 'any_social_id_result' => 'anySocialIDResult', 'facebook_result' => 'facebookResult', 'google_result' => 'googleResult', + 'identity_verification_result' => 'identityVerificationResult', 'id_lookup_result' => 'idLookupResult', 'id_questions_result' => 'idQuestionsResult', 'linkedin_result' => 'linkedinResult', @@ -116,6 +118,7 @@ public static function swaggerTypes() 'any_social_id_result' => 'setAnySocialIdResult', 'facebook_result' => 'setFacebookResult', 'google_result' => 'setGoogleResult', + 'identity_verification_result' => 'setIdentityVerificationResult', 'id_lookup_result' => 'setIdLookupResult', 'id_questions_result' => 'setIdQuestionsResult', 'linkedin_result' => 'setLinkedinResult', @@ -142,6 +145,7 @@ public static function swaggerTypes() 'any_social_id_result' => 'getAnySocialIdResult', 'facebook_result' => 'getFacebookResult', 'google_result' => 'getGoogleResult', + 'identity_verification_result' => 'getIdentityVerificationResult', 'id_lookup_result' => 'getIdLookupResult', 'id_questions_result' => 'getIdQuestionsResult', 'linkedin_result' => 'getLinkedinResult', @@ -193,6 +197,7 @@ public function __construct(array $data = null) $this->container['any_social_id_result'] = isset($data['any_social_id_result']) ? $data['any_social_id_result'] : null; $this->container['facebook_result'] = isset($data['facebook_result']) ? $data['facebook_result'] : null; $this->container['google_result'] = isset($data['google_result']) ? $data['google_result'] : null; + $this->container['identity_verification_result'] = isset($data['identity_verification_result']) ? $data['identity_verification_result'] : null; $this->container['id_lookup_result'] = isset($data['id_lookup_result']) ? $data['id_lookup_result'] : null; $this->container['id_questions_result'] = isset($data['id_questions_result']) ? $data['id_questions_result'] : null; $this->container['linkedin_result'] = isset($data['linkedin_result']) ? $data['linkedin_result'] : null; @@ -336,6 +341,27 @@ public function setGoogleResult($google_result) return $this; } + /** + * Gets identity_verification_result + * @return \DocuSign\eSign\Model\EventResult + */ + public function getIdentityVerificationResult() + { + return $this->container['identity_verification_result']; + } + + /** + * Sets identity_verification_result + * @param \DocuSign\eSign\Model\EventResult $identity_verification_result + * @return $this + */ + public function setIdentityVerificationResult($identity_verification_result) + { + $this->container['identity_verification_result'] = $identity_verification_result; + + return $this; + } + /** * Gets id_lookup_result * @return \DocuSign\eSign\Model\EventResult diff --git a/src/Model/CarbonCopy.php b/src/Model/CarbonCopy.php index 2018aaa7..fbeca14a 100644 --- a/src/Model/CarbonCopy.php +++ b/src/Model/CarbonCopy.php @@ -76,11 +76,13 @@ class CarbonCopy implements ArrayAccess 'full_name' => 'string', 'id_check_configuration_name' => 'string', 'id_check_information_input' => '\DocuSign\eSign\Model\IdCheckInformationInput', + 'identity_verification' => '\DocuSign\eSign\Model\RecipientIdentityVerification', 'inherit_email_notification_configuration' => 'string', 'last_name' => 'string', 'name' => 'string', 'note' => 'string', 'phone_authentication' => '\DocuSign\eSign\Model\RecipientPhoneAuthentication', + 'proof_file' => '\DocuSign\eSign\Model\RecipientProofFile', 'recipient_attachments' => '\DocuSign\eSign\Model\RecipientAttachment[]', 'recipient_authentication_status' => '\DocuSign\eSign\Model\AuthenticationStatus', 'recipient_id' => 'string', @@ -135,11 +137,13 @@ public static function swaggerTypes() 'full_name' => 'fullName', 'id_check_configuration_name' => 'idCheckConfigurationName', 'id_check_information_input' => 'idCheckInformationInput', + 'identity_verification' => 'identityVerification', 'inherit_email_notification_configuration' => 'inheritEmailNotificationConfiguration', 'last_name' => 'lastName', 'name' => 'name', 'note' => 'note', 'phone_authentication' => 'phoneAuthentication', + 'proof_file' => 'proofFile', 'recipient_attachments' => 'recipientAttachments', 'recipient_authentication_status' => 'recipientAuthenticationStatus', 'recipient_id' => 'recipientId', @@ -190,11 +194,13 @@ public static function swaggerTypes() 'full_name' => 'setFullName', 'id_check_configuration_name' => 'setIdCheckConfigurationName', 'id_check_information_input' => 'setIdCheckInformationInput', + 'identity_verification' => 'setIdentityVerification', 'inherit_email_notification_configuration' => 'setInheritEmailNotificationConfiguration', 'last_name' => 'setLastName', 'name' => 'setName', 'note' => 'setNote', 'phone_authentication' => 'setPhoneAuthentication', + 'proof_file' => 'setProofFile', 'recipient_attachments' => 'setRecipientAttachments', 'recipient_authentication_status' => 'setRecipientAuthenticationStatus', 'recipient_id' => 'setRecipientId', @@ -245,11 +251,13 @@ public static function swaggerTypes() 'full_name' => 'getFullName', 'id_check_configuration_name' => 'getIdCheckConfigurationName', 'id_check_information_input' => 'getIdCheckInformationInput', + 'identity_verification' => 'getIdentityVerification', 'inherit_email_notification_configuration' => 'getInheritEmailNotificationConfiguration', 'last_name' => 'getLastName', 'name' => 'getName', 'note' => 'getNote', 'phone_authentication' => 'getPhoneAuthentication', + 'proof_file' => 'getProofFile', 'recipient_attachments' => 'getRecipientAttachments', 'recipient_authentication_status' => 'getRecipientAuthenticationStatus', 'recipient_id' => 'getRecipientId', @@ -325,11 +333,13 @@ public function __construct(array $data = null) $this->container['full_name'] = isset($data['full_name']) ? $data['full_name'] : null; $this->container['id_check_configuration_name'] = isset($data['id_check_configuration_name']) ? $data['id_check_configuration_name'] : null; $this->container['id_check_information_input'] = isset($data['id_check_information_input']) ? $data['id_check_information_input'] : null; + $this->container['identity_verification'] = isset($data['identity_verification']) ? $data['identity_verification'] : null; $this->container['inherit_email_notification_configuration'] = isset($data['inherit_email_notification_configuration']) ? $data['inherit_email_notification_configuration'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['note'] = isset($data['note']) ? $data['note'] : null; $this->container['phone_authentication'] = isset($data['phone_authentication']) ? $data['phone_authentication'] : null; + $this->container['proof_file'] = isset($data['proof_file']) ? $data['proof_file'] : null; $this->container['recipient_attachments'] = isset($data['recipient_attachments']) ? $data['recipient_attachments'] : null; $this->container['recipient_authentication_status'] = isset($data['recipient_authentication_status']) ? $data['recipient_authentication_status'] : null; $this->container['recipient_id'] = isset($data['recipient_id']) ? $data['recipient_id'] : null; @@ -837,6 +847,27 @@ public function setIdCheckInformationInput($id_check_information_input) return $this; } + /** + * Gets identity_verification + * @return \DocuSign\eSign\Model\RecipientIdentityVerification + */ + public function getIdentityVerification() + { + return $this->container['identity_verification']; + } + + /** + * Sets identity_verification + * @param \DocuSign\eSign\Model\RecipientIdentityVerification $identity_verification + * @return $this + */ + public function setIdentityVerification($identity_verification) + { + $this->container['identity_verification'] = $identity_verification; + + return $this; + } + /** * Gets inherit_email_notification_configuration * @return string @@ -942,6 +973,27 @@ public function setPhoneAuthentication($phone_authentication) return $this; } + /** + * Gets proof_file + * @return \DocuSign\eSign\Model\RecipientProofFile + */ + public function getProofFile() + { + return $this->container['proof_file']; + } + + /** + * Sets proof_file + * @param \DocuSign\eSign\Model\RecipientProofFile $proof_file + * @return $this + */ + public function setProofFile($proof_file) + { + $this->container['proof_file'] = $proof_file; + + return $this; + } + /** * Gets recipient_attachments * @return \DocuSign\eSign\Model\RecipientAttachment[] diff --git a/src/Model/CertifiedDelivery.php b/src/Model/CertifiedDelivery.php index 1a6e4b30..e3c320f8 100644 --- a/src/Model/CertifiedDelivery.php +++ b/src/Model/CertifiedDelivery.php @@ -76,11 +76,13 @@ class CertifiedDelivery implements ArrayAccess 'full_name' => 'string', 'id_check_configuration_name' => 'string', 'id_check_information_input' => '\DocuSign\eSign\Model\IdCheckInformationInput', + 'identity_verification' => '\DocuSign\eSign\Model\RecipientIdentityVerification', 'inherit_email_notification_configuration' => 'string', 'last_name' => 'string', 'name' => 'string', 'note' => 'string', 'phone_authentication' => '\DocuSign\eSign\Model\RecipientPhoneAuthentication', + 'proof_file' => '\DocuSign\eSign\Model\RecipientProofFile', 'recipient_attachments' => '\DocuSign\eSign\Model\RecipientAttachment[]', 'recipient_authentication_status' => '\DocuSign\eSign\Model\AuthenticationStatus', 'recipient_id' => 'string', @@ -135,11 +137,13 @@ public static function swaggerTypes() 'full_name' => 'fullName', 'id_check_configuration_name' => 'idCheckConfigurationName', 'id_check_information_input' => 'idCheckInformationInput', + 'identity_verification' => 'identityVerification', 'inherit_email_notification_configuration' => 'inheritEmailNotificationConfiguration', 'last_name' => 'lastName', 'name' => 'name', 'note' => 'note', 'phone_authentication' => 'phoneAuthentication', + 'proof_file' => 'proofFile', 'recipient_attachments' => 'recipientAttachments', 'recipient_authentication_status' => 'recipientAuthenticationStatus', 'recipient_id' => 'recipientId', @@ -190,11 +194,13 @@ public static function swaggerTypes() 'full_name' => 'setFullName', 'id_check_configuration_name' => 'setIdCheckConfigurationName', 'id_check_information_input' => 'setIdCheckInformationInput', + 'identity_verification' => 'setIdentityVerification', 'inherit_email_notification_configuration' => 'setInheritEmailNotificationConfiguration', 'last_name' => 'setLastName', 'name' => 'setName', 'note' => 'setNote', 'phone_authentication' => 'setPhoneAuthentication', + 'proof_file' => 'setProofFile', 'recipient_attachments' => 'setRecipientAttachments', 'recipient_authentication_status' => 'setRecipientAuthenticationStatus', 'recipient_id' => 'setRecipientId', @@ -245,11 +251,13 @@ public static function swaggerTypes() 'full_name' => 'getFullName', 'id_check_configuration_name' => 'getIdCheckConfigurationName', 'id_check_information_input' => 'getIdCheckInformationInput', + 'identity_verification' => 'getIdentityVerification', 'inherit_email_notification_configuration' => 'getInheritEmailNotificationConfiguration', 'last_name' => 'getLastName', 'name' => 'getName', 'note' => 'getNote', 'phone_authentication' => 'getPhoneAuthentication', + 'proof_file' => 'getProofFile', 'recipient_attachments' => 'getRecipientAttachments', 'recipient_authentication_status' => 'getRecipientAuthenticationStatus', 'recipient_id' => 'getRecipientId', @@ -325,11 +333,13 @@ public function __construct(array $data = null) $this->container['full_name'] = isset($data['full_name']) ? $data['full_name'] : null; $this->container['id_check_configuration_name'] = isset($data['id_check_configuration_name']) ? $data['id_check_configuration_name'] : null; $this->container['id_check_information_input'] = isset($data['id_check_information_input']) ? $data['id_check_information_input'] : null; + $this->container['identity_verification'] = isset($data['identity_verification']) ? $data['identity_verification'] : null; $this->container['inherit_email_notification_configuration'] = isset($data['inherit_email_notification_configuration']) ? $data['inherit_email_notification_configuration'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['note'] = isset($data['note']) ? $data['note'] : null; $this->container['phone_authentication'] = isset($data['phone_authentication']) ? $data['phone_authentication'] : null; + $this->container['proof_file'] = isset($data['proof_file']) ? $data['proof_file'] : null; $this->container['recipient_attachments'] = isset($data['recipient_attachments']) ? $data['recipient_attachments'] : null; $this->container['recipient_authentication_status'] = isset($data['recipient_authentication_status']) ? $data['recipient_authentication_status'] : null; $this->container['recipient_id'] = isset($data['recipient_id']) ? $data['recipient_id'] : null; @@ -837,6 +847,27 @@ public function setIdCheckInformationInput($id_check_information_input) return $this; } + /** + * Gets identity_verification + * @return \DocuSign\eSign\Model\RecipientIdentityVerification + */ + public function getIdentityVerification() + { + return $this->container['identity_verification']; + } + + /** + * Sets identity_verification + * @param \DocuSign\eSign\Model\RecipientIdentityVerification $identity_verification + * @return $this + */ + public function setIdentityVerification($identity_verification) + { + $this->container['identity_verification'] = $identity_verification; + + return $this; + } + /** * Gets inherit_email_notification_configuration * @return string @@ -942,6 +973,27 @@ public function setPhoneAuthentication($phone_authentication) return $this; } + /** + * Gets proof_file + * @return \DocuSign\eSign\Model\RecipientProofFile + */ + public function getProofFile() + { + return $this->container['proof_file']; + } + + /** + * Sets proof_file + * @param \DocuSign\eSign\Model\RecipientProofFile $proof_file + * @return $this + */ + public function setProofFile($proof_file) + { + $this->container['proof_file'] = $proof_file; + + return $this; + } + /** * Gets recipient_attachments * @return \DocuSign\eSign\Model\RecipientAttachment[] diff --git a/src/Model/Document.php b/src/Model/Document.php index 8a10fdbe..07ae9004 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -59,7 +59,6 @@ class Document implements ArrayAccess 'display' => 'string', 'document_base64' => 'string', 'document_fields' => '\DocuSign\eSign\Model\NameValue[]', - 'document_group' => 'string', 'document_id' => 'string', 'encrypted_with_key_manager' => 'string', 'file_extension' => 'string', @@ -94,7 +93,6 @@ public static function swaggerTypes() 'display' => 'display', 'document_base64' => 'documentBase64', 'document_fields' => 'documentFields', - 'document_group' => 'documentGroup', 'document_id' => 'documentId', 'encrypted_with_key_manager' => 'encryptedWithKeyManager', 'file_extension' => 'fileExtension', @@ -125,7 +123,6 @@ public static function swaggerTypes() 'display' => 'setDisplay', 'document_base64' => 'setDocumentBase64', 'document_fields' => 'setDocumentFields', - 'document_group' => 'setDocumentGroup', 'document_id' => 'setDocumentId', 'encrypted_with_key_manager' => 'setEncryptedWithKeyManager', 'file_extension' => 'setFileExtension', @@ -156,7 +153,6 @@ public static function swaggerTypes() 'display' => 'getDisplay', 'document_base64' => 'getDocumentBase64', 'document_fields' => 'getDocumentFields', - 'document_group' => 'getDocumentGroup', 'document_id' => 'getDocumentId', 'encrypted_with_key_manager' => 'getEncryptedWithKeyManager', 'file_extension' => 'getFileExtension', @@ -212,7 +208,6 @@ public function __construct(array $data = null) $this->container['display'] = isset($data['display']) ? $data['display'] : null; $this->container['document_base64'] = isset($data['document_base64']) ? $data['document_base64'] : null; $this->container['document_fields'] = isset($data['document_fields']) ? $data['document_fields'] : null; - $this->container['document_group'] = isset($data['document_group']) ? $data['document_group'] : null; $this->container['document_id'] = isset($data['document_id']) ? $data['document_id'] : null; $this->container['encrypted_with_key_manager'] = isset($data['encrypted_with_key_manager']) ? $data['encrypted_with_key_manager'] : null; $this->container['file_extension'] = isset($data['file_extension']) ? $data['file_extension'] : null; @@ -360,27 +355,6 @@ public function setDocumentFields($document_fields) return $this; } - /** - * Gets document_group - * @return string - */ - public function getDocumentGroup() - { - return $this->container['document_group']; - } - - /** - * Sets document_group - * @param string $document_group - * @return $this - */ - public function setDocumentGroup($document_group) - { - $this->container['document_group'] = $document_group; - - return $this; - } - /** * Gets document_id * @return string diff --git a/src/Model/DocumentHtmlDisplaySettings.php b/src/Model/DocumentHtmlDisplaySettings.php index 3a68a631..5654d7f7 100644 --- a/src/Model/DocumentHtmlDisplaySettings.php +++ b/src/Model/DocumentHtmlDisplaySettings.php @@ -63,6 +63,7 @@ class DocumentHtmlDisplaySettings implements ArrayAccess 'hide_label_when_opened' => 'bool', 'inline_outer_style' => 'string', 'label_when_opened' => 'string', + 'pre_label' => 'string', 'scroll_to_top_when_opened' => 'bool', 'table_style' => 'string' ]; @@ -86,6 +87,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'hideLabelWhenOpened', 'inline_outer_style' => 'inlineOuterStyle', 'label_when_opened' => 'labelWhenOpened', + 'pre_label' => 'preLabel', 'scroll_to_top_when_opened' => 'scrollToTopWhenOpened', 'table_style' => 'tableStyle' ]; @@ -105,6 +107,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'setHideLabelWhenOpened', 'inline_outer_style' => 'setInlineOuterStyle', 'label_when_opened' => 'setLabelWhenOpened', + 'pre_label' => 'setPreLabel', 'scroll_to_top_when_opened' => 'setScrollToTopWhenOpened', 'table_style' => 'setTableStyle' ]; @@ -124,6 +127,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'getHideLabelWhenOpened', 'inline_outer_style' => 'getInlineOuterStyle', 'label_when_opened' => 'getLabelWhenOpened', + 'pre_label' => 'getPreLabel', 'scroll_to_top_when_opened' => 'getScrollToTopWhenOpened', 'table_style' => 'getTableStyle' ]; @@ -168,6 +172,7 @@ public function __construct(array $data = null) $this->container['hide_label_when_opened'] = isset($data['hide_label_when_opened']) ? $data['hide_label_when_opened'] : null; $this->container['inline_outer_style'] = isset($data['inline_outer_style']) ? $data['inline_outer_style'] : null; $this->container['label_when_opened'] = isset($data['label_when_opened']) ? $data['label_when_opened'] : null; + $this->container['pre_label'] = isset($data['pre_label']) ? $data['pre_label'] : null; $this->container['scroll_to_top_when_opened'] = isset($data['scroll_to_top_when_opened']) ? $data['scroll_to_top_when_opened'] : null; $this->container['table_style'] = isset($data['table_style']) ? $data['table_style'] : null; } @@ -384,6 +389,27 @@ public function setLabelWhenOpened($label_when_opened) return $this; } + /** + * Gets pre_label + * @return string + */ + public function getPreLabel() + { + return $this->container['pre_label']; + } + + /** + * Sets pre_label + * @param string $pre_label + * @return $this + */ + public function setPreLabel($pre_label) + { + $this->container['pre_label'] = $pre_label; + + return $this; + } + /** * Gets scroll_to_top_when_opened * @return bool diff --git a/src/Model/Envelope.php b/src/Model/Envelope.php index 4c42a6b3..9366af7c 100644 --- a/src/Model/Envelope.php +++ b/src/Model/Envelope.php @@ -66,12 +66,14 @@ class Envelope implements ArrayAccess 'brand_lock' => 'string', 'certificate_uri' => 'string', 'completed_date_time' => 'string', + 'copy_recipient_data' => 'string', 'created_date_time' => 'string', 'custom_fields' => '\DocuSign\eSign\Model\CustomFields', 'custom_fields_uri' => 'string', 'declined_date_time' => 'string', 'deleted_date_time' => 'string', 'delivered_date_time' => 'string', + 'disable_responsive_document' => 'string', 'documents_combined_uri' => 'string', 'documents_uri' => 'string', 'email_blurb' => 'string', @@ -128,12 +130,14 @@ public static function swaggerTypes() 'brand_lock' => 'brandLock', 'certificate_uri' => 'certificateUri', 'completed_date_time' => 'completedDateTime', + 'copy_recipient_data' => 'copyRecipientData', 'created_date_time' => 'createdDateTime', 'custom_fields' => 'customFields', 'custom_fields_uri' => 'customFieldsUri', 'declined_date_time' => 'declinedDateTime', 'deleted_date_time' => 'deletedDateTime', 'delivered_date_time' => 'deliveredDateTime', + 'disable_responsive_document' => 'disableResponsiveDocument', 'documents_combined_uri' => 'documentsCombinedUri', 'documents_uri' => 'documentsUri', 'email_blurb' => 'emailBlurb', @@ -186,12 +190,14 @@ public static function swaggerTypes() 'brand_lock' => 'setBrandLock', 'certificate_uri' => 'setCertificateUri', 'completed_date_time' => 'setCompletedDateTime', + 'copy_recipient_data' => 'setCopyRecipientData', 'created_date_time' => 'setCreatedDateTime', 'custom_fields' => 'setCustomFields', 'custom_fields_uri' => 'setCustomFieldsUri', 'declined_date_time' => 'setDeclinedDateTime', 'deleted_date_time' => 'setDeletedDateTime', 'delivered_date_time' => 'setDeliveredDateTime', + 'disable_responsive_document' => 'setDisableResponsiveDocument', 'documents_combined_uri' => 'setDocumentsCombinedUri', 'documents_uri' => 'setDocumentsUri', 'email_blurb' => 'setEmailBlurb', @@ -244,12 +250,14 @@ public static function swaggerTypes() 'brand_lock' => 'getBrandLock', 'certificate_uri' => 'getCertificateUri', 'completed_date_time' => 'getCompletedDateTime', + 'copy_recipient_data' => 'getCopyRecipientData', 'created_date_time' => 'getCreatedDateTime', 'custom_fields' => 'getCustomFields', 'custom_fields_uri' => 'getCustomFieldsUri', 'declined_date_time' => 'getDeclinedDateTime', 'deleted_date_time' => 'getDeletedDateTime', 'delivered_date_time' => 'getDeliveredDateTime', + 'disable_responsive_document' => 'getDisableResponsiveDocument', 'documents_combined_uri' => 'getDocumentsCombinedUri', 'documents_uri' => 'getDocumentsUri', 'email_blurb' => 'getEmailBlurb', @@ -327,12 +335,14 @@ public function __construct(array $data = null) $this->container['brand_lock'] = isset($data['brand_lock']) ? $data['brand_lock'] : null; $this->container['certificate_uri'] = isset($data['certificate_uri']) ? $data['certificate_uri'] : null; $this->container['completed_date_time'] = isset($data['completed_date_time']) ? $data['completed_date_time'] : null; + $this->container['copy_recipient_data'] = isset($data['copy_recipient_data']) ? $data['copy_recipient_data'] : null; $this->container['created_date_time'] = isset($data['created_date_time']) ? $data['created_date_time'] : null; $this->container['custom_fields'] = isset($data['custom_fields']) ? $data['custom_fields'] : null; $this->container['custom_fields_uri'] = isset($data['custom_fields_uri']) ? $data['custom_fields_uri'] : null; $this->container['declined_date_time'] = isset($data['declined_date_time']) ? $data['declined_date_time'] : null; $this->container['deleted_date_time'] = isset($data['deleted_date_time']) ? $data['deleted_date_time'] : null; $this->container['delivered_date_time'] = isset($data['delivered_date_time']) ? $data['delivered_date_time'] : null; + $this->container['disable_responsive_document'] = isset($data['disable_responsive_document']) ? $data['disable_responsive_document'] : null; $this->container['documents_combined_uri'] = isset($data['documents_combined_uri']) ? $data['documents_combined_uri'] : null; $this->container['documents_uri'] = isset($data['documents_uri']) ? $data['documents_uri'] : null; $this->container['email_blurb'] = isset($data['email_blurb']) ? $data['email_blurb'] : null; @@ -642,6 +652,27 @@ public function setCompletedDateTime($completed_date_time) return $this; } + /** + * Gets copy_recipient_data + * @return string + */ + public function getCopyRecipientData() + { + return $this->container['copy_recipient_data']; + } + + /** + * Sets copy_recipient_data + * @param string $copy_recipient_data + * @return $this + */ + public function setCopyRecipientData($copy_recipient_data) + { + $this->container['copy_recipient_data'] = $copy_recipient_data; + + return $this; + } + /** * Gets created_date_time * @return string @@ -768,6 +799,27 @@ public function setDeliveredDateTime($delivered_date_time) return $this; } + /** + * Gets disable_responsive_document + * @return string + */ + public function getDisableResponsiveDocument() + { + return $this->container['disable_responsive_document']; + } + + /** + * Sets disable_responsive_document + * @param string $disable_responsive_document + * @return $this + */ + public function setDisableResponsiveDocument($disable_responsive_document) + { + $this->container['disable_responsive_document'] = $disable_responsive_document; + + return $this; + } + /** * Gets documents_combined_uri * @return string diff --git a/src/Model/EnvelopeDefinition.php b/src/Model/EnvelopeDefinition.php index 0fe018c7..d8bb3840 100644 --- a/src/Model/EnvelopeDefinition.php +++ b/src/Model/EnvelopeDefinition.php @@ -70,12 +70,14 @@ class EnvelopeDefinition implements ArrayAccess 'certificate_uri' => 'string', 'completed_date_time' => 'string', 'composite_templates' => '\DocuSign\eSign\Model\CompositeTemplate[]', + 'copy_recipient_data' => 'string', 'created_date_time' => 'string', 'custom_fields' => '\DocuSign\eSign\Model\CustomFields', 'custom_fields_uri' => 'string', 'declined_date_time' => 'string', 'deleted_date_time' => 'string', 'delivered_date_time' => 'string', + 'disable_responsive_document' => 'string', 'documents' => '\DocuSign\eSign\Model\Document[]', 'documents_combined_uri' => 'string', 'documents_uri' => 'string', @@ -141,12 +143,14 @@ public static function swaggerTypes() 'certificate_uri' => 'certificateUri', 'completed_date_time' => 'completedDateTime', 'composite_templates' => 'compositeTemplates', + 'copy_recipient_data' => 'copyRecipientData', 'created_date_time' => 'createdDateTime', 'custom_fields' => 'customFields', 'custom_fields_uri' => 'customFieldsUri', 'declined_date_time' => 'declinedDateTime', 'deleted_date_time' => 'deletedDateTime', 'delivered_date_time' => 'deliveredDateTime', + 'disable_responsive_document' => 'disableResponsiveDocument', 'documents' => 'documents', 'documents_combined_uri' => 'documentsCombinedUri', 'documents_uri' => 'documentsUri', @@ -208,12 +212,14 @@ public static function swaggerTypes() 'certificate_uri' => 'setCertificateUri', 'completed_date_time' => 'setCompletedDateTime', 'composite_templates' => 'setCompositeTemplates', + 'copy_recipient_data' => 'setCopyRecipientData', 'created_date_time' => 'setCreatedDateTime', 'custom_fields' => 'setCustomFields', 'custom_fields_uri' => 'setCustomFieldsUri', 'declined_date_time' => 'setDeclinedDateTime', 'deleted_date_time' => 'setDeletedDateTime', 'delivered_date_time' => 'setDeliveredDateTime', + 'disable_responsive_document' => 'setDisableResponsiveDocument', 'documents' => 'setDocuments', 'documents_combined_uri' => 'setDocumentsCombinedUri', 'documents_uri' => 'setDocumentsUri', @@ -275,12 +281,14 @@ public static function swaggerTypes() 'certificate_uri' => 'getCertificateUri', 'completed_date_time' => 'getCompletedDateTime', 'composite_templates' => 'getCompositeTemplates', + 'copy_recipient_data' => 'getCopyRecipientData', 'created_date_time' => 'getCreatedDateTime', 'custom_fields' => 'getCustomFields', 'custom_fields_uri' => 'getCustomFieldsUri', 'declined_date_time' => 'getDeclinedDateTime', 'deleted_date_time' => 'getDeletedDateTime', 'delivered_date_time' => 'getDeliveredDateTime', + 'disable_responsive_document' => 'getDisableResponsiveDocument', 'documents' => 'getDocuments', 'documents_combined_uri' => 'getDocumentsCombinedUri', 'documents_uri' => 'getDocumentsUri', @@ -367,12 +375,14 @@ public function __construct(array $data = null) $this->container['certificate_uri'] = isset($data['certificate_uri']) ? $data['certificate_uri'] : null; $this->container['completed_date_time'] = isset($data['completed_date_time']) ? $data['completed_date_time'] : null; $this->container['composite_templates'] = isset($data['composite_templates']) ? $data['composite_templates'] : null; + $this->container['copy_recipient_data'] = isset($data['copy_recipient_data']) ? $data['copy_recipient_data'] : null; $this->container['created_date_time'] = isset($data['created_date_time']) ? $data['created_date_time'] : null; $this->container['custom_fields'] = isset($data['custom_fields']) ? $data['custom_fields'] : null; $this->container['custom_fields_uri'] = isset($data['custom_fields_uri']) ? $data['custom_fields_uri'] : null; $this->container['declined_date_time'] = isset($data['declined_date_time']) ? $data['declined_date_time'] : null; $this->container['deleted_date_time'] = isset($data['deleted_date_time']) ? $data['deleted_date_time'] : null; $this->container['delivered_date_time'] = isset($data['delivered_date_time']) ? $data['delivered_date_time'] : null; + $this->container['disable_responsive_document'] = isset($data['disable_responsive_document']) ? $data['disable_responsive_document'] : null; $this->container['documents'] = isset($data['documents']) ? $data['documents'] : null; $this->container['documents_combined_uri'] = isset($data['documents_combined_uri']) ? $data['documents_combined_uri'] : null; $this->container['documents_uri'] = isset($data['documents_uri']) ? $data['documents_uri'] : null; @@ -771,6 +781,27 @@ public function setCompositeTemplates($composite_templates) return $this; } + /** + * Gets copy_recipient_data + * @return string + */ + public function getCopyRecipientData() + { + return $this->container['copy_recipient_data']; + } + + /** + * Sets copy_recipient_data + * @param string $copy_recipient_data + * @return $this + */ + public function setCopyRecipientData($copy_recipient_data) + { + $this->container['copy_recipient_data'] = $copy_recipient_data; + + return $this; + } + /** * Gets created_date_time * @return string @@ -897,6 +928,27 @@ public function setDeliveredDateTime($delivered_date_time) return $this; } + /** + * Gets disable_responsive_document + * @return string + */ + public function getDisableResponsiveDocument() + { + return $this->container['disable_responsive_document']; + } + + /** + * Sets disable_responsive_document + * @param string $disable_responsive_document + * @return $this + */ + public function setDisableResponsiveDocument($disable_responsive_document) + { + $this->container['disable_responsive_document'] = $disable_responsive_document; + + return $this; + } + /** * Gets documents * @return \DocuSign\eSign\Model\Document[] diff --git a/src/Model/EnvelopeDocument.php b/src/Model/EnvelopeDocument.php index efff98aa..a53ec819 100644 --- a/src/Model/EnvelopeDocument.php +++ b/src/Model/EnvelopeDocument.php @@ -60,7 +60,6 @@ class EnvelopeDocument implements ArrayAccess 'contains_pdf_form_fields' => 'string', 'display' => 'string', 'document_fields' => '\DocuSign\eSign\Model\NameValue[]', - 'document_group' => 'string', 'document_id' => 'string', 'error_details' => '\DocuSign\eSign\Model\ErrorDetails', 'include_in_download' => 'string', @@ -68,6 +67,7 @@ class EnvelopeDocument implements ArrayAccess 'order' => 'string', 'pages' => 'string', 'signer_must_acknowledge' => 'string', + 'size_bytes' => 'string', 'type' => 'string', 'uri' => 'string' ]; @@ -88,7 +88,6 @@ public static function swaggerTypes() 'contains_pdf_form_fields' => 'containsPdfFormFields', 'display' => 'display', 'document_fields' => 'documentFields', - 'document_group' => 'documentGroup', 'document_id' => 'documentId', 'error_details' => 'errorDetails', 'include_in_download' => 'includeInDownload', @@ -96,6 +95,7 @@ public static function swaggerTypes() 'order' => 'order', 'pages' => 'pages', 'signer_must_acknowledge' => 'signerMustAcknowledge', + 'size_bytes' => 'sizeBytes', 'type' => 'type', 'uri' => 'uri' ]; @@ -112,7 +112,6 @@ public static function swaggerTypes() 'contains_pdf_form_fields' => 'setContainsPdfFormFields', 'display' => 'setDisplay', 'document_fields' => 'setDocumentFields', - 'document_group' => 'setDocumentGroup', 'document_id' => 'setDocumentId', 'error_details' => 'setErrorDetails', 'include_in_download' => 'setIncludeInDownload', @@ -120,6 +119,7 @@ public static function swaggerTypes() 'order' => 'setOrder', 'pages' => 'setPages', 'signer_must_acknowledge' => 'setSignerMustAcknowledge', + 'size_bytes' => 'setSizeBytes', 'type' => 'setType', 'uri' => 'setUri' ]; @@ -136,7 +136,6 @@ public static function swaggerTypes() 'contains_pdf_form_fields' => 'getContainsPdfFormFields', 'display' => 'getDisplay', 'document_fields' => 'getDocumentFields', - 'document_group' => 'getDocumentGroup', 'document_id' => 'getDocumentId', 'error_details' => 'getErrorDetails', 'include_in_download' => 'getIncludeInDownload', @@ -144,6 +143,7 @@ public static function swaggerTypes() 'order' => 'getOrder', 'pages' => 'getPages', 'signer_must_acknowledge' => 'getSignerMustAcknowledge', + 'size_bytes' => 'getSizeBytes', 'type' => 'getType', 'uri' => 'getUri' ]; @@ -185,7 +185,6 @@ public function __construct(array $data = null) $this->container['contains_pdf_form_fields'] = isset($data['contains_pdf_form_fields']) ? $data['contains_pdf_form_fields'] : null; $this->container['display'] = isset($data['display']) ? $data['display'] : null; $this->container['document_fields'] = isset($data['document_fields']) ? $data['document_fields'] : null; - $this->container['document_group'] = isset($data['document_group']) ? $data['document_group'] : null; $this->container['document_id'] = isset($data['document_id']) ? $data['document_id'] : null; $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; $this->container['include_in_download'] = isset($data['include_in_download']) ? $data['include_in_download'] : null; @@ -193,6 +192,7 @@ public function __construct(array $data = null) $this->container['order'] = isset($data['order']) ? $data['order'] : null; $this->container['pages'] = isset($data['pages']) ? $data['pages'] : null; $this->container['signer_must_acknowledge'] = isset($data['signer_must_acknowledge']) ? $data['signer_must_acknowledge'] : null; + $this->container['size_bytes'] = isset($data['size_bytes']) ? $data['size_bytes'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['uri'] = isset($data['uri']) ? $data['uri'] : null; } @@ -346,27 +346,6 @@ public function setDocumentFields($document_fields) return $this; } - /** - * Gets document_group - * @return string - */ - public function getDocumentGroup() - { - return $this->container['document_group']; - } - - /** - * Sets document_group - * @param string $document_group - * @return $this - */ - public function setDocumentGroup($document_group) - { - $this->container['document_group'] = $document_group; - - return $this; - } - /** * Gets document_id * @return string @@ -514,6 +493,27 @@ public function setSignerMustAcknowledge($signer_must_acknowledge) return $this; } + /** + * Gets size_bytes + * @return string + */ + public function getSizeBytes() + { + return $this->container['size_bytes']; + } + + /** + * Sets size_bytes + * @param string $size_bytes + * @return $this + */ + public function setSizeBytes($size_bytes) + { + $this->container['size_bytes'] = $size_bytes; + + return $this; + } + /** * Gets type * @return string diff --git a/src/Model/EnvelopeTemplate.php b/src/Model/EnvelopeTemplate.php index 36c94bff..77977313 100644 --- a/src/Model/EnvelopeTemplate.php +++ b/src/Model/EnvelopeTemplate.php @@ -66,12 +66,14 @@ class EnvelopeTemplate implements ArrayAccess 'brand_lock' => 'string', 'certificate_uri' => 'string', 'completed_date_time' => 'string', + 'copy_recipient_data' => 'string', 'created_date_time' => 'string', 'custom_fields' => '\DocuSign\eSign\Model\CustomFields', 'custom_fields_uri' => 'string', 'declined_date_time' => 'string', 'deleted_date_time' => 'string', 'delivered_date_time' => 'string', + 'disable_responsive_document' => 'string', 'documents' => '\DocuSign\eSign\Model\Document[]', 'documents_combined_uri' => 'string', 'documents_uri' => 'string', @@ -130,12 +132,14 @@ public static function swaggerTypes() 'brand_lock' => 'brandLock', 'certificate_uri' => 'certificateUri', 'completed_date_time' => 'completedDateTime', + 'copy_recipient_data' => 'copyRecipientData', 'created_date_time' => 'createdDateTime', 'custom_fields' => 'customFields', 'custom_fields_uri' => 'customFieldsUri', 'declined_date_time' => 'declinedDateTime', 'deleted_date_time' => 'deletedDateTime', 'delivered_date_time' => 'deliveredDateTime', + 'disable_responsive_document' => 'disableResponsiveDocument', 'documents' => 'documents', 'documents_combined_uri' => 'documentsCombinedUri', 'documents_uri' => 'documentsUri', @@ -190,12 +194,14 @@ public static function swaggerTypes() 'brand_lock' => 'setBrandLock', 'certificate_uri' => 'setCertificateUri', 'completed_date_time' => 'setCompletedDateTime', + 'copy_recipient_data' => 'setCopyRecipientData', 'created_date_time' => 'setCreatedDateTime', 'custom_fields' => 'setCustomFields', 'custom_fields_uri' => 'setCustomFieldsUri', 'declined_date_time' => 'setDeclinedDateTime', 'deleted_date_time' => 'setDeletedDateTime', 'delivered_date_time' => 'setDeliveredDateTime', + 'disable_responsive_document' => 'setDisableResponsiveDocument', 'documents' => 'setDocuments', 'documents_combined_uri' => 'setDocumentsCombinedUri', 'documents_uri' => 'setDocumentsUri', @@ -250,12 +256,14 @@ public static function swaggerTypes() 'brand_lock' => 'getBrandLock', 'certificate_uri' => 'getCertificateUri', 'completed_date_time' => 'getCompletedDateTime', + 'copy_recipient_data' => 'getCopyRecipientData', 'created_date_time' => 'getCreatedDateTime', 'custom_fields' => 'getCustomFields', 'custom_fields_uri' => 'getCustomFieldsUri', 'declined_date_time' => 'getDeclinedDateTime', 'deleted_date_time' => 'getDeletedDateTime', 'delivered_date_time' => 'getDeliveredDateTime', + 'disable_responsive_document' => 'getDisableResponsiveDocument', 'documents' => 'getDocuments', 'documents_combined_uri' => 'getDocumentsCombinedUri', 'documents_uri' => 'getDocumentsUri', @@ -335,12 +343,14 @@ public function __construct(array $data = null) $this->container['brand_lock'] = isset($data['brand_lock']) ? $data['brand_lock'] : null; $this->container['certificate_uri'] = isset($data['certificate_uri']) ? $data['certificate_uri'] : null; $this->container['completed_date_time'] = isset($data['completed_date_time']) ? $data['completed_date_time'] : null; + $this->container['copy_recipient_data'] = isset($data['copy_recipient_data']) ? $data['copy_recipient_data'] : null; $this->container['created_date_time'] = isset($data['created_date_time']) ? $data['created_date_time'] : null; $this->container['custom_fields'] = isset($data['custom_fields']) ? $data['custom_fields'] : null; $this->container['custom_fields_uri'] = isset($data['custom_fields_uri']) ? $data['custom_fields_uri'] : null; $this->container['declined_date_time'] = isset($data['declined_date_time']) ? $data['declined_date_time'] : null; $this->container['deleted_date_time'] = isset($data['deleted_date_time']) ? $data['deleted_date_time'] : null; $this->container['delivered_date_time'] = isset($data['delivered_date_time']) ? $data['delivered_date_time'] : null; + $this->container['disable_responsive_document'] = isset($data['disable_responsive_document']) ? $data['disable_responsive_document'] : null; $this->container['documents'] = isset($data['documents']) ? $data['documents'] : null; $this->container['documents_combined_uri'] = isset($data['documents_combined_uri']) ? $data['documents_combined_uri'] : null; $this->container['documents_uri'] = isset($data['documents_uri']) ? $data['documents_uri'] : null; @@ -652,6 +662,27 @@ public function setCompletedDateTime($completed_date_time) return $this; } + /** + * Gets copy_recipient_data + * @return string + */ + public function getCopyRecipientData() + { + return $this->container['copy_recipient_data']; + } + + /** + * Sets copy_recipient_data + * @param string $copy_recipient_data + * @return $this + */ + public function setCopyRecipientData($copy_recipient_data) + { + $this->container['copy_recipient_data'] = $copy_recipient_data; + + return $this; + } + /** * Gets created_date_time * @return string @@ -778,6 +809,27 @@ public function setDeliveredDateTime($delivered_date_time) return $this; } + /** + * Gets disable_responsive_document + * @return string + */ + public function getDisableResponsiveDocument() + { + return $this->container['disable_responsive_document']; + } + + /** + * Sets disable_responsive_document + * @param string $disable_responsive_document + * @return $this + */ + public function setDisableResponsiveDocument($disable_responsive_document) + { + $this->container['disable_responsive_document'] = $disable_responsive_document; + + return $this; + } + /** * Gets documents * @return \DocuSign\eSign\Model\Document[] diff --git a/src/Model/EnvelopeTemplateResult.php b/src/Model/EnvelopeTemplateResult.php index 39467ad4..b6ba933e 100644 --- a/src/Model/EnvelopeTemplateResult.php +++ b/src/Model/EnvelopeTemplateResult.php @@ -66,6 +66,7 @@ class EnvelopeTemplateResult implements ArrayAccess 'brand_lock' => 'string', 'certificate_uri' => 'string', 'completed_date_time' => 'string', + 'copy_recipient_data' => 'string', 'created' => 'string', 'created_date_time' => 'string', 'custom_fields' => '\DocuSign\eSign\Model\CustomFields', @@ -74,6 +75,7 @@ class EnvelopeTemplateResult implements ArrayAccess 'deleted_date_time' => 'string', 'delivered_date_time' => 'string', 'description' => 'string', + 'disable_responsive_document' => 'string', 'documents' => '\DocuSign\eSign\Model\Document[]', 'documents_combined_uri' => 'string', 'documents_uri' => 'string', @@ -143,6 +145,7 @@ public static function swaggerTypes() 'brand_lock' => 'brandLock', 'certificate_uri' => 'certificateUri', 'completed_date_time' => 'completedDateTime', + 'copy_recipient_data' => 'copyRecipientData', 'created' => 'created', 'created_date_time' => 'createdDateTime', 'custom_fields' => 'customFields', @@ -151,6 +154,7 @@ public static function swaggerTypes() 'deleted_date_time' => 'deletedDateTime', 'delivered_date_time' => 'deliveredDateTime', 'description' => 'description', + 'disable_responsive_document' => 'disableResponsiveDocument', 'documents' => 'documents', 'documents_combined_uri' => 'documentsCombinedUri', 'documents_uri' => 'documentsUri', @@ -216,6 +220,7 @@ public static function swaggerTypes() 'brand_lock' => 'setBrandLock', 'certificate_uri' => 'setCertificateUri', 'completed_date_time' => 'setCompletedDateTime', + 'copy_recipient_data' => 'setCopyRecipientData', 'created' => 'setCreated', 'created_date_time' => 'setCreatedDateTime', 'custom_fields' => 'setCustomFields', @@ -224,6 +229,7 @@ public static function swaggerTypes() 'deleted_date_time' => 'setDeletedDateTime', 'delivered_date_time' => 'setDeliveredDateTime', 'description' => 'setDescription', + 'disable_responsive_document' => 'setDisableResponsiveDocument', 'documents' => 'setDocuments', 'documents_combined_uri' => 'setDocumentsCombinedUri', 'documents_uri' => 'setDocumentsUri', @@ -289,6 +295,7 @@ public static function swaggerTypes() 'brand_lock' => 'getBrandLock', 'certificate_uri' => 'getCertificateUri', 'completed_date_time' => 'getCompletedDateTime', + 'copy_recipient_data' => 'getCopyRecipientData', 'created' => 'getCreated', 'created_date_time' => 'getCreatedDateTime', 'custom_fields' => 'getCustomFields', @@ -297,6 +304,7 @@ public static function swaggerTypes() 'deleted_date_time' => 'getDeletedDateTime', 'delivered_date_time' => 'getDeliveredDateTime', 'description' => 'getDescription', + 'disable_responsive_document' => 'getDisableResponsiveDocument', 'documents' => 'getDocuments', 'documents_combined_uri' => 'getDocumentsCombinedUri', 'documents_uri' => 'getDocumentsUri', @@ -387,6 +395,7 @@ public function __construct(array $data = null) $this->container['brand_lock'] = isset($data['brand_lock']) ? $data['brand_lock'] : null; $this->container['certificate_uri'] = isset($data['certificate_uri']) ? $data['certificate_uri'] : null; $this->container['completed_date_time'] = isset($data['completed_date_time']) ? $data['completed_date_time'] : null; + $this->container['copy_recipient_data'] = isset($data['copy_recipient_data']) ? $data['copy_recipient_data'] : null; $this->container['created'] = isset($data['created']) ? $data['created'] : null; $this->container['created_date_time'] = isset($data['created_date_time']) ? $data['created_date_time'] : null; $this->container['custom_fields'] = isset($data['custom_fields']) ? $data['custom_fields'] : null; @@ -395,6 +404,7 @@ public function __construct(array $data = null) $this->container['deleted_date_time'] = isset($data['deleted_date_time']) ? $data['deleted_date_time'] : null; $this->container['delivered_date_time'] = isset($data['delivered_date_time']) ? $data['delivered_date_time'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['disable_responsive_document'] = isset($data['disable_responsive_document']) ? $data['disable_responsive_document'] : null; $this->container['documents'] = isset($data['documents']) ? $data['documents'] : null; $this->container['documents_combined_uri'] = isset($data['documents_combined_uri']) ? $data['documents_combined_uri'] : null; $this->container['documents_uri'] = isset($data['documents_uri']) ? $data['documents_uri'] : null; @@ -717,6 +727,27 @@ public function setCompletedDateTime($completed_date_time) return $this; } + /** + * Gets copy_recipient_data + * @return string + */ + public function getCopyRecipientData() + { + return $this->container['copy_recipient_data']; + } + + /** + * Sets copy_recipient_data + * @param string $copy_recipient_data + * @return $this + */ + public function setCopyRecipientData($copy_recipient_data) + { + $this->container['copy_recipient_data'] = $copy_recipient_data; + + return $this; + } + /** * Gets created * @return string @@ -885,6 +916,27 @@ public function setDescription($description) return $this; } + /** + * Gets disable_responsive_document + * @return string + */ + public function getDisableResponsiveDocument() + { + return $this->container['disable_responsive_document']; + } + + /** + * Sets disable_responsive_document + * @param string $disable_responsive_document + * @return $this + */ + public function setDisableResponsiveDocument($disable_responsive_document) + { + $this->container['disable_responsive_document'] = $disable_responsive_document; + + return $this; + } + /** * Gets documents * @return \DocuSign\eSign\Model\Document[] diff --git a/src/Model/EventNotification.php b/src/Model/EventNotification.php index e1a349e3..49880d0d 100644 --- a/src/Model/EventNotification.php +++ b/src/Model/EventNotification.php @@ -61,6 +61,7 @@ class EventNotification implements ArrayAccess 'include_document_fields' => 'string', 'include_documents' => 'string', 'include_envelope_void_reason' => 'string', + 'include_hmac' => 'string', 'include_sender_account_as_custom_field' => 'string', 'include_time_zone' => 'string', 'logging_enabled' => 'string', @@ -88,6 +89,7 @@ public static function swaggerTypes() 'include_document_fields' => 'includeDocumentFields', 'include_documents' => 'includeDocuments', 'include_envelope_void_reason' => 'includeEnvelopeVoidReason', + 'include_hmac' => 'includeHMAC', 'include_sender_account_as_custom_field' => 'includeSenderAccountAsCustomField', 'include_time_zone' => 'includeTimeZone', 'logging_enabled' => 'loggingEnabled', @@ -111,6 +113,7 @@ public static function swaggerTypes() 'include_document_fields' => 'setIncludeDocumentFields', 'include_documents' => 'setIncludeDocuments', 'include_envelope_void_reason' => 'setIncludeEnvelopeVoidReason', + 'include_hmac' => 'setIncludeHmac', 'include_sender_account_as_custom_field' => 'setIncludeSenderAccountAsCustomField', 'include_time_zone' => 'setIncludeTimeZone', 'logging_enabled' => 'setLoggingEnabled', @@ -134,6 +137,7 @@ public static function swaggerTypes() 'include_document_fields' => 'getIncludeDocumentFields', 'include_documents' => 'getIncludeDocuments', 'include_envelope_void_reason' => 'getIncludeEnvelopeVoidReason', + 'include_hmac' => 'getIncludeHmac', 'include_sender_account_as_custom_field' => 'getIncludeSenderAccountAsCustomField', 'include_time_zone' => 'getIncludeTimeZone', 'logging_enabled' => 'getLoggingEnabled', @@ -182,6 +186,7 @@ public function __construct(array $data = null) $this->container['include_document_fields'] = isset($data['include_document_fields']) ? $data['include_document_fields'] : null; $this->container['include_documents'] = isset($data['include_documents']) ? $data['include_documents'] : null; $this->container['include_envelope_void_reason'] = isset($data['include_envelope_void_reason']) ? $data['include_envelope_void_reason'] : null; + $this->container['include_hmac'] = isset($data['include_hmac']) ? $data['include_hmac'] : null; $this->container['include_sender_account_as_custom_field'] = isset($data['include_sender_account_as_custom_field']) ? $data['include_sender_account_as_custom_field'] : null; $this->container['include_time_zone'] = isset($data['include_time_zone']) ? $data['include_time_zone'] : null; $this->container['logging_enabled'] = isset($data['logging_enabled']) ? $data['logging_enabled'] : null; @@ -342,6 +347,27 @@ public function setIncludeEnvelopeVoidReason($include_envelope_void_reason) return $this; } + /** + * Gets include_hmac + * @return string + */ + public function getIncludeHmac() + { + return $this->container['include_hmac']; + } + + /** + * Sets include_hmac + * @param string $include_hmac + * @return $this + */ + public function setIncludeHmac($include_hmac) + { + $this->container['include_hmac'] = $include_hmac; + + return $this; + } + /** * Gets include_sender_account_as_custom_field * @return string diff --git a/src/Model/NewAccountDefinition.php b/src/Model/NewAccountDefinition.php index 619f218a..b5872de8 100644 --- a/src/Model/NewAccountDefinition.php +++ b/src/Model/NewAccountDefinition.php @@ -60,6 +60,7 @@ class NewAccountDefinition implements ArrayAccess 'credit_card_information' => '\DocuSign\eSign\Model\CreditCardInformation', 'distributor_code' => 'string', 'distributor_password' => 'string', + 'envelope_partition_id' => 'string', 'initial_user' => '\DocuSign\eSign\Model\UserInformation', 'payment_processor_information' => '\DocuSign\eSign\Model\PaymentProcessorInformation', 'plan_information' => '\DocuSign\eSign\Model\PlanInformation', @@ -83,6 +84,7 @@ public static function swaggerTypes() 'credit_card_information' => 'creditCardInformation', 'distributor_code' => 'distributorCode', 'distributor_password' => 'distributorPassword', + 'envelope_partition_id' => 'envelopePartitionId', 'initial_user' => 'initialUser', 'payment_processor_information' => 'PaymentProcessorInformation', 'plan_information' => 'planInformation', @@ -102,6 +104,7 @@ public static function swaggerTypes() 'credit_card_information' => 'setCreditCardInformation', 'distributor_code' => 'setDistributorCode', 'distributor_password' => 'setDistributorPassword', + 'envelope_partition_id' => 'setEnvelopePartitionId', 'initial_user' => 'setInitialUser', 'payment_processor_information' => 'setPaymentProcessorInformation', 'plan_information' => 'setPlanInformation', @@ -121,6 +124,7 @@ public static function swaggerTypes() 'credit_card_information' => 'getCreditCardInformation', 'distributor_code' => 'getDistributorCode', 'distributor_password' => 'getDistributorPassword', + 'envelope_partition_id' => 'getEnvelopePartitionId', 'initial_user' => 'getInitialUser', 'payment_processor_information' => 'getPaymentProcessorInformation', 'plan_information' => 'getPlanInformation', @@ -165,6 +169,7 @@ public function __construct(array $data = null) $this->container['credit_card_information'] = isset($data['credit_card_information']) ? $data['credit_card_information'] : null; $this->container['distributor_code'] = isset($data['distributor_code']) ? $data['distributor_code'] : null; $this->container['distributor_password'] = isset($data['distributor_password']) ? $data['distributor_password'] : null; + $this->container['envelope_partition_id'] = isset($data['envelope_partition_id']) ? $data['envelope_partition_id'] : null; $this->container['initial_user'] = isset($data['initial_user']) ? $data['initial_user'] : null; $this->container['payment_processor_information'] = isset($data['payment_processor_information']) ? $data['payment_processor_information'] : null; $this->container['plan_information'] = isset($data['plan_information']) ? $data['plan_information'] : null; @@ -321,6 +326,27 @@ public function setDistributorPassword($distributor_password) return $this; } + /** + * Gets envelope_partition_id + * @return string + */ + public function getEnvelopePartitionId() + { + return $this->container['envelope_partition_id']; + } + + /** + * Sets envelope_partition_id + * @param string $envelope_partition_id + * @return $this + */ + public function setEnvelopePartitionId($envelope_partition_id) + { + $this->container['envelope_partition_id'] = $envelope_partition_id; + + return $this; + } + /** * Gets initial_user * @return \DocuSign\eSign\Model\UserInformation diff --git a/src/Model/OfflineAttributes.php b/src/Model/OfflineAttributes.php new file mode 100644 index 00000000..084f8f36 --- /dev/null +++ b/src/Model/OfflineAttributes.php @@ -0,0 +1,358 @@ + 'string', + 'device_model' => 'string', + 'device_name' => 'string', + 'gps_latitude' => 'string', + 'gps_longitude' => 'string', + 'offline_signing_hash' => 'string' + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of attributes where the key is the local name, and the value is the original name + * @var string[] + */ + protected static $attributeMap = [ + 'account_esign_id' => 'accountEsignId', + 'device_model' => 'deviceModel', + 'device_name' => 'deviceName', + 'gps_latitude' => 'gpsLatitude', + 'gps_longitude' => 'gpsLongitude', + 'offline_signing_hash' => 'offlineSigningHash' + ]; + + + /** + * Array of attributes to setter functions (for deserialization of responses) + * @var string[] + */ + protected static $setters = [ + 'account_esign_id' => 'setAccountEsignId', + 'device_model' => 'setDeviceModel', + 'device_name' => 'setDeviceName', + 'gps_latitude' => 'setGpsLatitude', + 'gps_longitude' => 'setGpsLongitude', + 'offline_signing_hash' => 'setOfflineSigningHash' + ]; + + + /** + * Array of attributes to getter functions (for serialization of requests) + * @var string[] + */ + protected static $getters = [ + 'account_esign_id' => 'getAccountEsignId', + 'device_model' => 'getDeviceModel', + 'device_name' => 'getDeviceName', + 'gps_latitude' => 'getGpsLatitude', + 'gps_longitude' => 'getGpsLongitude', + 'offline_signing_hash' => 'getOfflineSigningHash' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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['account_esign_id'] = isset($data['account_esign_id']) ? $data['account_esign_id'] : null; + $this->container['device_model'] = isset($data['device_model']) ? $data['device_model'] : null; + $this->container['device_name'] = isset($data['device_name']) ? $data['device_name'] : null; + $this->container['gps_latitude'] = isset($data['gps_latitude']) ? $data['gps_latitude'] : null; + $this->container['gps_longitude'] = isset($data['gps_longitude']) ? $data['gps_longitude'] : null; + $this->container['offline_signing_hash'] = isset($data['offline_signing_hash']) ? $data['offline_signing_hash'] : null; + } + + /** + * show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalid_properties = []; + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properteis are valid + */ + public function valid() + { + return true; + } + + + /** + * Gets account_esign_id + * @return string + */ + public function getAccountEsignId() + { + return $this->container['account_esign_id']; + } + + /** + * Sets account_esign_id + * @param string $account_esign_id A GUID identifying the account associated with the consumer disclosure + * @return $this + */ + public function setAccountEsignId($account_esign_id) + { + $this->container['account_esign_id'] = $account_esign_id; + + return $this; + } + + /** + * Gets device_model + * @return string + */ + public function getDeviceModel() + { + return $this->container['device_model']; + } + + /** + * Sets device_model + * @param string $device_model A string containing information about the model of the device used for offline signing. + * @return $this + */ + public function setDeviceModel($device_model) + { + $this->container['device_model'] = $device_model; + + return $this; + } + + /** + * Gets device_name + * @return string + */ + public function getDeviceName() + { + return $this->container['device_name']; + } + + /** + * Sets device_name + * @param string $device_name A string containing information about the type of device used for offline signing. + * @return $this + */ + public function setDeviceName($device_name) + { + $this->container['device_name'] = $device_name; + + return $this; + } + + /** + * Gets gps_latitude + * @return string + */ + public function getGpsLatitude() + { + return $this->container['gps_latitude']; + } + + /** + * Sets gps_latitude + * @param string $gps_latitude A string containing the latitude of the device location at the time of signing. + * @return $this + */ + public function setGpsLatitude($gps_latitude) + { + $this->container['gps_latitude'] = $gps_latitude; + + return $this; + } + + /** + * Gets gps_longitude + * @return string + */ + public function getGpsLongitude() + { + return $this->container['gps_longitude']; + } + + /** + * Sets gps_longitude + * @param string $gps_longitude A string containing the longitude of the device location at the time of signing. + * @return $this + */ + public function setGpsLongitude($gps_longitude) + { + $this->container['gps_longitude'] = $gps_longitude; + + return $this; + } + + /** + * Gets offline_signing_hash + * @return string + */ + public function getOfflineSigningHash() + { + return $this->container['offline_signing_hash']; + } + + /** + * Sets offline_signing_hash + * @param string $offline_signing_hash + * @return $this + */ + public function setOfflineSigningHash($offline_signing_hash) + { + $this->container['offline_signing_hash'] = $offline_signing_hash; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * @param integer $offset Offset + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/PaymentDetails.php b/src/Model/PaymentDetails.php index 8c62caff..4e760cfb 100644 --- a/src/Model/PaymentDetails.php +++ b/src/Model/PaymentDetails.php @@ -57,11 +57,15 @@ class PaymentDetails implements ArrayAccess 'allowed_payment_methods' => 'string[]', 'charge_id' => 'string', 'currency_code' => 'string', + 'customer_id' => 'string', + 'custom_metadata' => 'string', + 'custom_metadata_required' => 'bool', 'gateway_account_id' => 'string', 'gateway_display_name' => 'string', 'gateway_name' => 'string', 'line_items' => '\DocuSign\eSign\Model\PaymentLineItem[]', 'payment_option' => 'string', + 'payment_source_id' => 'string', 'status' => 'string', 'total' => '\DocuSign\eSign\Model\Money' ]; @@ -79,11 +83,15 @@ public static function swaggerTypes() 'allowed_payment_methods' => 'allowedPaymentMethods', 'charge_id' => 'chargeId', 'currency_code' => 'currencyCode', + 'customer_id' => 'customerId', + 'custom_metadata' => 'customMetadata', + 'custom_metadata_required' => 'customMetadataRequired', 'gateway_account_id' => 'gatewayAccountId', 'gateway_display_name' => 'gatewayDisplayName', 'gateway_name' => 'gatewayName', 'line_items' => 'lineItems', 'payment_option' => 'paymentOption', + 'payment_source_id' => 'paymentSourceId', 'status' => 'status', 'total' => 'total' ]; @@ -97,11 +105,15 @@ public static function swaggerTypes() 'allowed_payment_methods' => 'setAllowedPaymentMethods', 'charge_id' => 'setChargeId', 'currency_code' => 'setCurrencyCode', + 'customer_id' => 'setCustomerId', + 'custom_metadata' => 'setCustomMetadata', + 'custom_metadata_required' => 'setCustomMetadataRequired', 'gateway_account_id' => 'setGatewayAccountId', 'gateway_display_name' => 'setGatewayDisplayName', 'gateway_name' => 'setGatewayName', 'line_items' => 'setLineItems', 'payment_option' => 'setPaymentOption', + 'payment_source_id' => 'setPaymentSourceId', 'status' => 'setStatus', 'total' => 'setTotal' ]; @@ -115,11 +127,15 @@ public static function swaggerTypes() 'allowed_payment_methods' => 'getAllowedPaymentMethods', 'charge_id' => 'getChargeId', 'currency_code' => 'getCurrencyCode', + 'customer_id' => 'getCustomerId', + 'custom_metadata' => 'getCustomMetadata', + 'custom_metadata_required' => 'getCustomMetadataRequired', 'gateway_account_id' => 'getGatewayAccountId', 'gateway_display_name' => 'getGatewayDisplayName', 'gateway_name' => 'getGatewayName', 'line_items' => 'getLineItems', 'payment_option' => 'getPaymentOption', + 'payment_source_id' => 'getPaymentSourceId', 'status' => 'getStatus', 'total' => 'getTotal' ]; @@ -158,11 +174,15 @@ public function __construct(array $data = null) $this->container['allowed_payment_methods'] = isset($data['allowed_payment_methods']) ? $data['allowed_payment_methods'] : null; $this->container['charge_id'] = isset($data['charge_id']) ? $data['charge_id'] : null; $this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null; + $this->container['customer_id'] = isset($data['customer_id']) ? $data['customer_id'] : null; + $this->container['custom_metadata'] = isset($data['custom_metadata']) ? $data['custom_metadata'] : null; + $this->container['custom_metadata_required'] = isset($data['custom_metadata_required']) ? $data['custom_metadata_required'] : null; $this->container['gateway_account_id'] = isset($data['gateway_account_id']) ? $data['gateway_account_id'] : null; $this->container['gateway_display_name'] = isset($data['gateway_display_name']) ? $data['gateway_display_name'] : null; $this->container['gateway_name'] = isset($data['gateway_name']) ? $data['gateway_name'] : null; $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; $this->container['payment_option'] = isset($data['payment_option']) ? $data['payment_option'] : null; + $this->container['payment_source_id'] = isset($data['payment_source_id']) ? $data['payment_source_id'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['total'] = isset($data['total']) ? $data['total'] : null; } @@ -253,6 +273,69 @@ public function setCurrencyCode($currency_code) return $this; } + /** + * Gets customer_id + * @return string + */ + public function getCustomerId() + { + return $this->container['customer_id']; + } + + /** + * Sets customer_id + * @param string $customer_id + * @return $this + */ + public function setCustomerId($customer_id) + { + $this->container['customer_id'] = $customer_id; + + return $this; + } + + /** + * Gets custom_metadata + * @return string + */ + public function getCustomMetadata() + { + return $this->container['custom_metadata']; + } + + /** + * Sets custom_metadata + * @param string $custom_metadata + * @return $this + */ + public function setCustomMetadata($custom_metadata) + { + $this->container['custom_metadata'] = $custom_metadata; + + return $this; + } + + /** + * Gets custom_metadata_required + * @return bool + */ + public function getCustomMetadataRequired() + { + return $this->container['custom_metadata_required']; + } + + /** + * Sets custom_metadata_required + * @param bool $custom_metadata_required + * @return $this + */ + public function setCustomMetadataRequired($custom_metadata_required) + { + $this->container['custom_metadata_required'] = $custom_metadata_required; + + return $this; + } + /** * Gets gateway_account_id * @return string @@ -358,6 +441,27 @@ public function setPaymentOption($payment_option) return $this; } + /** + * Gets payment_source_id + * @return string + */ + public function getPaymentSourceId() + { + return $this->container['payment_source_id']; + } + + /** + * Sets payment_source_id + * @param string $payment_source_id + * @return $this + */ + public function setPaymentSourceId($payment_source_id) + { + $this->container['payment_source_id'] = $payment_source_id; + + return $this; + } + /** * Gets status * @return string diff --git a/src/Model/RecipientEmailNotification.php b/src/Model/RecipientEmailNotification.php index 47260167..313f5f9a 100644 --- a/src/Model/RecipientEmailNotification.php +++ b/src/Model/RecipientEmailNotification.php @@ -208,7 +208,7 @@ public function getSupportedLanguage() /** * Sets supported_language - * @param string $supported_language A simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Bahasa Indonesia (id), Bahasa Melayu (ms) 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), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), 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). + * @param string $supported_language A simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Armenian (hy), Bahasa Indonesia (id), Bahasa Melayu (ms) 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), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), 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). * @return $this */ public function setSupportedLanguage($supported_language) diff --git a/src/Model/RecipientIdentityInputOption.php b/src/Model/RecipientIdentityInputOption.php new file mode 100644 index 00000000..ed679d44 --- /dev/null +++ b/src/Model/RecipientIdentityInputOption.php @@ -0,0 +1,279 @@ + 'string', + 'phone_number_list' => '\DocuSign\eSign\Model\RecipientIdentityPhoneNumber[]', + 'value_type' => 'string' + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of attributes where the key is the local name, and the value is the original name + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'phone_number_list' => 'phoneNumberList', + 'value_type' => 'valueType' + ]; + + + /** + * Array of attributes to setter functions (for deserialization of responses) + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'phone_number_list' => 'setPhoneNumberList', + 'value_type' => 'setValueType' + ]; + + + /** + * Array of attributes to getter functions (for serialization of requests) + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'phone_number_list' => 'getPhoneNumberList', + 'value_type' => 'getValueType' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['phone_number_list'] = isset($data['phone_number_list']) ? $data['phone_number_list'] : null; + $this->container['value_type'] = isset($data['value_type']) ? $data['value_type'] : null; + } + + /** + * show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalid_properties = []; + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properteis are valid + */ + public function valid() + { + return true; + } + + + /** + * Gets name + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * @param string $name + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets phone_number_list + * @return \DocuSign\eSign\Model\RecipientIdentityPhoneNumber[] + */ + public function getPhoneNumberList() + { + return $this->container['phone_number_list']; + } + + /** + * Sets phone_number_list + * @param \DocuSign\eSign\Model\RecipientIdentityPhoneNumber[] $phone_number_list + * @return $this + */ + public function setPhoneNumberList($phone_number_list) + { + $this->container['phone_number_list'] = $phone_number_list; + + return $this; + } + + /** + * Gets value_type + * @return string + */ + public function getValueType() + { + return $this->container['value_type']; + } + + /** + * Sets value_type + * @param string $value_type + * @return $this + */ + public function setValueType($value_type) + { + $this->container['value_type'] = $value_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * @param integer $offset Offset + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/RecipientIdentityPhoneNumber.php b/src/Model/RecipientIdentityPhoneNumber.php new file mode 100644 index 00000000..ac80fc1a --- /dev/null +++ b/src/Model/RecipientIdentityPhoneNumber.php @@ -0,0 +1,279 @@ + 'string', + 'extension' => 'string', + 'number' => 'string' + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of attributes where the key is the local name, and the value is the original name + * @var string[] + */ + protected static $attributeMap = [ + 'country_code' => 'countryCode', + 'extension' => 'extension', + 'number' => 'number' + ]; + + + /** + * Array of attributes to setter functions (for deserialization of responses) + * @var string[] + */ + protected static $setters = [ + 'country_code' => 'setCountryCode', + 'extension' => 'setExtension', + 'number' => 'setNumber' + ]; + + + /** + * Array of attributes to getter functions (for serialization of requests) + * @var string[] + */ + protected static $getters = [ + 'country_code' => 'getCountryCode', + 'extension' => 'getExtension', + 'number' => 'getNumber' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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['country_code'] = isset($data['country_code']) ? $data['country_code'] : null; + $this->container['extension'] = isset($data['extension']) ? $data['extension'] : null; + $this->container['number'] = isset($data['number']) ? $data['number'] : null; + } + + /** + * show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalid_properties = []; + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properteis are valid + */ + public function valid() + { + return true; + } + + + /** + * Gets country_code + * @return string + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * @param string $country_code + * @return $this + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets extension + * @return string + */ + public function getExtension() + { + return $this->container['extension']; + } + + /** + * Sets extension + * @param string $extension + * @return $this + */ + public function setExtension($extension) + { + $this->container['extension'] = $extension; + + return $this; + } + + /** + * Gets number + * @return string + */ + public function getNumber() + { + return $this->container['number']; + } + + /** + * Sets number + * @param string $number + * @return $this + */ + public function setNumber($number) + { + $this->container['number'] = $number; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * @param integer $offset Offset + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/RecipientIdentityVerification.php b/src/Model/RecipientIdentityVerification.php new file mode 100644 index 00000000..81e60303 --- /dev/null +++ b/src/Model/RecipientIdentityVerification.php @@ -0,0 +1,253 @@ + '\DocuSign\eSign\Model\RecipientIdentityInputOption[]', + 'workflow_id' => 'string' + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of attributes where the key is the local name, and the value is the original name + * @var string[] + */ + protected static $attributeMap = [ + 'input_options' => 'inputOptions', + 'workflow_id' => 'workflowId' + ]; + + + /** + * Array of attributes to setter functions (for deserialization of responses) + * @var string[] + */ + protected static $setters = [ + 'input_options' => 'setInputOptions', + 'workflow_id' => 'setWorkflowId' + ]; + + + /** + * Array of attributes to getter functions (for serialization of requests) + * @var string[] + */ + protected static $getters = [ + 'input_options' => 'getInputOptions', + 'workflow_id' => 'getWorkflowId' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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['input_options'] = isset($data['input_options']) ? $data['input_options'] : null; + $this->container['workflow_id'] = isset($data['workflow_id']) ? $data['workflow_id'] : null; + } + + /** + * show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalid_properties = []; + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properteis are valid + */ + public function valid() + { + return true; + } + + + /** + * Gets input_options + * @return \DocuSign\eSign\Model\RecipientIdentityInputOption[] + */ + public function getInputOptions() + { + return $this->container['input_options']; + } + + /** + * Sets input_options + * @param \DocuSign\eSign\Model\RecipientIdentityInputOption[] $input_options + * @return $this + */ + public function setInputOptions($input_options) + { + $this->container['input_options'] = $input_options; + + return $this; + } + + /** + * Gets workflow_id + * @return string + */ + public function getWorkflowId() + { + return $this->container['workflow_id']; + } + + /** + * Sets workflow_id + * @param string $workflow_id + * @return $this + */ + public function setWorkflowId($workflow_id) + { + $this->container['workflow_id'] = $workflow_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * @param integer $offset Offset + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/RecipientProofFile.php b/src/Model/RecipientProofFile.php new file mode 100644 index 00000000..9412639e --- /dev/null +++ b/src/Model/RecipientProofFile.php @@ -0,0 +1,227 @@ + 'string' + ]; + + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of attributes where the key is the local name, and the value is the original name + * @var string[] + */ + protected static $attributeMap = [ + 'is_in_proof_file' => 'isInProofFile' + ]; + + + /** + * Array of attributes to setter functions (for deserialization of responses) + * @var string[] + */ + protected static $setters = [ + 'is_in_proof_file' => 'setIsInProofFile' + ]; + + + /** + * Array of attributes to getter functions (for serialization of requests) + * @var string[] + */ + protected static $getters = [ + 'is_in_proof_file' => 'getIsInProofFile' + ]; + + public static function attributeMap() + { + return self::$attributeMap; + } + + public static function setters() + { + return self::$setters; + } + + public static function getters() + { + return self::$getters; + } + + + + + + /** + * 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['is_in_proof_file'] = isset($data['is_in_proof_file']) ? $data['is_in_proof_file'] : null; + } + + /** + * show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalid_properties = []; + return $invalid_properties; + } + + /** + * validate all the properties in the model + * return true if all passed + * + * @return bool True if all properteis are valid + */ + public function valid() + { + return true; + } + + + /** + * Gets is_in_proof_file + * @return string + */ + public function getIsInProofFile() + { + return $this->container['is_in_proof_file']; + } + + /** + * Sets is_in_proof_file + * @param string $is_in_proof_file + * @return $this + */ + public function setIsInProofFile($is_in_proof_file) + { + $this->container['is_in_proof_file'] = $is_in_proof_file; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * @param integer $offset Offset + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * @param integer $offset Offset + * @return mixed + */ + 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 + */ + 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 + */ + 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(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + } + + return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/Signer.php b/src/Model/Signer.php index d7d35fda..749a6c81 100644 --- a/src/Model/Signer.php +++ b/src/Model/Signer.php @@ -81,6 +81,7 @@ class Signer implements ArrayAccess 'full_name' => 'string', 'id_check_configuration_name' => 'string', 'id_check_information_input' => '\DocuSign\eSign\Model\IdCheckInformationInput', + 'identity_verification' => '\DocuSign\eSign\Model\RecipientIdentityVerification', 'inherit_email_notification_configuration' => 'string', 'is_bulk_recipient' => 'string', 'last_name' => 'string', @@ -88,6 +89,7 @@ class Signer implements ArrayAccess 'note' => 'string', 'offline_attributes' => '\DocuSign\eSign\Model\OfflineAttributes', 'phone_authentication' => '\DocuSign\eSign\Model\RecipientPhoneAuthentication', + 'proof_file' => '\DocuSign\eSign\Model\RecipientProofFile', 'recipient_attachments' => '\DocuSign\eSign\Model\RecipientAttachment[]', 'recipient_authentication_status' => '\DocuSign\eSign\Model\AuthenticationStatus', 'recipient_id' => 'string', @@ -154,6 +156,7 @@ public static function swaggerTypes() 'full_name' => 'fullName', 'id_check_configuration_name' => 'idCheckConfigurationName', 'id_check_information_input' => 'idCheckInformationInput', + 'identity_verification' => 'identityVerification', 'inherit_email_notification_configuration' => 'inheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'isBulkRecipient', 'last_name' => 'lastName', @@ -161,6 +164,7 @@ public static function swaggerTypes() 'note' => 'note', 'offline_attributes' => 'offlineAttributes', 'phone_authentication' => 'phoneAuthentication', + 'proof_file' => 'proofFile', 'recipient_attachments' => 'recipientAttachments', 'recipient_authentication_status' => 'recipientAuthenticationStatus', 'recipient_id' => 'recipientId', @@ -223,6 +227,7 @@ public static function swaggerTypes() 'full_name' => 'setFullName', 'id_check_configuration_name' => 'setIdCheckConfigurationName', 'id_check_information_input' => 'setIdCheckInformationInput', + 'identity_verification' => 'setIdentityVerification', 'inherit_email_notification_configuration' => 'setInheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'setIsBulkRecipient', 'last_name' => 'setLastName', @@ -230,6 +235,7 @@ public static function swaggerTypes() 'note' => 'setNote', 'offline_attributes' => 'setOfflineAttributes', 'phone_authentication' => 'setPhoneAuthentication', + 'proof_file' => 'setProofFile', 'recipient_attachments' => 'setRecipientAttachments', 'recipient_authentication_status' => 'setRecipientAuthenticationStatus', 'recipient_id' => 'setRecipientId', @@ -292,6 +298,7 @@ public static function swaggerTypes() 'full_name' => 'getFullName', 'id_check_configuration_name' => 'getIdCheckConfigurationName', 'id_check_information_input' => 'getIdCheckInformationInput', + 'identity_verification' => 'getIdentityVerification', 'inherit_email_notification_configuration' => 'getInheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'getIsBulkRecipient', 'last_name' => 'getLastName', @@ -299,6 +306,7 @@ public static function swaggerTypes() 'note' => 'getNote', 'offline_attributes' => 'getOfflineAttributes', 'phone_authentication' => 'getPhoneAuthentication', + 'proof_file' => 'getProofFile', 'recipient_attachments' => 'getRecipientAttachments', 'recipient_authentication_status' => 'getRecipientAuthenticationStatus', 'recipient_id' => 'getRecipientId', @@ -386,6 +394,7 @@ public function __construct(array $data = null) $this->container['full_name'] = isset($data['full_name']) ? $data['full_name'] : null; $this->container['id_check_configuration_name'] = isset($data['id_check_configuration_name']) ? $data['id_check_configuration_name'] : null; $this->container['id_check_information_input'] = isset($data['id_check_information_input']) ? $data['id_check_information_input'] : null; + $this->container['identity_verification'] = isset($data['identity_verification']) ? $data['identity_verification'] : null; $this->container['inherit_email_notification_configuration'] = isset($data['inherit_email_notification_configuration']) ? $data['inherit_email_notification_configuration'] : null; $this->container['is_bulk_recipient'] = isset($data['is_bulk_recipient']) ? $data['is_bulk_recipient'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; @@ -393,6 +402,7 @@ public function __construct(array $data = null) $this->container['note'] = isset($data['note']) ? $data['note'] : null; $this->container['offline_attributes'] = isset($data['offline_attributes']) ? $data['offline_attributes'] : null; $this->container['phone_authentication'] = isset($data['phone_authentication']) ? $data['phone_authentication'] : null; + $this->container['proof_file'] = isset($data['proof_file']) ? $data['proof_file'] : null; $this->container['recipient_attachments'] = isset($data['recipient_attachments']) ? $data['recipient_attachments'] : null; $this->container['recipient_authentication_status'] = isset($data['recipient_authentication_status']) ? $data['recipient_authentication_status'] : null; $this->container['recipient_id'] = isset($data['recipient_id']) ? $data['recipient_id'] : null; @@ -1012,6 +1022,27 @@ public function setIdCheckInformationInput($id_check_information_input) return $this; } + /** + * Gets identity_verification + * @return \DocuSign\eSign\Model\RecipientIdentityVerification + */ + public function getIdentityVerification() + { + return $this->container['identity_verification']; + } + + /** + * Sets identity_verification + * @param \DocuSign\eSign\Model\RecipientIdentityVerification $identity_verification + * @return $this + */ + public function setIdentityVerification($identity_verification) + { + $this->container['identity_verification'] = $identity_verification; + + return $this; + } + /** * Gets inherit_email_notification_configuration * @return string @@ -1159,6 +1190,27 @@ public function setPhoneAuthentication($phone_authentication) return $this; } + /** + * Gets proof_file + * @return \DocuSign\eSign\Model\RecipientProofFile + */ + public function getProofFile() + { + return $this->container['proof_file']; + } + + /** + * Sets proof_file + * @param \DocuSign\eSign\Model\RecipientProofFile $proof_file + * @return $this + */ + public function setProofFile($proof_file) + { + $this->container['proof_file'] = $proof_file; + + return $this; + } + /** * Gets recipient_attachments * @return \DocuSign\eSign\Model\RecipientAttachment[] diff --git a/src/Model/SmartSectionDisplaySettings.php b/src/Model/SmartSectionDisplaySettings.php index 2bf6fb4b..6960327f 100644 --- a/src/Model/SmartSectionDisplaySettings.php +++ b/src/Model/SmartSectionDisplaySettings.php @@ -63,6 +63,7 @@ class SmartSectionDisplaySettings implements ArrayAccess 'hide_label_when_opened' => 'bool', 'inline_outer_style' => 'string', 'label_when_opened' => 'string', + 'pre_label' => 'string', 'scroll_to_top_when_opened' => 'bool', 'table_style' => 'string' ]; @@ -86,6 +87,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'hideLabelWhenOpened', 'inline_outer_style' => 'inlineOuterStyle', 'label_when_opened' => 'labelWhenOpened', + 'pre_label' => 'preLabel', 'scroll_to_top_when_opened' => 'scrollToTopWhenOpened', 'table_style' => 'tableStyle' ]; @@ -105,6 +107,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'setHideLabelWhenOpened', 'inline_outer_style' => 'setInlineOuterStyle', 'label_when_opened' => 'setLabelWhenOpened', + 'pre_label' => 'setPreLabel', 'scroll_to_top_when_opened' => 'setScrollToTopWhenOpened', 'table_style' => 'setTableStyle' ]; @@ -124,6 +127,7 @@ public static function swaggerTypes() 'hide_label_when_opened' => 'getHideLabelWhenOpened', 'inline_outer_style' => 'getInlineOuterStyle', 'label_when_opened' => 'getLabelWhenOpened', + 'pre_label' => 'getPreLabel', 'scroll_to_top_when_opened' => 'getScrollToTopWhenOpened', 'table_style' => 'getTableStyle' ]; @@ -168,6 +172,7 @@ public function __construct(array $data = null) $this->container['hide_label_when_opened'] = isset($data['hide_label_when_opened']) ? $data['hide_label_when_opened'] : null; $this->container['inline_outer_style'] = isset($data['inline_outer_style']) ? $data['inline_outer_style'] : null; $this->container['label_when_opened'] = isset($data['label_when_opened']) ? $data['label_when_opened'] : null; + $this->container['pre_label'] = isset($data['pre_label']) ? $data['pre_label'] : null; $this->container['scroll_to_top_when_opened'] = isset($data['scroll_to_top_when_opened']) ? $data['scroll_to_top_when_opened'] : null; $this->container['table_style'] = isset($data['table_style']) ? $data['table_style'] : null; } @@ -384,6 +389,27 @@ public function setLabelWhenOpened($label_when_opened) return $this; } + /** + * Gets pre_label + * @return string + */ + public function getPreLabel() + { + return $this->container['pre_label']; + } + + /** + * Sets pre_label + * @param string $pre_label + * @return $this + */ + public function setPreLabel($pre_label) + { + $this->container['pre_label'] = $pre_label; + + return $this; + } + /** * Gets scroll_to_top_when_opened * @return bool diff --git a/src/Model/Witness.php b/src/Model/Witness.php index 93ebbba4..b19c18cc 100644 --- a/src/Model/Witness.php +++ b/src/Model/Witness.php @@ -81,6 +81,7 @@ class Witness implements ArrayAccess 'full_name' => 'string', 'id_check_configuration_name' => 'string', 'id_check_information_input' => '\DocuSign\eSign\Model\IdCheckInformationInput', + 'identity_verification' => '\DocuSign\eSign\Model\RecipientIdentityVerification', 'inherit_email_notification_configuration' => 'string', 'is_bulk_recipient' => 'string', 'last_name' => 'string', @@ -88,6 +89,7 @@ class Witness implements ArrayAccess 'note' => 'string', 'offline_attributes' => '\DocuSign\eSign\Model\OfflineAttributes', 'phone_authentication' => '\DocuSign\eSign\Model\RecipientPhoneAuthentication', + 'proof_file' => '\DocuSign\eSign\Model\RecipientProofFile', 'recipient_attachments' => '\DocuSign\eSign\Model\RecipientAttachment[]', 'recipient_authentication_status' => '\DocuSign\eSign\Model\AuthenticationStatus', 'recipient_id' => 'string', @@ -156,6 +158,7 @@ public static function swaggerTypes() 'full_name' => 'fullName', 'id_check_configuration_name' => 'idCheckConfigurationName', 'id_check_information_input' => 'idCheckInformationInput', + 'identity_verification' => 'identityVerification', 'inherit_email_notification_configuration' => 'inheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'isBulkRecipient', 'last_name' => 'lastName', @@ -163,6 +166,7 @@ public static function swaggerTypes() 'note' => 'note', 'offline_attributes' => 'offlineAttributes', 'phone_authentication' => 'phoneAuthentication', + 'proof_file' => 'proofFile', 'recipient_attachments' => 'recipientAttachments', 'recipient_authentication_status' => 'recipientAuthenticationStatus', 'recipient_id' => 'recipientId', @@ -227,6 +231,7 @@ public static function swaggerTypes() 'full_name' => 'setFullName', 'id_check_configuration_name' => 'setIdCheckConfigurationName', 'id_check_information_input' => 'setIdCheckInformationInput', + 'identity_verification' => 'setIdentityVerification', 'inherit_email_notification_configuration' => 'setInheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'setIsBulkRecipient', 'last_name' => 'setLastName', @@ -234,6 +239,7 @@ public static function swaggerTypes() 'note' => 'setNote', 'offline_attributes' => 'setOfflineAttributes', 'phone_authentication' => 'setPhoneAuthentication', + 'proof_file' => 'setProofFile', 'recipient_attachments' => 'setRecipientAttachments', 'recipient_authentication_status' => 'setRecipientAuthenticationStatus', 'recipient_id' => 'setRecipientId', @@ -298,6 +304,7 @@ public static function swaggerTypes() 'full_name' => 'getFullName', 'id_check_configuration_name' => 'getIdCheckConfigurationName', 'id_check_information_input' => 'getIdCheckInformationInput', + 'identity_verification' => 'getIdentityVerification', 'inherit_email_notification_configuration' => 'getInheritEmailNotificationConfiguration', 'is_bulk_recipient' => 'getIsBulkRecipient', 'last_name' => 'getLastName', @@ -305,6 +312,7 @@ public static function swaggerTypes() 'note' => 'getNote', 'offline_attributes' => 'getOfflineAttributes', 'phone_authentication' => 'getPhoneAuthentication', + 'proof_file' => 'getProofFile', 'recipient_attachments' => 'getRecipientAttachments', 'recipient_authentication_status' => 'getRecipientAuthenticationStatus', 'recipient_id' => 'getRecipientId', @@ -394,6 +402,7 @@ public function __construct(array $data = null) $this->container['full_name'] = isset($data['full_name']) ? $data['full_name'] : null; $this->container['id_check_configuration_name'] = isset($data['id_check_configuration_name']) ? $data['id_check_configuration_name'] : null; $this->container['id_check_information_input'] = isset($data['id_check_information_input']) ? $data['id_check_information_input'] : null; + $this->container['identity_verification'] = isset($data['identity_verification']) ? $data['identity_verification'] : null; $this->container['inherit_email_notification_configuration'] = isset($data['inherit_email_notification_configuration']) ? $data['inherit_email_notification_configuration'] : null; $this->container['is_bulk_recipient'] = isset($data['is_bulk_recipient']) ? $data['is_bulk_recipient'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; @@ -401,6 +410,7 @@ public function __construct(array $data = null) $this->container['note'] = isset($data['note']) ? $data['note'] : null; $this->container['offline_attributes'] = isset($data['offline_attributes']) ? $data['offline_attributes'] : null; $this->container['phone_authentication'] = isset($data['phone_authentication']) ? $data['phone_authentication'] : null; + $this->container['proof_file'] = isset($data['proof_file']) ? $data['proof_file'] : null; $this->container['recipient_attachments'] = isset($data['recipient_attachments']) ? $data['recipient_attachments'] : null; $this->container['recipient_authentication_status'] = isset($data['recipient_authentication_status']) ? $data['recipient_authentication_status'] : null; $this->container['recipient_id'] = isset($data['recipient_id']) ? $data['recipient_id'] : null; @@ -1022,6 +1032,27 @@ public function setIdCheckInformationInput($id_check_information_input) return $this; } + /** + * Gets identity_verification + * @return \DocuSign\eSign\Model\RecipientIdentityVerification + */ + public function getIdentityVerification() + { + return $this->container['identity_verification']; + } + + /** + * Sets identity_verification + * @param \DocuSign\eSign\Model\RecipientIdentityVerification $identity_verification + * @return $this + */ + public function setIdentityVerification($identity_verification) + { + $this->container['identity_verification'] = $identity_verification; + + return $this; + } + /** * Gets inherit_email_notification_configuration * @return string @@ -1169,6 +1200,27 @@ public function setPhoneAuthentication($phone_authentication) return $this; } + /** + * Gets proof_file + * @return \DocuSign\eSign\Model\RecipientProofFile + */ + public function getProofFile() + { + return $this->container['proof_file']; + } + + /** + * Sets proof_file + * @param \DocuSign\eSign\Model\RecipientProofFile $proof_file + * @return $this + */ + public function setProofFile($proof_file) + { + $this->container['proof_file'] = $proof_file; + + return $this; + } + /** * Gets recipient_attachments * @return \DocuSign\eSign\Model\RecipientAttachment[] diff --git a/src/README.md b/src/README.md deleted file mode 100644 index a5f343b7..00000000 --- a/src/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# The Official DocuSign PHP Client - -[![Build status][travis-image]][travis-url] - -## Requirements - -- PHP 5.4+ -- Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531) - -## Compatibility - -- PHP 5.4+ - -## Note - -This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the [Developer Center](https://developers.docusign.com/esign-rest-api/code-examples), follow the installation instructions below. - -## Installation - -### Composer: - -1. In your **PHP console** , type: - **Composer require docusign/esign-client;** -2. To use the package automatically, add to Composer's **Autoload** file: - **require_once('vendor/autoload.php');** - -### Manual install: - -
    -
  1. Download or clone this repository.
  2. -
  3. Bind the PHP SDK to your server or place it in a static location. -
      -
    1. To bind to your server, edit the init.php file. Add:
      - require_once('/path/to/docusign-esign-client/autoload.php');
    2. -
    3. To bind to single pages: In your PHP file that will utilize the PHP SDK, add:
      - `require_once('/path/to/docusign-esign-client/autoload.php');
    4. -
    -
  4. -
- -## Dependencies - -This client has the following external dependencies: - -- [PHP cURL extension](https://www.php.net/manual/en/intro.curl.php) -- [PHP JSON extension](https://php.net/manual/en/book.json.php) - -## Code Examples - -### Launchers - -DocuSign provides a sample application referred to as a [Launcher](https://github.com/docusign/eg-03-php-auth-code-grant). The Launcher contains a set of 18 common use cases and associated source files. These examples use DocuSign's [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow. - -## Proof-of-concept applications - -If your goal is to create a proof-of-concept application, DocuSign provides a set of [Quick Start](https://github.com/docusign/qs-php) examples. The Quick Startexamples are meant to be used with DocuSign's [OAuth Token Generator](https://developers.docusign.com/oauth-token-generator), which will allow you to generate tokens for the Demo/Sandbox environment only. These tokens last for eight hours and will enable you to build your proof-of-concept application without the need to fully implement an OAuth solution. - -## OAuth Implementations - -For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API Authentication Overview](https://developers.docusign.com/esign-rest-api/guides/authentication) guide located on the [DocuSign Developer Center](https://developers.docusign.com/esign-rest-api/guides/authentication). - -For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow. - -There are other use-case scenarios, such as **single-page applications** (SPA) that use **Cross-Origin Resource Sharing** (CORS), or where there may not be a user to interact with your Service Account. For these use cases, DocuSign also supports [JWT](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) and [Implicit](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-implicit) grants. For code examples, see the links below: - -- [JWT (JSON Web Token)](https://github.com/docusign/eg-03-php-auth-code-grant) -- Implicit Grant (coming soon) - -## Support - -Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi). - -## License - -The DocuSign PHP Client is licensed under the [MIT License](https://github.com/docusign/docusign-php-client/blob/master/LICENSE). - -[travis-image]: https://img.shields.io/travis/docusign/docusign-php-client.svg?style=flat -[travis-url]: https://travis-ci.org/docusign/docusign-php-client diff --git a/test/TestConfig.php b/test/TestConfig.php index 3ba60796..524de100 100644 --- a/test/TestConfig.php +++ b/test/TestConfig.php @@ -96,7 +96,7 @@ class TestConfig public function __construct($integratorKey = null, $host = null, $returnUrl = null, $envelopeId = null, $secret = null, $key = null, $userId = null, $privateKey = null) { - $this->host = !empty($host) ? $host : getenv('REDIRECT_URI'); + $this->host = !empty($host) ? $host : 'https://demo.docusign.net/restapi'; $this->integratorKey = !empty($integratorKey) ? $integratorKey : getenv('INTEGRATOR_KEY_JWT'); $this->clientSecret = !empty($secret) ? $secret : getenv('CLIENT_SECRET'); $this->clientKey = !empty($key) ? $key : 'Docs/private.pem'; @@ -108,7 +108,7 @@ public function __construct($integratorKey = null, $host = null, $returnUrl = nu $this->templateRoleName = !empty($templateRoleName) ? $templateRoleName : 'Manager'; $this->templateId = !empty($templateId) ? $templateId : getenv('TEMPLATE_ID'); - $this->returnUrl = !empty($returnUrl) ? $returnUrl : 'https://www.docusign.com/api'; + $this->returnUrl = !empty($returnUrl) ? $returnUrl : getenv('REDIRECT_URI'); $this->envelopeId = !empty($envelopeId) ? $envelopeId : ''; $this->userId = !empty($userId) ? $userId : getenv('USER_ID'); //can be taken from generateAccessToken returned result diff --git a/test/UnitTests.php b/test/UnitTests.php index 310e77f5..a4c8c34b 100644 --- a/test/UnitTests.php +++ b/test/UnitTests.php @@ -124,8 +124,16 @@ function signatureRequestOnDocument($testConfig, $status = "sent", $embeddedSign $signHere->setPageNumber("1"); $signHere->setRecipientId("1"); + $numberTab = new \DocuSign\eSign\Model\Number(); + $numberTab->setXPosition("100"); + $numberTab->setYPosition("100"); + $numberTab->setDocumentId("1"); + $numberTab->setPageNumber("1"); + $numberTab->setRecipientId("1"); + $tabs = new DocuSign\eSign\Model\Tabs(); $tabs->setSignHereTabs(array($signHere)); + $tabs->setNumberTabs(array($numberTab)); $signer = new \DocuSign\eSign\Model\Signer(); $signer->setEmail($testConfig->getRecipientEmail()); @@ -365,6 +373,28 @@ public function testCreateEmbeddedConsoleView($testConfig) return $testConfig; } + + /** + * @depends testSignatureRequestOnDocument + */ + public function testNumberTabs($testConfig) + { + $testConfig = $this->testSignatureRequestOnDocument($testConfig, "created", true); + $envelopesApi = new DocuSign\eSign\Api\EnvelopesApi($testConfig->getApiClient()); + + $options = new \DocuSign\eSign\Api\EnvelopesApi\GetEnvelopeOptions(); + $options->setInclude("tabs,recipients"); + + $createdEnvelope = $envelopesApi->getEnvelope($testConfig->getAccountId(), $testConfig->getEnvelopeId()); + $recipients = $envelopesApi->listRecipients($testConfig->getAccountId(), $createdEnvelope->getEnvelopeId()); + $tabs = $envelopesApi->listTabs($testConfig->getAccountId(), $testConfig->getEnvelopeId(), $recipients->getSigners()[0]->getRecipientId()); + $numberTabs = $tabs->getNumberTabs(); + + $this->assertNotNull($numberTabs); + $this->assertEquals(count($numberTabs), 1); + + return $testConfig; + } } -?> \ No newline at end of file +?>