From 337c149cd1000bed4648cd5b422083bd486738ce Mon Sep 17 00:00:00 2001 From: Nima Poulad_DS Date: Tue, 11 Jan 2022 08:56:00 -0800 Subject: [PATCH] Version 6.6.0 release (#162) * Version 6.6.0-v2.1-21.4.01.00 release * Fixed test case to support phpunit version 9 Co-authored-by: root Co-authored-by: Dhaval --- CHANGELOG.md | 5 + src/Api/BillingApi.php | 30 + src/Api/BulkProcessDataApi.php | 836 ++++++++++++++++++ src/Api/BulkProcessDataSendApi.php | 542 ++++++++++++ src/Model/AccountBillingPlan.php | 40 +- src/Model/AccountBillingPlanResponse.php | 40 +- src/Model/AccountSettingsInformation.php | 120 +++ src/Model/BillingPlanInformation.php | 40 +- src/Model/BulkProcessRequest.php | 332 +++++++ src/Model/BulkProcessResponse.php | 482 ++++++++++ src/Model/BulkProcessResult.php | 362 ++++++++ src/Model/BulkProcessingListSummaries.php | 302 +++++++ src/Model/BulkProcessingListSummary.php | 392 ++++++++ src/Model/BulkProcessingLists.php | 302 +++++++ src/Model/BulkSendBatchError.php | 332 +++++++ src/Model/BulkSendBatchSummaries.php | 60 ++ src/Model/Currency.php | 60 ++ src/Model/Envelope.php | 30 + src/Model/EnvelopeCustomMetadata.php | 302 +++++++ src/Model/EnvelopeDefinition.php | 30 + src/Model/EnvelopeTemplate.php | 30 + src/Model/Group.php | 30 + src/Model/NewAccountDefinition.php | 40 +- src/Model/TabMetadata.php | 60 ++ ...erAccountManagementGranularInformation.php | 60 ++ test/UnitTests.php | 18 +- 26 files changed, 4854 insertions(+), 23 deletions(-) create mode 100644 src/Api/BulkProcessDataApi.php create mode 100644 src/Api/BulkProcessDataSendApi.php create mode 100644 src/Model/BulkProcessRequest.php create mode 100644 src/Model/BulkProcessResponse.php create mode 100644 src/Model/BulkProcessResult.php create mode 100644 src/Model/BulkProcessingListSummaries.php create mode 100644 src/Model/BulkProcessingListSummary.php create mode 100644 src/Model/BulkProcessingLists.php create mode 100644 src/Model/BulkSendBatchError.php create mode 100644 src/Model/EnvelopeCustomMetadata.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 110785b6..d6a9cf81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. +## [v6.6.0] - eSignature API v2.1-21.4.01.00 - 2022-01-06 +### Changed +- Added support for version v2.1-21.4.01.00 of the DocuSign ESignature API. +- Updated the SDK release version. + ## [6.6.0-rc] - ESignature API v2.1-21.4.00.00 - 2021-12-13 ### Changed - Added support for version v2.1-21.4.00.00 of the DocuSign ESignature API. diff --git a/src/Api/BillingApi.php b/src/Api/BillingApi.php index 55180329..15fb4563 100644 --- a/src/Api/BillingApi.php +++ b/src/Api/BillingApi.php @@ -152,6 +152,33 @@ public function setIncludeSuccessorPlans(?string $include_successor_plans): self $this->include_successor_plans = $include_successor_plans; return $this; } + /** + * $include_tax_exempt_id + * @var ?string + */ + protected ?string $include_tax_exempt_id = null; + + /** + * Gets include_tax_exempt_id + * + * @return ?string + */ + public function getIncludeTaxExemptId(): ?string + { + return $this->include_tax_exempt_id; + } + + /** + * Sets include_tax_exempt_id + * @param ?string $include_tax_exempt_id + * + * @return self + */ + public function setIncludeTaxExemptId(?string $include_tax_exempt_id): self + { + $this->include_tax_exempt_id = $include_tax_exempt_id; + return $this; + } } @@ -923,6 +950,9 @@ public function getPlanWithHttpInfo($account_id, \DocuSign\eSign\Api\BillingApi\ if ($options->getIncludeSuccessorPlans() != 'null') { $queryParams['include_successor_plans'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeSuccessorPlans()); } + if ($options->getIncludeTaxExemptId() != 'null') { + $queryParams['include_tax_exempt_id'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeTaxExemptId()); + } } // path params diff --git a/src/Api/BulkProcessDataApi.php b/src/Api/BulkProcessDataApi.php new file mode 100644 index 00000000..4110867e --- /dev/null +++ b/src/Api/BulkProcessDataApi.php @@ -0,0 +1,836 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Api\BulkProcessDataApi; + + + +namespace DocuSign\eSign\Api; + +use DocuSign\eSign\Client\ApiClient; +use DocuSign\eSign\Client\ApiException; +use DocuSign\eSign\Configuration; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessDataApi Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessDataApi +{ + /** + * API Client + * + * @var ApiClient instance of the ApiClient + */ + protected ApiClient $apiClient; + + /** + * Constructor + * + * @param ApiClient|null $apiClient The api client to use + * + * @return void + */ + public function __construct(ApiClient $apiClient = null) + { + $this->apiClient = $apiClient ?? new ApiClient(); + } + + /** + * Get API client + * + * @return ApiClient get the API client + */ + public function getApiClient(): ApiClient + { + return $this->apiClient; + } + + /** + * Set the API client + * + * @param ApiClient $apiClient set the API client + * + * @return self + */ + public function setApiClient(ApiClient $apiClient): self + { + $this->apiClient = $apiClient; + return $this; + } + + /** + * Update $resourcePath with $ + * + * @param string $resourcePath the resource path to use + * @param string $baseName the base name param + * @param string $paramName the parameter name + * + * @return string + */ + public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string + { + return str_replace( + "{" . $baseName . "}", + $this->apiClient->getSerializer()->toPathValue($paramName), + $resourcePath + ); + } + + + /** + * Operation createBulkProcessRequest + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return mixed + */ + public function createBulkProcessRequest($account_id, $process_action) + { + list($response) = $this->createBulkProcessRequestWithHttpInfo($account_id, $process_action); + return $response; + } + + /** + * Operation createBulkProcessRequestWithHttpInfo + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createBulkProcessRequestWithHttpInfo($account_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling createBulkProcessRequest'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling createBulkProcessRequest'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}' + ); + + 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 createBulkProcessRequestToQueue + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessRequest $bulk_process_request (optional) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessResponse + */ + public function createBulkProcessRequestToQueue($account_id, $bulk_process_list_id, $process_action, $bulk_process_request = null) + { + list($response) = $this->createBulkProcessRequestToQueueWithHttpInfo($account_id, $bulk_process_list_id, $process_action, $bulk_process_request); + return $response; + } + + /** + * Operation createBulkProcessRequestToQueueWithHttpInfo + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessRequest $bulk_process_request (optional) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function createBulkProcessRequestToQueueWithHttpInfo($account_id, $bulk_process_list_id, $process_action, $bulk_process_request = null): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling createBulkProcessRequestToQueue'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling createBulkProcessRequestToQueue'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling createBulkProcessRequestToQueue'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($bulk_process_request)) { + $_tempBody = $bulk_process_request; + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessResponse', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessResponse', $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 deleteBulkProcessList + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessResult + */ + public function deleteBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->deleteBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation deleteBulkProcessListWithHttpInfo + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling deleteBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling deleteBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessResult', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessResult', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessResult', $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 deleteBulkProcessLists + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessingLists $bulk_processing_lists (optional) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessResult + */ + public function deleteBulkProcessLists($account_id, $process_action, $bulk_processing_lists = null) + { + list($response) = $this->deleteBulkProcessListsWithHttpInfo($account_id, $process_action, $bulk_processing_lists); + return $response; + } + + /** + * Operation deleteBulkProcessListsWithHttpInfo + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessingLists $bulk_processing_lists (optional) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteBulkProcessListsWithHttpInfo($account_id, $process_action, $bulk_processing_lists = null): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteBulkProcessLists'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling deleteBulkProcessLists'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($bulk_processing_lists)) { + $_tempBody = $bulk_processing_lists; + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessResult', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessResult', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessResult', $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 getBulkProcessList + * + * Gets a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return mixed + */ + public function getBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->getBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation getBulkProcessListWithHttpInfo + * + * Gets a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling getBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling getBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}' + ); + + 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 getBulkProcessLists + * + * Lists top-level details for all bulk process lists visible to the current user + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessingListSummaries + */ + public function getBulkProcessLists($account_id, $process_action) + { + list($response) = $this->getBulkProcessListsWithHttpInfo($account_id, $process_action); + return $response; + } + + /** + * Operation getBulkProcessListsWithHttpInfo + * + * Lists top-level details for all bulk process lists visible to the current user + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessingListSummaries, HTTP status code, HTTP response headers (array of strings) + */ + public function getBulkProcessListsWithHttpInfo($account_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getBulkProcessLists'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling getBulkProcessLists'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessingListSummaries', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessingListSummaries', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessingListSummaries', $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 updateBulkProcessList + * + * Updates a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return mixed + */ + public function updateBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->updateBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation updateBulkProcessListWithHttpInfo + * + * Updates a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling updateBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling updateBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling updateBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'PUT', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}' + ); + + 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/BulkProcessDataSendApi.php b/src/Api/BulkProcessDataSendApi.php new file mode 100644 index 00000000..a1e8943f --- /dev/null +++ b/src/Api/BulkProcessDataSendApi.php @@ -0,0 +1,542 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Api\BulkProcessDataSendApi; + + + +namespace DocuSign\eSign\Api; + +use DocuSign\eSign\Client\ApiClient; +use DocuSign\eSign\Client\ApiException; +use DocuSign\eSign\Configuration; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessDataSendApi Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessDataSendApi +{ + /** + * API Client + * + * @var ApiClient instance of the ApiClient + */ + protected ApiClient $apiClient; + + /** + * Constructor + * + * @param ApiClient|null $apiClient The api client to use + * + * @return void + */ + public function __construct(ApiClient $apiClient = null) + { + $this->apiClient = $apiClient ?? new ApiClient(); + } + + /** + * Get API client + * + * @return ApiClient get the API client + */ + public function getApiClient(): ApiClient + { + return $this->apiClient; + } + + /** + * Set the API client + * + * @param ApiClient $apiClient set the API client + * + * @return self + */ + public function setApiClient(ApiClient $apiClient): self + { + $this->apiClient = $apiClient; + return $this; + } + + /** + * Update $resourcePath with $ + * + * @param string $resourcePath the resource path to use + * @param string $baseName the base name param + * @param string $paramName the parameter name + * + * @return string + */ + public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string + { + return str_replace( + "{" . $baseName . "}", + $this->apiClient->getSerializer()->toPathValue($paramName), + $resourcePath + ); + } + + + /** + * Operation createBulkProcessRequestToQueue + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessRequest $bulk_process_request (optional) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessResponse + */ + public function createBulkProcessRequestToQueue($account_id, $bulk_process_list_id, $process_action, $bulk_process_request = null) + { + list($response) = $this->createBulkProcessRequestToQueueWithHttpInfo($account_id, $bulk_process_list_id, $process_action, $bulk_process_request); + return $response; + } + + /** + * Operation createBulkProcessRequestToQueueWithHttpInfo + * + * Uses the specified bulk envelopes list to update the envelopes specified in the payload + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * @param \DocuSign\eSign\Model\BulkProcessRequest $bulk_process_request (optional) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function createBulkProcessRequestToQueueWithHttpInfo($account_id, $bulk_process_list_id, $process_action, $bulk_process_request = null): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling createBulkProcessRequestToQueue'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling createBulkProcessRequestToQueue'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling createBulkProcessRequestToQueue'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($bulk_process_request)) { + $_tempBody = $bulk_process_request; + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessResponse', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessResponse', $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 deleteBulkProcessList + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return \DocuSign\eSign\Model\BulkProcessResult + */ + public function deleteBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->deleteBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation deleteBulkProcessListWithHttpInfo + * + * Deletes a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\eSign\Model\BulkProcessResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling deleteBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling deleteBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\eSign\Model\BulkProcessResult', + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkProcessResult', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkProcessResult', $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 getBulkProcessList + * + * Gets a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return mixed + */ + public function getBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->getBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation getBulkProcessListWithHttpInfo + * + * Gets a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling getBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling getBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send' + ); + + 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 updateBulkProcessList + * + * Updates a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return mixed + */ + public function updateBulkProcessList($account_id, $bulk_process_list_id, $process_action) + { + list($response) = $this->updateBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action); + return $response; + } + + /** + * Operation updateBulkProcessListWithHttpInfo + * + * Updates a specific bulk process list + * + * @param ?string $account_id The external account number (int) or account ID Guid. + * @param ?string $bulk_process_list_id + * @param ?string $process_action + * + * @throws ApiException on non-2xx response + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateBulkProcessListWithHttpInfo($account_id, $bulk_process_list_id, $process_action): array + { + // verify the required parameter 'account_id' is set + if ($account_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $account_id when calling updateBulkProcessList'); + } + // verify the required parameter 'bulk_process_list_id' is set + if ($bulk_process_list_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $bulk_process_list_id when calling updateBulkProcessList'); + } + // verify the required parameter 'process_action' is set + if ($process_action === null) { + throw new \InvalidArgumentException('Missing the required parameter $process_action when calling updateBulkProcessList'); + } + // parse inputs + $resourcePath = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); + + + // path params + if ($account_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); + } + // path params + if ($bulk_process_list_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "bulkProcessListId", $bulk_process_list_id); + } + // path params + if ($process_action !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "processAction", $process_action); + } + + // 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) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'PUT', + $queryParams, + $httpBody, + $headerParams, + null, + '/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send' + ); + + 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/Model/AccountBillingPlan.php b/src/Model/AccountBillingPlan.php index 1ba6bca3..6bf9d171 100644 --- a/src/Model/AccountBillingPlan.php +++ b/src/Model/AccountBillingPlan.php @@ -87,7 +87,8 @@ class AccountBillingPlan implements ModelInterface, ArrayAccess 'seat_discounts' => '\DocuSign\eSign\Model\SeatDiscount[]', 'subscription_start_date' => '?string', 'support_incident_fee' => '?string', - 'support_plan_fee' => '?string' + 'support_plan_fee' => '?string', + 'tax_exempt_id' => '?string' ]; /** @@ -123,7 +124,8 @@ class AccountBillingPlan implements ModelInterface, ArrayAccess 'seat_discounts' => null, 'subscription_start_date' => null, 'support_incident_fee' => null, - 'support_plan_fee' => null + 'support_plan_fee' => null, + 'tax_exempt_id' => null ]; /** @@ -180,7 +182,8 @@ public static function swaggerFormats() 'seat_discounts' => 'seatDiscounts', 'subscription_start_date' => 'subscriptionStartDate', 'support_incident_fee' => 'supportIncidentFee', - 'support_plan_fee' => 'supportPlanFee' + 'support_plan_fee' => 'supportPlanFee', + 'tax_exempt_id' => 'taxExemptId' ]; /** @@ -216,7 +219,8 @@ public static function swaggerFormats() 'seat_discounts' => 'setSeatDiscounts', 'subscription_start_date' => 'setSubscriptionStartDate', 'support_incident_fee' => 'setSupportIncidentFee', - 'support_plan_fee' => 'setSupportPlanFee' + 'support_plan_fee' => 'setSupportPlanFee', + 'tax_exempt_id' => 'setTaxExemptId' ]; /** @@ -252,7 +256,8 @@ public static function swaggerFormats() 'seat_discounts' => 'getSeatDiscounts', 'subscription_start_date' => 'getSubscriptionStartDate', 'support_incident_fee' => 'getSupportIncidentFee', - 'support_plan_fee' => 'getSupportPlanFee' + 'support_plan_fee' => 'getSupportPlanFee', + 'tax_exempt_id' => 'getTaxExemptId' ]; /** @@ -343,6 +348,7 @@ public function __construct(array $data = null) $this->container['subscription_start_date'] = isset($data['subscription_start_date']) ? $data['subscription_start_date'] : null; $this->container['support_incident_fee'] = isset($data['support_incident_fee']) ? $data['support_incident_fee'] : null; $this->container['support_plan_fee'] = isset($data['support_plan_fee']) ? $data['support_plan_fee'] : null; + $this->container['tax_exempt_id'] = isset($data['tax_exempt_id']) ? $data['tax_exempt_id'] : null; } /** @@ -1040,6 +1046,30 @@ public function setSupportPlanFee($support_plan_fee) return $this; } + + /** + * Gets tax_exempt_id + * + * @return ?string + */ + public function getTaxExemptId() + { + return $this->container['tax_exempt_id']; + } + + /** + * Sets tax_exempt_id + * + * @param ?string $tax_exempt_id + * + * @return $this + */ + public function setTaxExemptId($tax_exempt_id) + { + $this->container['tax_exempt_id'] = $tax_exempt_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/AccountBillingPlanResponse.php b/src/Model/AccountBillingPlanResponse.php index 87ef0964..f7480290 100644 --- a/src/Model/AccountBillingPlanResponse.php +++ b/src/Model/AccountBillingPlanResponse.php @@ -71,7 +71,8 @@ class AccountBillingPlanResponse implements ModelInterface, ArrayAccess 'payment_method' => '?string', 'payment_processor_information' => '\DocuSign\eSign\Model\PaymentProcessorInformation', 'referral_information' => '\DocuSign\eSign\Model\ReferralInformation', - 'successor_plans' => '\DocuSign\eSign\Model\BillingPlan[]' + 'successor_plans' => '\DocuSign\eSign\Model\BillingPlan[]', + 'tax_exempt_id' => '?string' ]; /** @@ -91,7 +92,8 @@ class AccountBillingPlanResponse implements ModelInterface, ArrayAccess 'payment_method' => null, 'payment_processor_information' => null, 'referral_information' => null, - 'successor_plans' => null + 'successor_plans' => null, + 'tax_exempt_id' => null ]; /** @@ -132,7 +134,8 @@ public static function swaggerFormats() 'payment_method' => 'paymentMethod', 'payment_processor_information' => 'paymentProcessorInformation', 'referral_information' => 'referralInformation', - 'successor_plans' => 'successorPlans' + 'successor_plans' => 'successorPlans', + 'tax_exempt_id' => 'taxExemptId' ]; /** @@ -152,7 +155,8 @@ public static function swaggerFormats() 'payment_method' => 'setPaymentMethod', 'payment_processor_information' => 'setPaymentProcessorInformation', 'referral_information' => 'setReferralInformation', - 'successor_plans' => 'setSuccessorPlans' + 'successor_plans' => 'setSuccessorPlans', + 'tax_exempt_id' => 'setTaxExemptId' ]; /** @@ -172,7 +176,8 @@ public static function swaggerFormats() 'payment_method' => 'getPaymentMethod', 'payment_processor_information' => 'getPaymentProcessorInformation', 'referral_information' => 'getReferralInformation', - 'successor_plans' => 'getSuccessorPlans' + 'successor_plans' => 'getSuccessorPlans', + 'tax_exempt_id' => 'getTaxExemptId' ]; /** @@ -247,6 +252,7 @@ public function __construct(array $data = null) $this->container['payment_processor_information'] = isset($data['payment_processor_information']) ? $data['payment_processor_information'] : null; $this->container['referral_information'] = isset($data['referral_information']) ? $data['referral_information'] : null; $this->container['successor_plans'] = isset($data['successor_plans']) ? $data['successor_plans'] : null; + $this->container['tax_exempt_id'] = isset($data['tax_exempt_id']) ? $data['tax_exempt_id'] : null; } /** @@ -560,6 +566,30 @@ public function setSuccessorPlans($successor_plans) return $this; } + + /** + * Gets tax_exempt_id + * + * @return ?string + */ + public function getTaxExemptId() + { + return $this->container['tax_exempt_id']; + } + + /** + * Sets tax_exempt_id + * + * @param ?string $tax_exempt_id + * + * @return $this + */ + public function setTaxExemptId($tax_exempt_id) + { + $this->container['tax_exempt_id'] = $tax_exempt_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/AccountSettingsInformation.php b/src/Model/AccountSettingsInformation.php index 4cc70924..7faef559 100644 --- a/src/Model/AccountSettingsInformation.php +++ b/src/Model/AccountSettingsInformation.php @@ -101,6 +101,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'allow_consumer_disclosure_override_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_data_download' => '?string', 'allow_data_download_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'allow_delayed_routing' => '?string', + 'allow_delayed_routing_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_delegated_signing' => '?string', 'allow_delegated_signing_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_document_disclosures' => '?string', @@ -193,6 +195,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'allow_resource_file_branding_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_safe_bio_pharma_signer_certificate' => '?string', 'allow_safe_bio_pharma_signer_certificate_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'allow_scheduled_sending' => '?string', + 'allow_scheduled_sending_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_security_appliance' => '?string', 'allow_security_appliance_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'allow_send_to_certified_delivery' => '?string', @@ -693,6 +697,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'allow_consumer_disclosure_override_metadata' => null, 'allow_data_download' => null, 'allow_data_download_metadata' => null, + 'allow_delayed_routing' => null, + 'allow_delayed_routing_metadata' => null, 'allow_delegated_signing' => null, 'allow_delegated_signing_metadata' => null, 'allow_document_disclosures' => null, @@ -785,6 +791,8 @@ class AccountSettingsInformation implements ModelInterface, ArrayAccess 'allow_resource_file_branding_metadata' => null, 'allow_safe_bio_pharma_signer_certificate' => null, 'allow_safe_bio_pharma_signer_certificate_metadata' => null, + 'allow_scheduled_sending' => null, + 'allow_scheduled_sending_metadata' => null, 'allow_security_appliance' => null, 'allow_security_appliance_metadata' => null, 'allow_send_to_certified_delivery' => null, @@ -1306,6 +1314,8 @@ public static function swaggerFormats() 'allow_consumer_disclosure_override_metadata' => 'allowConsumerDisclosureOverrideMetadata', 'allow_data_download' => 'allowDataDownload', 'allow_data_download_metadata' => 'allowDataDownloadMetadata', + 'allow_delayed_routing' => 'allowDelayedRouting', + 'allow_delayed_routing_metadata' => 'allowDelayedRoutingMetadata', 'allow_delegated_signing' => 'allowDelegatedSigning', 'allow_delegated_signing_metadata' => 'allowDelegatedSigningMetadata', 'allow_document_disclosures' => 'allowDocumentDisclosures', @@ -1398,6 +1408,8 @@ public static function swaggerFormats() 'allow_resource_file_branding_metadata' => 'allowResourceFileBrandingMetadata', 'allow_safe_bio_pharma_signer_certificate' => 'allowSafeBioPharmaSignerCertificate', 'allow_safe_bio_pharma_signer_certificate_metadata' => 'allowSafeBioPharmaSignerCertificateMetadata', + 'allow_scheduled_sending' => 'allowScheduledSending', + 'allow_scheduled_sending_metadata' => 'allowScheduledSendingMetadata', 'allow_security_appliance' => 'allowSecurityAppliance', 'allow_security_appliance_metadata' => 'allowSecurityApplianceMetadata', 'allow_send_to_certified_delivery' => 'allowSendToCertifiedDelivery', @@ -1898,6 +1910,8 @@ public static function swaggerFormats() 'allow_consumer_disclosure_override_metadata' => 'setAllowConsumerDisclosureOverrideMetadata', 'allow_data_download' => 'setAllowDataDownload', 'allow_data_download_metadata' => 'setAllowDataDownloadMetadata', + 'allow_delayed_routing' => 'setAllowDelayedRouting', + 'allow_delayed_routing_metadata' => 'setAllowDelayedRoutingMetadata', 'allow_delegated_signing' => 'setAllowDelegatedSigning', 'allow_delegated_signing_metadata' => 'setAllowDelegatedSigningMetadata', 'allow_document_disclosures' => 'setAllowDocumentDisclosures', @@ -1990,6 +2004,8 @@ public static function swaggerFormats() 'allow_resource_file_branding_metadata' => 'setAllowResourceFileBrandingMetadata', 'allow_safe_bio_pharma_signer_certificate' => 'setAllowSafeBioPharmaSignerCertificate', 'allow_safe_bio_pharma_signer_certificate_metadata' => 'setAllowSafeBioPharmaSignerCertificateMetadata', + 'allow_scheduled_sending' => 'setAllowScheduledSending', + 'allow_scheduled_sending_metadata' => 'setAllowScheduledSendingMetadata', 'allow_security_appliance' => 'setAllowSecurityAppliance', 'allow_security_appliance_metadata' => 'setAllowSecurityApplianceMetadata', 'allow_send_to_certified_delivery' => 'setAllowSendToCertifiedDelivery', @@ -2490,6 +2506,8 @@ public static function swaggerFormats() 'allow_consumer_disclosure_override_metadata' => 'getAllowConsumerDisclosureOverrideMetadata', 'allow_data_download' => 'getAllowDataDownload', 'allow_data_download_metadata' => 'getAllowDataDownloadMetadata', + 'allow_delayed_routing' => 'getAllowDelayedRouting', + 'allow_delayed_routing_metadata' => 'getAllowDelayedRoutingMetadata', 'allow_delegated_signing' => 'getAllowDelegatedSigning', 'allow_delegated_signing_metadata' => 'getAllowDelegatedSigningMetadata', 'allow_document_disclosures' => 'getAllowDocumentDisclosures', @@ -2582,6 +2600,8 @@ public static function swaggerFormats() 'allow_resource_file_branding_metadata' => 'getAllowResourceFileBrandingMetadata', 'allow_safe_bio_pharma_signer_certificate' => 'getAllowSafeBioPharmaSignerCertificate', 'allow_safe_bio_pharma_signer_certificate_metadata' => 'getAllowSafeBioPharmaSignerCertificateMetadata', + 'allow_scheduled_sending' => 'getAllowScheduledSending', + 'allow_scheduled_sending_metadata' => 'getAllowScheduledSendingMetadata', 'allow_security_appliance' => 'getAllowSecurityAppliance', 'allow_security_appliance_metadata' => 'getAllowSecurityApplianceMetadata', 'allow_send_to_certified_delivery' => 'getAllowSendToCertifiedDelivery', @@ -3136,6 +3156,8 @@ public function __construct(array $data = null) $this->container['allow_consumer_disclosure_override_metadata'] = isset($data['allow_consumer_disclosure_override_metadata']) ? $data['allow_consumer_disclosure_override_metadata'] : null; $this->container['allow_data_download'] = isset($data['allow_data_download']) ? $data['allow_data_download'] : null; $this->container['allow_data_download_metadata'] = isset($data['allow_data_download_metadata']) ? $data['allow_data_download_metadata'] : null; + $this->container['allow_delayed_routing'] = isset($data['allow_delayed_routing']) ? $data['allow_delayed_routing'] : null; + $this->container['allow_delayed_routing_metadata'] = isset($data['allow_delayed_routing_metadata']) ? $data['allow_delayed_routing_metadata'] : null; $this->container['allow_delegated_signing'] = isset($data['allow_delegated_signing']) ? $data['allow_delegated_signing'] : null; $this->container['allow_delegated_signing_metadata'] = isset($data['allow_delegated_signing_metadata']) ? $data['allow_delegated_signing_metadata'] : null; $this->container['allow_document_disclosures'] = isset($data['allow_document_disclosures']) ? $data['allow_document_disclosures'] : null; @@ -3228,6 +3250,8 @@ public function __construct(array $data = null) $this->container['allow_resource_file_branding_metadata'] = isset($data['allow_resource_file_branding_metadata']) ? $data['allow_resource_file_branding_metadata'] : null; $this->container['allow_safe_bio_pharma_signer_certificate'] = isset($data['allow_safe_bio_pharma_signer_certificate']) ? $data['allow_safe_bio_pharma_signer_certificate'] : null; $this->container['allow_safe_bio_pharma_signer_certificate_metadata'] = isset($data['allow_safe_bio_pharma_signer_certificate_metadata']) ? $data['allow_safe_bio_pharma_signer_certificate_metadata'] : null; + $this->container['allow_scheduled_sending'] = isset($data['allow_scheduled_sending']) ? $data['allow_scheduled_sending'] : null; + $this->container['allow_scheduled_sending_metadata'] = isset($data['allow_scheduled_sending_metadata']) ? $data['allow_scheduled_sending_metadata'] : null; $this->container['allow_security_appliance'] = isset($data['allow_security_appliance']) ? $data['allow_security_appliance'] : null; $this->container['allow_security_appliance_metadata'] = isset($data['allow_security_appliance_metadata']) ? $data['allow_security_appliance_metadata'] : null; $this->container['allow_send_to_certified_delivery'] = isset($data['allow_send_to_certified_delivery']) ? $data['allow_send_to_certified_delivery'] : null; @@ -4689,6 +4713,54 @@ public function setAllowDataDownloadMetadata($allow_data_download_metadata) return $this; } + /** + * Gets allow_delayed_routing + * + * @return ?string + */ + public function getAllowDelayedRouting() + { + return $this->container['allow_delayed_routing']; + } + + /** + * Sets allow_delayed_routing + * + * @param ?string $allow_delayed_routing + * + * @return $this + */ + public function setAllowDelayedRouting($allow_delayed_routing) + { + $this->container['allow_delayed_routing'] = $allow_delayed_routing; + + return $this; + } + + /** + * Gets allow_delayed_routing_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getAllowDelayedRoutingMetadata() + { + return $this->container['allow_delayed_routing_metadata']; + } + + /** + * Sets allow_delayed_routing_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $allow_delayed_routing_metadata allow_delayed_routing_metadata + * + * @return $this + */ + public function setAllowDelayedRoutingMetadata($allow_delayed_routing_metadata) + { + $this->container['allow_delayed_routing_metadata'] = $allow_delayed_routing_metadata; + + return $this; + } + /** * Gets allow_delegated_signing * @@ -6897,6 +6969,54 @@ public function setAllowSafeBioPharmaSignerCertificateMetadata($allow_safe_bio_p return $this; } + /** + * Gets allow_scheduled_sending + * + * @return ?string + */ + public function getAllowScheduledSending() + { + return $this->container['allow_scheduled_sending']; + } + + /** + * Sets allow_scheduled_sending + * + * @param ?string $allow_scheduled_sending + * + * @return $this + */ + public function setAllowScheduledSending($allow_scheduled_sending) + { + $this->container['allow_scheduled_sending'] = $allow_scheduled_sending; + + return $this; + } + + /** + * Gets allow_scheduled_sending_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getAllowScheduledSendingMetadata() + { + return $this->container['allow_scheduled_sending_metadata']; + } + + /** + * Sets allow_scheduled_sending_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $allow_scheduled_sending_metadata allow_scheduled_sending_metadata + * + * @return $this + */ + public function setAllowScheduledSendingMetadata($allow_scheduled_sending_metadata) + { + $this->container['allow_scheduled_sending_metadata'] = $allow_scheduled_sending_metadata; + + return $this; + } + /** * Gets allow_security_appliance * diff --git a/src/Model/BillingPlanInformation.php b/src/Model/BillingPlanInformation.php index 7b998fe4..954a3893 100644 --- a/src/Model/BillingPlanInformation.php +++ b/src/Model/BillingPlanInformation.php @@ -76,7 +76,8 @@ class BillingPlanInformation implements ModelInterface, ArrayAccess 'sale_discount_fixed_amount' => '?string', 'sale_discount_percent' => '?string', 'sale_discount_periods' => '?string', - 'sale_discount_seat_price_override' => '?string' + 'sale_discount_seat_price_override' => '?string', + 'tax_exempt_id' => '?string' ]; /** @@ -102,7 +103,8 @@ class BillingPlanInformation implements ModelInterface, ArrayAccess 'sale_discount_fixed_amount' => null, 'sale_discount_percent' => null, 'sale_discount_periods' => null, - 'sale_discount_seat_price_override' => null + 'sale_discount_seat_price_override' => null, + 'tax_exempt_id' => null ]; /** @@ -149,7 +151,8 @@ public static function swaggerFormats() 'sale_discount_fixed_amount' => 'saleDiscountFixedAmount', 'sale_discount_percent' => 'saleDiscountPercent', 'sale_discount_periods' => 'saleDiscountPeriods', - 'sale_discount_seat_price_override' => 'saleDiscountSeatPriceOverride' + 'sale_discount_seat_price_override' => 'saleDiscountSeatPriceOverride', + 'tax_exempt_id' => 'taxExemptId' ]; /** @@ -175,7 +178,8 @@ public static function swaggerFormats() 'sale_discount_fixed_amount' => 'setSaleDiscountFixedAmount', 'sale_discount_percent' => 'setSaleDiscountPercent', 'sale_discount_periods' => 'setSaleDiscountPeriods', - 'sale_discount_seat_price_override' => 'setSaleDiscountSeatPriceOverride' + 'sale_discount_seat_price_override' => 'setSaleDiscountSeatPriceOverride', + 'tax_exempt_id' => 'setTaxExemptId' ]; /** @@ -201,7 +205,8 @@ public static function swaggerFormats() 'sale_discount_fixed_amount' => 'getSaleDiscountFixedAmount', 'sale_discount_percent' => 'getSaleDiscountPercent', 'sale_discount_periods' => 'getSaleDiscountPeriods', - 'sale_discount_seat_price_override' => 'getSaleDiscountSeatPriceOverride' + 'sale_discount_seat_price_override' => 'getSaleDiscountSeatPriceOverride', + 'tax_exempt_id' => 'getTaxExemptId' ]; /** @@ -282,6 +287,7 @@ public function __construct(array $data = null) $this->container['sale_discount_percent'] = isset($data['sale_discount_percent']) ? $data['sale_discount_percent'] : null; $this->container['sale_discount_periods'] = isset($data['sale_discount_periods']) ? $data['sale_discount_periods'] : null; $this->container['sale_discount_seat_price_override'] = isset($data['sale_discount_seat_price_override']) ? $data['sale_discount_seat_price_override'] : null; + $this->container['tax_exempt_id'] = isset($data['tax_exempt_id']) ? $data['tax_exempt_id'] : null; } /** @@ -739,6 +745,30 @@ public function setSaleDiscountSeatPriceOverride($sale_discount_seat_price_overr return $this; } + + /** + * Gets tax_exempt_id + * + * @return ?string + */ + public function getTaxExemptId() + { + return $this->container['tax_exempt_id']; + } + + /** + * Sets tax_exempt_id + * + * @param ?string $tax_exempt_id + * + * @return $this + */ + public function setTaxExemptId($tax_exempt_id) + { + $this->container['tax_exempt_id'] = $tax_exempt_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/BulkProcessRequest.php b/src/Model/BulkProcessRequest.php new file mode 100644 index 00000000..48e0d15d --- /dev/null +++ b/src/Model/BulkProcessRequest.php @@ -0,0 +1,332 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessRequest Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessRequest implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'batch_name' => '?string', + 'envelope_or_template_id' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'batch_name' => null, + 'envelope_or_template_id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'batch_name' => 'batchName', + 'envelope_or_template_id' => 'envelopeOrTemplateId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'batch_name' => 'setBatchName', + 'envelope_or_template_id' => 'setEnvelopeOrTemplateId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'batch_name' => 'getBatchName', + 'envelope_or_template_id' => 'getEnvelopeOrTemplateId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['batch_name'] = isset($data['batch_name']) ? $data['batch_name'] : null; + $this->container['envelope_or_template_id'] = isset($data['envelope_or_template_id']) ? $data['envelope_or_template_id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets batch_name + * + * @return ?string + */ + public function getBatchName() + { + return $this->container['batch_name']; + } + + /** + * Sets batch_name + * + * @param ?string $batch_name + * + * @return $this + */ + public function setBatchName($batch_name) + { + $this->container['batch_name'] = $batch_name; + + return $this; + } + + /** + * Gets envelope_or_template_id + * + * @return ?string + */ + public function getEnvelopeOrTemplateId() + { + return $this->container['envelope_or_template_id']; + } + + /** + * Sets envelope_or_template_id + * + * @param ?string $envelope_or_template_id + * + * @return $this + */ + public function setEnvelopeOrTemplateId($envelope_or_template_id) + { + $this->container['envelope_or_template_id'] = $envelope_or_template_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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkProcessResponse.php b/src/Model/BulkProcessResponse.php new file mode 100644 index 00000000..6fb424c0 --- /dev/null +++ b/src/Model/BulkProcessResponse.php @@ -0,0 +1,482 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessResponse Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessResponse implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'batch_id' => '?string', + 'batch_name' => '?string', + 'batch_size' => '?string', + 'error_details' => '?string[]', + 'errors' => '?string[]', + 'queue_limit' => '?string', + 'total_queued' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'batch_id' => null, + 'batch_name' => null, + 'batch_size' => null, + 'error_details' => null, + 'errors' => null, + 'queue_limit' => null, + 'total_queued' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'batch_id' => 'batchId', + 'batch_name' => 'batchName', + 'batch_size' => 'batchSize', + 'error_details' => 'errorDetails', + 'errors' => 'errors', + 'queue_limit' => 'queueLimit', + 'total_queued' => 'totalQueued' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'batch_id' => 'setBatchId', + 'batch_name' => 'setBatchName', + 'batch_size' => 'setBatchSize', + 'error_details' => 'setErrorDetails', + 'errors' => 'setErrors', + 'queue_limit' => 'setQueueLimit', + 'total_queued' => 'setTotalQueued' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'batch_id' => 'getBatchId', + 'batch_name' => 'getBatchName', + 'batch_size' => 'getBatchSize', + 'error_details' => 'getErrorDetails', + 'errors' => 'getErrors', + 'queue_limit' => 'getQueueLimit', + 'total_queued' => 'getTotalQueued' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['batch_id'] = isset($data['batch_id']) ? $data['batch_id'] : null; + $this->container['batch_name'] = isset($data['batch_name']) ? $data['batch_name'] : null; + $this->container['batch_size'] = isset($data['batch_size']) ? $data['batch_size'] : null; + $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['queue_limit'] = isset($data['queue_limit']) ? $data['queue_limit'] : null; + $this->container['total_queued'] = isset($data['total_queued']) ? $data['total_queued'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets batch_id + * + * @return ?string + */ + public function getBatchId() + { + return $this->container['batch_id']; + } + + /** + * Sets batch_id + * + * @param ?string $batch_id + * + * @return $this + */ + public function setBatchId($batch_id) + { + $this->container['batch_id'] = $batch_id; + + return $this; + } + + /** + * Gets batch_name + * + * @return ?string + */ + public function getBatchName() + { + return $this->container['batch_name']; + } + + /** + * Sets batch_name + * + * @param ?string $batch_name + * + * @return $this + */ + public function setBatchName($batch_name) + { + $this->container['batch_name'] = $batch_name; + + return $this; + } + + /** + * Gets batch_size + * + * @return ?string + */ + public function getBatchSize() + { + return $this->container['batch_size']; + } + + /** + * Sets batch_size + * + * @param ?string $batch_size + * + * @return $this + */ + public function setBatchSize($batch_size) + { + $this->container['batch_size'] = $batch_size; + + return $this; + } + + /** + * Gets error_details + * + * @return ?string[] + */ + public function getErrorDetails() + { + return $this->container['error_details']; + } + + /** + * Sets error_details + * + * @param ?string[] $error_details Array or errors. + * + * @return $this + */ + public function setErrorDetails($error_details) + { + $this->container['error_details'] = $error_details; + + return $this; + } + + /** + * Gets errors + * + * @return ?string[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param ?string[] $errors + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets queue_limit + * + * @return ?string + */ + public function getQueueLimit() + { + return $this->container['queue_limit']; + } + + /** + * Sets queue_limit + * + * @param ?string $queue_limit + * + * @return $this + */ + public function setQueueLimit($queue_limit) + { + $this->container['queue_limit'] = $queue_limit; + + return $this; + } + + /** + * Gets total_queued + * + * @return ?string + */ + public function getTotalQueued() + { + return $this->container['total_queued']; + } + + /** + * Sets total_queued + * + * @param ?string $total_queued + * + * @return $this + */ + public function setTotalQueued($total_queued) + { + $this->container['total_queued'] = $total_queued; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkProcessResult.php b/src/Model/BulkProcessResult.php new file mode 100644 index 00000000..f5a841df --- /dev/null +++ b/src/Model/BulkProcessResult.php @@ -0,0 +1,362 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessResult Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'errors' => '\DocuSign\eSign\Model\BulkSendBatchError[]', + 'list_id' => '?string', + 'success' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'errors' => null, + 'list_id' => null, + 'success' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'errors' => 'errors', + 'list_id' => 'listId', + 'success' => 'success' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'errors' => 'setErrors', + 'list_id' => 'setListId', + 'success' => 'setSuccess' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'errors' => 'getErrors', + 'list_id' => 'getListId', + 'success' => 'getSuccess' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['list_id'] = isset($data['list_id']) ? $data['list_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets errors + * + * @return \DocuSign\eSign\Model\BulkSendBatchError[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \DocuSign\eSign\Model\BulkSendBatchError[] $errors + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets list_id + * + * @return ?string + */ + public function getListId() + { + return $this->container['list_id']; + } + + /** + * Sets list_id + * + * @param ?string $list_id + * + * @return $this + */ + public function setListId($list_id) + { + $this->container['list_id'] = $list_id; + + return $this; + } + + /** + * Gets success + * + * @return ?string + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param ?string $success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkProcessingListSummaries.php b/src/Model/BulkProcessingListSummaries.php new file mode 100644 index 00000000..2fc642a2 --- /dev/null +++ b/src/Model/BulkProcessingListSummaries.php @@ -0,0 +1,302 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessingListSummaries Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessingListSummaries implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessingListSummaries'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'bulk_list_summaries' => '\DocuSign\eSign\Model\BulkProcessingListSummary[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bulk_list_summaries' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bulk_list_summaries' => 'bulkListSummaries' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bulk_list_summaries' => 'setBulkListSummaries' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bulk_list_summaries' => 'getBulkListSummaries' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bulk_list_summaries'] = isset($data['bulk_list_summaries']) ? $data['bulk_list_summaries'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets bulk_list_summaries + * + * @return \DocuSign\eSign\Model\BulkProcessingListSummary[] + */ + public function getBulkListSummaries() + { + return $this->container['bulk_list_summaries']; + } + + /** + * Sets bulk_list_summaries + * + * @param \DocuSign\eSign\Model\BulkProcessingListSummary[] $bulk_list_summaries + * + * @return $this + */ + public function setBulkListSummaries($bulk_list_summaries) + { + $this->container['bulk_list_summaries'] = $bulk_list_summaries; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkProcessingListSummary.php b/src/Model/BulkProcessingListSummary.php new file mode 100644 index 00000000..43ddee77 --- /dev/null +++ b/src/Model/BulkProcessingListSummary.php @@ -0,0 +1,392 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessingListSummary Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessingListSummary implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessingListSummary'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'bulk_process_list_id' => '?string', + 'created_by_user' => '?string', + 'created_date' => '?string', + 'name' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bulk_process_list_id' => null, + 'created_by_user' => null, + 'created_date' => null, + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bulk_process_list_id' => 'bulkProcessListId', + 'created_by_user' => 'createdByUser', + 'created_date' => 'createdDate', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bulk_process_list_id' => 'setBulkProcessListId', + 'created_by_user' => 'setCreatedByUser', + 'created_date' => 'setCreatedDate', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bulk_process_list_id' => 'getBulkProcessListId', + 'created_by_user' => 'getCreatedByUser', + 'created_date' => 'getCreatedDate', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bulk_process_list_id'] = isset($data['bulk_process_list_id']) ? $data['bulk_process_list_id'] : null; + $this->container['created_by_user'] = isset($data['created_by_user']) ? $data['created_by_user'] : null; + $this->container['created_date'] = isset($data['created_date']) ? $data['created_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets bulk_process_list_id + * + * @return ?string + */ + public function getBulkProcessListId() + { + return $this->container['bulk_process_list_id']; + } + + /** + * Sets bulk_process_list_id + * + * @param ?string $bulk_process_list_id + * + * @return $this + */ + public function setBulkProcessListId($bulk_process_list_id) + { + $this->container['bulk_process_list_id'] = $bulk_process_list_id; + + return $this; + } + + /** + * Gets created_by_user + * + * @return ?string + */ + public function getCreatedByUser() + { + return $this->container['created_by_user']; + } + + /** + * Sets created_by_user + * + * @param ?string $created_by_user + * + * @return $this + */ + public function setCreatedByUser($created_by_user) + { + $this->container['created_by_user'] = $created_by_user; + + return $this; + } + + /** + * Gets created_date + * + * @return ?string + */ + public function getCreatedDate() + { + return $this->container['created_date']; + } + + /** + * Sets created_date + * + * @param ?string $created_date + * + * @return $this + */ + public function setCreatedDate($created_date) + { + $this->container['created_date'] = $created_date; + + return $this; + } + + /** + * 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; + } + /** + * 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkProcessingLists.php b/src/Model/BulkProcessingLists.php new file mode 100644 index 00000000..45c2e62b --- /dev/null +++ b/src/Model/BulkProcessingLists.php @@ -0,0 +1,302 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkProcessingLists Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkProcessingLists implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkProcessingLists'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'bulk_process_list_ids' => '?string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bulk_process_list_ids' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bulk_process_list_ids' => 'bulkProcessListIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bulk_process_list_ids' => 'setBulkProcessListIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bulk_process_list_ids' => 'getBulkProcessListIds' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bulk_process_list_ids'] = isset($data['bulk_process_list_ids']) ? $data['bulk_process_list_ids'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets bulk_process_list_ids + * + * @return ?string[] + */ + public function getBulkProcessListIds() + { + return $this->container['bulk_process_list_ids']; + } + + /** + * Sets bulk_process_list_ids + * + * @param ?string[] $bulk_process_list_ids + * + * @return $this + */ + public function setBulkProcessListIds($bulk_process_list_ids) + { + $this->container['bulk_process_list_ids'] = $bulk_process_list_ids; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkSendBatchError.php b/src/Model/BulkSendBatchError.php new file mode 100644 index 00000000..238c893f --- /dev/null +++ b/src/Model/BulkSendBatchError.php @@ -0,0 +1,332 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * BulkSendBatchError Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class BulkSendBatchError implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'bulkSendBatchError'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'error' => '?string', + 'error_detail' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error' => null, + 'error_detail' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'error_detail' => 'errorDetail' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'error_detail' => 'setErrorDetail' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'error_detail' => 'getErrorDetail' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + $this->container['error_detail'] = isset($data['error_detail']) ? $data['error_detail'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return ?string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param ?string $error + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets error_detail + * + * @return ?string + */ + public function getErrorDetail() + { + return $this->container['error_detail']; + } + + /** + * Sets error_detail + * + * @param ?string $error_detail + * + * @return $this + */ + public function setErrorDetail($error_detail) + { + $this->container['error_detail'] = $error_detail; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/BulkSendBatchSummaries.php b/src/Model/BulkSendBatchSummaries.php index eb3050d0..e040f6d9 100644 --- a/src/Model/BulkSendBatchSummaries.php +++ b/src/Model/BulkSendBatchSummaries.php @@ -61,6 +61,8 @@ class BulkSendBatchSummaries implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'batch_size_limit' => '?string', 'bulk_batch_summaries' => '\DocuSign\eSign\Model\BulkSendBatchSummary[]', + 'bulk_process_queue_limit' => '?string', + 'bulk_process_total_queued' => '?string', 'end_position' => '?string', 'next_uri' => '?string', 'previous_uri' => '?string', @@ -79,6 +81,8 @@ class BulkSendBatchSummaries implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'batch_size_limit' => null, 'bulk_batch_summaries' => null, + 'bulk_process_queue_limit' => null, + 'bulk_process_total_queued' => null, 'end_position' => null, 'next_uri' => null, 'previous_uri' => null, @@ -118,6 +122,8 @@ public static function swaggerFormats() protected static $attributeMap = [ 'batch_size_limit' => 'batchSizeLimit', 'bulk_batch_summaries' => 'bulkBatchSummaries', + 'bulk_process_queue_limit' => 'bulkProcessQueueLimit', + 'bulk_process_total_queued' => 'bulkProcessTotalQueued', 'end_position' => 'endPosition', 'next_uri' => 'nextUri', 'previous_uri' => 'previousUri', @@ -136,6 +142,8 @@ public static function swaggerFormats() protected static $setters = [ 'batch_size_limit' => 'setBatchSizeLimit', 'bulk_batch_summaries' => 'setBulkBatchSummaries', + 'bulk_process_queue_limit' => 'setBulkProcessQueueLimit', + 'bulk_process_total_queued' => 'setBulkProcessTotalQueued', 'end_position' => 'setEndPosition', 'next_uri' => 'setNextUri', 'previous_uri' => 'setPreviousUri', @@ -154,6 +162,8 @@ public static function swaggerFormats() protected static $getters = [ 'batch_size_limit' => 'getBatchSizeLimit', 'bulk_batch_summaries' => 'getBulkBatchSummaries', + 'bulk_process_queue_limit' => 'getBulkProcessQueueLimit', + 'bulk_process_total_queued' => 'getBulkProcessTotalQueued', 'end_position' => 'getEndPosition', 'next_uri' => 'getNextUri', 'previous_uri' => 'getPreviousUri', @@ -226,6 +236,8 @@ public function __construct(array $data = null) { $this->container['batch_size_limit'] = isset($data['batch_size_limit']) ? $data['batch_size_limit'] : null; $this->container['bulk_batch_summaries'] = isset($data['bulk_batch_summaries']) ? $data['bulk_batch_summaries'] : null; + $this->container['bulk_process_queue_limit'] = isset($data['bulk_process_queue_limit']) ? $data['bulk_process_queue_limit'] : null; + $this->container['bulk_process_total_queued'] = isset($data['bulk_process_total_queued']) ? $data['bulk_process_total_queued'] : null; $this->container['end_position'] = isset($data['end_position']) ? $data['end_position'] : null; $this->container['next_uri'] = isset($data['next_uri']) ? $data['next_uri'] : null; $this->container['previous_uri'] = isset($data['previous_uri']) ? $data['previous_uri'] : null; @@ -308,6 +320,54 @@ public function setBulkBatchSummaries($bulk_batch_summaries) return $this; } + /** + * Gets bulk_process_queue_limit + * + * @return ?string + */ + public function getBulkProcessQueueLimit() + { + return $this->container['bulk_process_queue_limit']; + } + + /** + * Sets bulk_process_queue_limit + * + * @param ?string $bulk_process_queue_limit + * + * @return $this + */ + public function setBulkProcessQueueLimit($bulk_process_queue_limit) + { + $this->container['bulk_process_queue_limit'] = $bulk_process_queue_limit; + + return $this; + } + + /** + * Gets bulk_process_total_queued + * + * @return ?string + */ + public function getBulkProcessTotalQueued() + { + return $this->container['bulk_process_total_queued']; + } + + /** + * Sets bulk_process_total_queued + * + * @param ?string $bulk_process_total_queued + * + * @return $this + */ + public function setBulkProcessTotalQueued($bulk_process_total_queued) + { + $this->container['bulk_process_total_queued'] = $bulk_process_total_queued; + + return $this; + } + /** * Gets end_position * diff --git a/src/Model/Currency.php b/src/Model/Currency.php index 7cda00c0..a143ce02 100644 --- a/src/Model/Currency.php +++ b/src/Model/Currency.php @@ -115,8 +115,10 @@ class Currency implements ModelInterface, ArrayAccess 'locked_metadata' => '\DocuSign\eSign\Model\PropertyMetadata', 'max_length' => '?string', 'max_length_metadata' => '\DocuSign\eSign\Model\PropertyMetadata', + 'max_numerical_value' => '?string', 'merge_field' => '\DocuSign\eSign\Model\MergeField', 'merge_field_xml' => '?string', + 'min_numerical_value' => '?string', 'name' => '?string', 'name_metadata' => '\DocuSign\eSign\Model\PropertyMetadata', 'numerical_value' => '?string', @@ -232,8 +234,10 @@ class Currency implements ModelInterface, ArrayAccess 'locked_metadata' => null, 'max_length' => null, 'max_length_metadata' => null, + 'max_numerical_value' => null, 'merge_field' => null, 'merge_field_xml' => null, + 'min_numerical_value' => null, 'name' => null, 'name_metadata' => null, 'numerical_value' => null, @@ -370,8 +374,10 @@ public static function swaggerFormats() 'locked_metadata' => 'lockedMetadata', 'max_length' => 'maxLength', 'max_length_metadata' => 'maxLengthMetadata', + 'max_numerical_value' => 'maxNumericalValue', 'merge_field' => 'mergeField', 'merge_field_xml' => 'mergeFieldXml', + 'min_numerical_value' => 'minNumericalValue', 'name' => 'name', 'name_metadata' => 'nameMetadata', 'numerical_value' => 'numericalValue', @@ -487,8 +493,10 @@ public static function swaggerFormats() 'locked_metadata' => 'setLockedMetadata', 'max_length' => 'setMaxLength', 'max_length_metadata' => 'setMaxLengthMetadata', + 'max_numerical_value' => 'setMaxNumericalValue', 'merge_field' => 'setMergeField', 'merge_field_xml' => 'setMergeFieldXml', + 'min_numerical_value' => 'setMinNumericalValue', 'name' => 'setName', 'name_metadata' => 'setNameMetadata', 'numerical_value' => 'setNumericalValue', @@ -604,8 +612,10 @@ public static function swaggerFormats() 'locked_metadata' => 'getLockedMetadata', 'max_length' => 'getMaxLength', 'max_length_metadata' => 'getMaxLengthMetadata', + 'max_numerical_value' => 'getMaxNumericalValue', 'merge_field' => 'getMergeField', 'merge_field_xml' => 'getMergeFieldXml', + 'min_numerical_value' => 'getMinNumericalValue', 'name' => 'getName', 'name_metadata' => 'getNameMetadata', 'numerical_value' => 'getNumericalValue', @@ -775,8 +785,10 @@ public function __construct(array $data = null) $this->container['locked_metadata'] = isset($data['locked_metadata']) ? $data['locked_metadata'] : null; $this->container['max_length'] = isset($data['max_length']) ? $data['max_length'] : null; $this->container['max_length_metadata'] = isset($data['max_length_metadata']) ? $data['max_length_metadata'] : null; + $this->container['max_numerical_value'] = isset($data['max_numerical_value']) ? $data['max_numerical_value'] : null; $this->container['merge_field'] = isset($data['merge_field']) ? $data['merge_field'] : null; $this->container['merge_field_xml'] = isset($data['merge_field_xml']) ? $data['merge_field_xml'] : null; + $this->container['min_numerical_value'] = isset($data['min_numerical_value']) ? $data['min_numerical_value'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['name_metadata'] = isset($data['name_metadata']) ? $data['name_metadata'] : null; $this->container['numerical_value'] = isset($data['numerical_value']) ? $data['numerical_value'] : null; @@ -2198,6 +2210,30 @@ public function setMaxLengthMetadata($max_length_metadata) return $this; } + /** + * Gets max_numerical_value + * + * @return ?string + */ + public function getMaxNumericalValue() + { + return $this->container['max_numerical_value']; + } + + /** + * Sets max_numerical_value + * + * @param ?string $max_numerical_value + * + * @return $this + */ + public function setMaxNumericalValue($max_numerical_value) + { + $this->container['max_numerical_value'] = $max_numerical_value; + + return $this; + } + /** * Gets merge_field * @@ -2246,6 +2282,30 @@ public function setMergeFieldXml($merge_field_xml) return $this; } + /** + * Gets min_numerical_value + * + * @return ?string + */ + public function getMinNumericalValue() + { + return $this->container['min_numerical_value']; + } + + /** + * Sets min_numerical_value + * + * @param ?string $min_numerical_value + * + * @return $this + */ + public function setMinNumericalValue($min_numerical_value) + { + $this->container['min_numerical_value'] = $min_numerical_value; + + return $this; + } + /** * Gets name * diff --git a/src/Model/Envelope.php b/src/Model/Envelope.php index 07a0e654..de7c6715 100644 --- a/src/Model/Envelope.php +++ b/src/Model/Envelope.php @@ -91,6 +91,7 @@ class Envelope implements ModelInterface, ArrayAccess 'enable_wet_sign' => '?string', 'enforce_signer_visibility' => '?string', 'envelope_attachments' => '\DocuSign\eSign\Model\Attachment[]', + 'envelope_custom_metadata' => '\DocuSign\eSign\Model\EnvelopeCustomMetadata', 'envelope_documents' => '\DocuSign\eSign\Model\EnvelopeDocument[]', 'envelope_id' => '?string', 'envelope_id_stamping' => '?string', @@ -176,6 +177,7 @@ class Envelope implements ModelInterface, ArrayAccess 'enable_wet_sign' => null, 'enforce_signer_visibility' => null, 'envelope_attachments' => null, + 'envelope_custom_metadata' => null, 'envelope_documents' => null, 'envelope_id' => null, 'envelope_id_stamping' => null, @@ -282,6 +284,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'enableWetSign', 'enforce_signer_visibility' => 'enforceSignerVisibility', 'envelope_attachments' => 'envelopeAttachments', + 'envelope_custom_metadata' => 'envelopeCustomMetadata', 'envelope_documents' => 'envelopeDocuments', 'envelope_id' => 'envelopeId', 'envelope_id_stamping' => 'envelopeIdStamping', @@ -367,6 +370,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'setEnableWetSign', 'enforce_signer_visibility' => 'setEnforceSignerVisibility', 'envelope_attachments' => 'setEnvelopeAttachments', + 'envelope_custom_metadata' => 'setEnvelopeCustomMetadata', 'envelope_documents' => 'setEnvelopeDocuments', 'envelope_id' => 'setEnvelopeId', 'envelope_id_stamping' => 'setEnvelopeIdStamping', @@ -452,6 +456,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'getEnableWetSign', 'enforce_signer_visibility' => 'getEnforceSignerVisibility', 'envelope_attachments' => 'getEnvelopeAttachments', + 'envelope_custom_metadata' => 'getEnvelopeCustomMetadata', 'envelope_documents' => 'getEnvelopeDocuments', 'envelope_id' => 'getEnvelopeId', 'envelope_id_stamping' => 'getEnvelopeIdStamping', @@ -591,6 +596,7 @@ public function __construct(array $data = null) $this->container['enable_wet_sign'] = isset($data['enable_wet_sign']) ? $data['enable_wet_sign'] : null; $this->container['enforce_signer_visibility'] = isset($data['enforce_signer_visibility']) ? $data['enforce_signer_visibility'] : null; $this->container['envelope_attachments'] = isset($data['envelope_attachments']) ? $data['envelope_attachments'] : null; + $this->container['envelope_custom_metadata'] = isset($data['envelope_custom_metadata']) ? $data['envelope_custom_metadata'] : null; $this->container['envelope_documents'] = isset($data['envelope_documents']) ? $data['envelope_documents'] : null; $this->container['envelope_id'] = isset($data['envelope_id']) ? $data['envelope_id'] : null; $this->container['envelope_id_stamping'] = isset($data['envelope_id_stamping']) ? $data['envelope_id_stamping'] : null; @@ -1430,6 +1436,30 @@ public function setEnvelopeAttachments($envelope_attachments) return $this; } + /** + * Gets envelope_custom_metadata + * + * @return \DocuSign\eSign\Model\EnvelopeCustomMetadata + */ + public function getEnvelopeCustomMetadata() + { + return $this->container['envelope_custom_metadata']; + } + + /** + * Sets envelope_custom_metadata + * + * @param \DocuSign\eSign\Model\EnvelopeCustomMetadata $envelope_custom_metadata envelope_custom_metadata + * + * @return $this + */ + public function setEnvelopeCustomMetadata($envelope_custom_metadata) + { + $this->container['envelope_custom_metadata'] = $envelope_custom_metadata; + + return $this; + } + /** * Gets envelope_documents * diff --git a/src/Model/EnvelopeCustomMetadata.php b/src/Model/EnvelopeCustomMetadata.php new file mode 100644 index 00000000..9d23c23e --- /dev/null +++ b/src/Model/EnvelopeCustomMetadata.php @@ -0,0 +1,302 @@ + + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * DocuSign REST API + * + * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21-SNAPSHOT + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\eSign\Model; + +use \ArrayAccess; +use DocuSign\eSign\ObjectSerializer; + +/** + * EnvelopeCustomMetadata Class Doc Comment + * + * @category Class + * @package DocuSign\eSign + * @author Swagger Codegen team + * @license The DocuSign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class EnvelopeCustomMetadata implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'envelopeCustomMetadata'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'envelope_custom_metadata_details' => '\DocuSign\eSign\Model\NameValue[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'envelope_custom_metadata_details' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'envelope_custom_metadata_details' => 'envelopeCustomMetadataDetails' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'envelope_custom_metadata_details' => 'setEnvelopeCustomMetadataDetails' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'envelope_custom_metadata_details' => 'getEnvelopeCustomMetadataDetails' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['envelope_custom_metadata_details'] = isset($data['envelope_custom_metadata_details']) ? $data['envelope_custom_metadata_details'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets envelope_custom_metadata_details + * + * @return \DocuSign\eSign\Model\NameValue[] + */ + public function getEnvelopeCustomMetadataDetails() + { + return $this->container['envelope_custom_metadata_details']; + } + + /** + * Sets envelope_custom_metadata_details + * + * @param \DocuSign\eSign\Model\NameValue[] $envelope_custom_metadata_details + * + * @return $this + */ + public function setEnvelopeCustomMetadataDetails($envelope_custom_metadata_details) + { + $this->container['envelope_custom_metadata_details'] = $envelope_custom_metadata_details; + + 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( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/EnvelopeDefinition.php b/src/Model/EnvelopeDefinition.php index dd9b38b9..59a4338e 100644 --- a/src/Model/EnvelopeDefinition.php +++ b/src/Model/EnvelopeDefinition.php @@ -96,6 +96,7 @@ class EnvelopeDefinition implements ModelInterface, ArrayAccess 'enable_wet_sign' => '?string', 'enforce_signer_visibility' => '?string', 'envelope_attachments' => '\DocuSign\eSign\Model\Attachment[]', + 'envelope_custom_metadata' => '\DocuSign\eSign\Model\EnvelopeCustomMetadata', 'envelope_documents' => '\DocuSign\eSign\Model\EnvelopeDocument[]', 'envelope_id' => '?string', 'envelope_id_stamping' => '?string', @@ -192,6 +193,7 @@ class EnvelopeDefinition implements ModelInterface, ArrayAccess 'enable_wet_sign' => null, 'enforce_signer_visibility' => null, 'envelope_attachments' => null, + 'envelope_custom_metadata' => null, 'envelope_documents' => null, 'envelope_id' => null, 'envelope_id_stamping' => null, @@ -309,6 +311,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'enableWetSign', 'enforce_signer_visibility' => 'enforceSignerVisibility', 'envelope_attachments' => 'envelopeAttachments', + 'envelope_custom_metadata' => 'envelopeCustomMetadata', 'envelope_documents' => 'envelopeDocuments', 'envelope_id' => 'envelopeId', 'envelope_id_stamping' => 'envelopeIdStamping', @@ -405,6 +408,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'setEnableWetSign', 'enforce_signer_visibility' => 'setEnforceSignerVisibility', 'envelope_attachments' => 'setEnvelopeAttachments', + 'envelope_custom_metadata' => 'setEnvelopeCustomMetadata', 'envelope_documents' => 'setEnvelopeDocuments', 'envelope_id' => 'setEnvelopeId', 'envelope_id_stamping' => 'setEnvelopeIdStamping', @@ -501,6 +505,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'getEnableWetSign', 'enforce_signer_visibility' => 'getEnforceSignerVisibility', 'envelope_attachments' => 'getEnvelopeAttachments', + 'envelope_custom_metadata' => 'getEnvelopeCustomMetadata', 'envelope_documents' => 'getEnvelopeDocuments', 'envelope_id' => 'getEnvelopeId', 'envelope_id_stamping' => 'getEnvelopeIdStamping', @@ -651,6 +656,7 @@ public function __construct(array $data = null) $this->container['enable_wet_sign'] = isset($data['enable_wet_sign']) ? $data['enable_wet_sign'] : null; $this->container['enforce_signer_visibility'] = isset($data['enforce_signer_visibility']) ? $data['enforce_signer_visibility'] : null; $this->container['envelope_attachments'] = isset($data['envelope_attachments']) ? $data['envelope_attachments'] : null; + $this->container['envelope_custom_metadata'] = isset($data['envelope_custom_metadata']) ? $data['envelope_custom_metadata'] : null; $this->container['envelope_documents'] = isset($data['envelope_documents']) ? $data['envelope_documents'] : null; $this->container['envelope_id'] = isset($data['envelope_id']) ? $data['envelope_id'] : null; $this->container['envelope_id_stamping'] = isset($data['envelope_id_stamping']) ? $data['envelope_id_stamping'] : null; @@ -1616,6 +1622,30 @@ public function setEnvelopeAttachments($envelope_attachments) return $this; } + /** + * Gets envelope_custom_metadata + * + * @return \DocuSign\eSign\Model\EnvelopeCustomMetadata + */ + public function getEnvelopeCustomMetadata() + { + return $this->container['envelope_custom_metadata']; + } + + /** + * Sets envelope_custom_metadata + * + * @param \DocuSign\eSign\Model\EnvelopeCustomMetadata $envelope_custom_metadata envelope_custom_metadata + * + * @return $this + */ + public function setEnvelopeCustomMetadata($envelope_custom_metadata) + { + $this->container['envelope_custom_metadata'] = $envelope_custom_metadata; + + return $this; + } + /** * Gets envelope_documents * diff --git a/src/Model/EnvelopeTemplate.php b/src/Model/EnvelopeTemplate.php index 84f34582..583a289d 100644 --- a/src/Model/EnvelopeTemplate.php +++ b/src/Model/EnvelopeTemplate.php @@ -96,6 +96,7 @@ class EnvelopeTemplate implements ModelInterface, ArrayAccess 'enable_wet_sign' => '?string', 'enforce_signer_visibility' => '?string', 'envelope_attachments' => '\DocuSign\eSign\Model\Attachment[]', + 'envelope_custom_metadata' => '\DocuSign\eSign\Model\EnvelopeCustomMetadata', 'envelope_documents' => '\DocuSign\eSign\Model\EnvelopeDocument[]', 'envelope_id' => '?string', 'envelope_id_stamping' => '?string', @@ -203,6 +204,7 @@ class EnvelopeTemplate implements ModelInterface, ArrayAccess 'enable_wet_sign' => null, 'enforce_signer_visibility' => null, 'envelope_attachments' => null, + 'envelope_custom_metadata' => null, 'envelope_documents' => null, 'envelope_id' => null, 'envelope_id_stamping' => null, @@ -331,6 +333,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'enableWetSign', 'enforce_signer_visibility' => 'enforceSignerVisibility', 'envelope_attachments' => 'envelopeAttachments', + 'envelope_custom_metadata' => 'envelopeCustomMetadata', 'envelope_documents' => 'envelopeDocuments', 'envelope_id' => 'envelopeId', 'envelope_id_stamping' => 'envelopeIdStamping', @@ -438,6 +441,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'setEnableWetSign', 'enforce_signer_visibility' => 'setEnforceSignerVisibility', 'envelope_attachments' => 'setEnvelopeAttachments', + 'envelope_custom_metadata' => 'setEnvelopeCustomMetadata', 'envelope_documents' => 'setEnvelopeDocuments', 'envelope_id' => 'setEnvelopeId', 'envelope_id_stamping' => 'setEnvelopeIdStamping', @@ -545,6 +549,7 @@ public static function swaggerFormats() 'enable_wet_sign' => 'getEnableWetSign', 'enforce_signer_visibility' => 'getEnforceSignerVisibility', 'envelope_attachments' => 'getEnvelopeAttachments', + 'envelope_custom_metadata' => 'getEnvelopeCustomMetadata', 'envelope_documents' => 'getEnvelopeDocuments', 'envelope_id' => 'getEnvelopeId', 'envelope_id_stamping' => 'getEnvelopeIdStamping', @@ -706,6 +711,7 @@ public function __construct(array $data = null) $this->container['enable_wet_sign'] = isset($data['enable_wet_sign']) ? $data['enable_wet_sign'] : null; $this->container['enforce_signer_visibility'] = isset($data['enforce_signer_visibility']) ? $data['enforce_signer_visibility'] : null; $this->container['envelope_attachments'] = isset($data['envelope_attachments']) ? $data['envelope_attachments'] : null; + $this->container['envelope_custom_metadata'] = isset($data['envelope_custom_metadata']) ? $data['envelope_custom_metadata'] : null; $this->container['envelope_documents'] = isset($data['envelope_documents']) ? $data['envelope_documents'] : null; $this->container['envelope_id'] = isset($data['envelope_id']) ? $data['envelope_id'] : null; $this->container['envelope_id_stamping'] = isset($data['envelope_id_stamping']) ? $data['envelope_id_stamping'] : null; @@ -1682,6 +1688,30 @@ public function setEnvelopeAttachments($envelope_attachments) return $this; } + /** + * Gets envelope_custom_metadata + * + * @return \DocuSign\eSign\Model\EnvelopeCustomMetadata + */ + public function getEnvelopeCustomMetadata() + { + return $this->container['envelope_custom_metadata']; + } + + /** + * Sets envelope_custom_metadata + * + * @param \DocuSign\eSign\Model\EnvelopeCustomMetadata $envelope_custom_metadata envelope_custom_metadata + * + * @return $this + */ + public function setEnvelopeCustomMetadata($envelope_custom_metadata) + { + $this->container['envelope_custom_metadata'] = $envelope_custom_metadata; + + return $this; + } + /** * Gets envelope_documents * diff --git a/src/Model/Group.php b/src/Model/Group.php index e14bf114..13c0dd38 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -59,6 +59,7 @@ class Group implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'ds_group_id' => '?string', 'error_details' => '\DocuSign\eSign\Model\ErrorDetails', 'group_id' => '?string', 'group_name' => '?string', @@ -74,6 +75,7 @@ class Group implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'ds_group_id' => null, 'error_details' => null, 'group_id' => null, 'group_name' => null, @@ -110,6 +112,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ + 'ds_group_id' => 'dsGroupId', 'error_details' => 'errorDetails', 'group_id' => 'groupId', 'group_name' => 'groupName', @@ -125,6 +128,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ + 'ds_group_id' => 'setDsGroupId', 'error_details' => 'setErrorDetails', 'group_id' => 'setGroupId', 'group_name' => 'setGroupName', @@ -140,6 +144,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ + 'ds_group_id' => 'getDsGroupId', 'error_details' => 'getErrorDetails', 'group_id' => 'getGroupId', 'group_name' => 'getGroupName', @@ -209,6 +214,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['ds_group_id'] = isset($data['ds_group_id']) ? $data['ds_group_id'] : null; $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; $this->container['group_id'] = isset($data['group_id']) ? $data['group_id'] : null; $this->container['group_name'] = isset($data['group_name']) ? $data['group_name'] : null; @@ -242,6 +248,30 @@ public function valid() } + /** + * Gets ds_group_id + * + * @return ?string + */ + public function getDsGroupId() + { + return $this->container['ds_group_id']; + } + + /** + * Sets ds_group_id + * + * @param ?string $ds_group_id + * + * @return $this + */ + public function setDsGroupId($ds_group_id) + { + $this->container['ds_group_id'] = $ds_group_id; + + return $this; + } + /** * Gets error_details * diff --git a/src/Model/NewAccountDefinition.php b/src/Model/NewAccountDefinition.php index 245a48e5..633e2f88 100644 --- a/src/Model/NewAccountDefinition.php +++ b/src/Model/NewAccountDefinition.php @@ -72,7 +72,8 @@ class NewAccountDefinition implements ModelInterface, ArrayAccess 'payment_processor_information' => '\DocuSign\eSign\Model\PaymentProcessorInformation', 'plan_information' => '\DocuSign\eSign\Model\PlanInformation', 'referral_information' => '\DocuSign\eSign\Model\ReferralInformation', - 'social_account_information' => '\DocuSign\eSign\Model\SocialAccountInformation' + 'social_account_information' => '\DocuSign\eSign\Model\SocialAccountInformation', + 'tax_exempt_id' => '?string' ]; /** @@ -94,7 +95,8 @@ class NewAccountDefinition implements ModelInterface, ArrayAccess 'payment_processor_information' => null, 'plan_information' => null, 'referral_information' => null, - 'social_account_information' => null + 'social_account_information' => null, + 'tax_exempt_id' => null ]; /** @@ -137,7 +139,8 @@ public static function swaggerFormats() 'payment_processor_information' => 'paymentProcessorInformation', 'plan_information' => 'planInformation', 'referral_information' => 'referralInformation', - 'social_account_information' => 'socialAccountInformation' + 'social_account_information' => 'socialAccountInformation', + 'tax_exempt_id' => 'taxExemptId' ]; /** @@ -159,7 +162,8 @@ public static function swaggerFormats() 'payment_processor_information' => 'setPaymentProcessorInformation', 'plan_information' => 'setPlanInformation', 'referral_information' => 'setReferralInformation', - 'social_account_information' => 'setSocialAccountInformation' + 'social_account_information' => 'setSocialAccountInformation', + 'tax_exempt_id' => 'setTaxExemptId' ]; /** @@ -181,7 +185,8 @@ public static function swaggerFormats() 'payment_processor_information' => 'getPaymentProcessorInformation', 'plan_information' => 'getPlanInformation', 'referral_information' => 'getReferralInformation', - 'social_account_information' => 'getSocialAccountInformation' + 'social_account_information' => 'getSocialAccountInformation', + 'tax_exempt_id' => 'getTaxExemptId' ]; /** @@ -258,6 +263,7 @@ public function __construct(array $data = null) $this->container['plan_information'] = isset($data['plan_information']) ? $data['plan_information'] : null; $this->container['referral_information'] = isset($data['referral_information']) ? $data['referral_information'] : null; $this->container['social_account_information'] = isset($data['social_account_information']) ? $data['social_account_information'] : null; + $this->container['tax_exempt_id'] = isset($data['tax_exempt_id']) ? $data['tax_exempt_id'] : null; } /** @@ -619,6 +625,30 @@ public function setSocialAccountInformation($social_account_information) return $this; } + + /** + * Gets tax_exempt_id + * + * @return ?string + */ + public function getTaxExemptId() + { + return $this->container['tax_exempt_id']; + } + + /** + * Sets tax_exempt_id + * + * @param ?string $tax_exempt_id + * + * @return $this + */ + public function setTaxExemptId($tax_exempt_id) + { + $this->container['tax_exempt_id'] = $tax_exempt_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/TabMetadata.php b/src/Model/TabMetadata.php index 1d730255..d7eb2090 100644 --- a/src/Model/TabMetadata.php +++ b/src/Model/TabMetadata.php @@ -89,7 +89,9 @@ class TabMetadata implements ModelInterface, ArrayAccess 'locale_policy' => '\DocuSign\eSign\Model\LocalePolicyTab', 'locked' => '?string', 'maximum_length' => '?string', + 'max_numerical_value' => '?string', 'merge_field' => '\DocuSign\eSign\Model\MergeField', + 'min_numerical_value' => '?string', 'name' => '?string', 'numerical_value' => '?string', 'payment_item_code' => '?string', @@ -147,7 +149,9 @@ class TabMetadata implements ModelInterface, ArrayAccess 'locale_policy' => null, 'locked' => null, 'maximum_length' => null, + 'max_numerical_value' => null, 'merge_field' => null, + 'min_numerical_value' => null, 'name' => null, 'numerical_value' => null, 'payment_item_code' => null, @@ -226,7 +230,9 @@ public static function swaggerFormats() 'locale_policy' => 'localePolicy', 'locked' => 'locked', 'maximum_length' => 'maximumLength', + 'max_numerical_value' => 'maxNumericalValue', 'merge_field' => 'mergeField', + 'min_numerical_value' => 'minNumericalValue', 'name' => 'name', 'numerical_value' => 'numericalValue', 'payment_item_code' => 'paymentItemCode', @@ -284,7 +290,9 @@ public static function swaggerFormats() 'locale_policy' => 'setLocalePolicy', 'locked' => 'setLocked', 'maximum_length' => 'setMaximumLength', + 'max_numerical_value' => 'setMaxNumericalValue', 'merge_field' => 'setMergeField', + 'min_numerical_value' => 'setMinNumericalValue', 'name' => 'setName', 'numerical_value' => 'setNumericalValue', 'payment_item_code' => 'setPaymentItemCode', @@ -342,7 +350,9 @@ public static function swaggerFormats() 'locale_policy' => 'getLocalePolicy', 'locked' => 'getLocked', 'maximum_length' => 'getMaximumLength', + 'max_numerical_value' => 'getMaxNumericalValue', 'merge_field' => 'getMergeField', + 'min_numerical_value' => 'getMinNumericalValue', 'name' => 'getName', 'numerical_value' => 'getNumericalValue', 'payment_item_code' => 'getPaymentItemCode', @@ -454,7 +464,9 @@ public function __construct(array $data = null) $this->container['locale_policy'] = isset($data['locale_policy']) ? $data['locale_policy'] : null; $this->container['locked'] = isset($data['locked']) ? $data['locked'] : null; $this->container['maximum_length'] = isset($data['maximum_length']) ? $data['maximum_length'] : null; + $this->container['max_numerical_value'] = isset($data['max_numerical_value']) ? $data['max_numerical_value'] : null; $this->container['merge_field'] = isset($data['merge_field']) ? $data['merge_field'] : null; + $this->container['min_numerical_value'] = isset($data['min_numerical_value']) ? $data['min_numerical_value'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['numerical_value'] = isset($data['numerical_value']) ? $data['numerical_value'] : null; $this->container['payment_item_code'] = isset($data['payment_item_code']) ? $data['payment_item_code'] : null; @@ -1220,6 +1232,30 @@ public function setMaximumLength($maximum_length) return $this; } + /** + * Gets max_numerical_value + * + * @return ?string + */ + public function getMaxNumericalValue() + { + return $this->container['max_numerical_value']; + } + + /** + * Sets max_numerical_value + * + * @param ?string $max_numerical_value + * + * @return $this + */ + public function setMaxNumericalValue($max_numerical_value) + { + $this->container['max_numerical_value'] = $max_numerical_value; + + return $this; + } + /** * Gets merge_field * @@ -1244,6 +1280,30 @@ public function setMergeField($merge_field) return $this; } + /** + * Gets min_numerical_value + * + * @return ?string + */ + public function getMinNumericalValue() + { + return $this->container['min_numerical_value']; + } + + /** + * Sets min_numerical_value + * + * @param ?string $min_numerical_value + * + * @return $this + */ + public function setMinNumericalValue($min_numerical_value) + { + $this->container['min_numerical_value'] = $min_numerical_value; + + return $this; + } + /** * Gets name * diff --git a/src/Model/UserAccountManagementGranularInformation.php b/src/Model/UserAccountManagementGranularInformation.php index 4f57895b..e6e21409 100644 --- a/src/Model/UserAccountManagementGranularInformation.php +++ b/src/Model/UserAccountManagementGranularInformation.php @@ -65,6 +65,8 @@ class UserAccountManagementGranularInformation implements ModelInterface, ArrayA 'can_manage_account_settings_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'can_manage_admins' => '?string', 'can_manage_admins_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', + 'can_manage_connect' => '?string', + 'can_manage_connect_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'can_manage_document_retention' => '?string', 'can_manage_document_retention_metadata' => '\DocuSign\eSign\Model\SettingsMetadata', 'can_manage_envelope_transfer' => '?string', @@ -94,6 +96,8 @@ class UserAccountManagementGranularInformation implements ModelInterface, ArrayA 'can_manage_account_settings_metadata' => null, 'can_manage_admins' => null, 'can_manage_admins_metadata' => null, + 'can_manage_connect' => null, + 'can_manage_connect_metadata' => null, 'can_manage_document_retention' => null, 'can_manage_document_retention_metadata' => null, 'can_manage_envelope_transfer' => null, @@ -144,6 +148,8 @@ public static function swaggerFormats() 'can_manage_account_settings_metadata' => 'canManageAccountSettingsMetadata', 'can_manage_admins' => 'canManageAdmins', 'can_manage_admins_metadata' => 'canManageAdminsMetadata', + 'can_manage_connect' => 'canManageConnect', + 'can_manage_connect_metadata' => 'canManageConnectMetadata', 'can_manage_document_retention' => 'canManageDocumentRetention', 'can_manage_document_retention_metadata' => 'canManageDocumentRetentionMetadata', 'can_manage_envelope_transfer' => 'canManageEnvelopeTransfer', @@ -173,6 +179,8 @@ public static function swaggerFormats() 'can_manage_account_settings_metadata' => 'setCanManageAccountSettingsMetadata', 'can_manage_admins' => 'setCanManageAdmins', 'can_manage_admins_metadata' => 'setCanManageAdminsMetadata', + 'can_manage_connect' => 'setCanManageConnect', + 'can_manage_connect_metadata' => 'setCanManageConnectMetadata', 'can_manage_document_retention' => 'setCanManageDocumentRetention', 'can_manage_document_retention_metadata' => 'setCanManageDocumentRetentionMetadata', 'can_manage_envelope_transfer' => 'setCanManageEnvelopeTransfer', @@ -202,6 +210,8 @@ public static function swaggerFormats() 'can_manage_account_settings_metadata' => 'getCanManageAccountSettingsMetadata', 'can_manage_admins' => 'getCanManageAdmins', 'can_manage_admins_metadata' => 'getCanManageAdminsMetadata', + 'can_manage_connect' => 'getCanManageConnect', + 'can_manage_connect_metadata' => 'getCanManageConnectMetadata', 'can_manage_document_retention' => 'getCanManageDocumentRetention', 'can_manage_document_retention_metadata' => 'getCanManageDocumentRetentionMetadata', 'can_manage_envelope_transfer' => 'getCanManageEnvelopeTransfer', @@ -285,6 +295,8 @@ public function __construct(array $data = null) $this->container['can_manage_account_settings_metadata'] = isset($data['can_manage_account_settings_metadata']) ? $data['can_manage_account_settings_metadata'] : null; $this->container['can_manage_admins'] = isset($data['can_manage_admins']) ? $data['can_manage_admins'] : null; $this->container['can_manage_admins_metadata'] = isset($data['can_manage_admins_metadata']) ? $data['can_manage_admins_metadata'] : null; + $this->container['can_manage_connect'] = isset($data['can_manage_connect']) ? $data['can_manage_connect'] : null; + $this->container['can_manage_connect_metadata'] = isset($data['can_manage_connect_metadata']) ? $data['can_manage_connect_metadata'] : null; $this->container['can_manage_document_retention'] = isset($data['can_manage_document_retention']) ? $data['can_manage_document_retention'] : null; $this->container['can_manage_document_retention_metadata'] = isset($data['can_manage_document_retention_metadata']) ? $data['can_manage_document_retention_metadata'] : null; $this->container['can_manage_envelope_transfer'] = isset($data['can_manage_envelope_transfer']) ? $data['can_manage_envelope_transfer'] : null; @@ -470,6 +482,54 @@ public function setCanManageAdminsMetadata($can_manage_admins_metadata) return $this; } + /** + * Gets can_manage_connect + * + * @return ?string + */ + public function getCanManageConnect() + { + return $this->container['can_manage_connect']; + } + + /** + * Sets can_manage_connect + * + * @param ?string $can_manage_connect + * + * @return $this + */ + public function setCanManageConnect($can_manage_connect) + { + $this->container['can_manage_connect'] = $can_manage_connect; + + return $this; + } + + /** + * Gets can_manage_connect_metadata + * + * @return \DocuSign\eSign\Model\SettingsMetadata + */ + public function getCanManageConnectMetadata() + { + return $this->container['can_manage_connect_metadata']; + } + + /** + * Sets can_manage_connect_metadata + * + * @param \DocuSign\eSign\Model\SettingsMetadata $can_manage_connect_metadata can_manage_connect_metadata + * + * @return $this + */ + public function setCanManageConnectMetadata($can_manage_connect_metadata) + { + $this->container['can_manage_connect_metadata'] = $can_manage_connect_metadata; + + return $this; + } + /** * Gets can_manage_document_retention * diff --git a/test/UnitTests.php b/test/UnitTests.php index 5d93b7c3..9f9f9ed1 100644 --- a/test/UnitTests.php +++ b/test/UnitTests.php @@ -1217,8 +1217,6 @@ public function testDeleteRecipients($testConfig) /** * @depends testSignatureRequestOnDocument - * @expectedException \DocuSign\eSign\Client\ApiException - * @expectedExceptionMessage The document specified was not found. */ public function testDeleteDocuments($testConfig) { @@ -1244,7 +1242,21 @@ public function testDeleteDocuments($testConfig) $this->assertInstanceOf(EnvelopeDocumentsResult::class, $result); // document does not exist after delete - $envelopesApi->getDocument($testConfig->getAccountId(), $documentId, $testConfig->getEnvelopeId()); + try + { + $envelopesApi->getDocument($testConfig->getAccountId(), $documentId, $testConfig->getEnvelopeId()); + } + catch (\Exception $e) + { + $this->assertInstanceOf(ApiException::class, $e); + $responseBody = $e->getResponseBody(); + $this->assertNotNull($responseBody); + $this->assertEquals("DOCUMENT_DOES_NOT_EXIST",$responseBody->errorCode); + $this->assertNotEmpty("The document specified was not found.",$responseBody->message); + + $responseHeaders = $e->getResponseHeaders(); + $this->assertArrayHasKey('X-DocuSign-TraceToken',$responseHeaders); + } } /**