├── test ├── Docs │ ├── private.pem │ ├── SignTest1.pdf │ └── SignTest1.docx ├── bootstrap.php ├── phpunit.xml └── OAuthTests.php ├── .swagger-codegen └── VERSION ├── .gitignore ├── linter.sh ├── .travis.yml ├── ruleset.xml ├── .php_cs ├── LICENSE ├── composer.json ├── autoload.php ├── .swagger-codegen-ignore ├── src ├── Model │ ├── ModelInterface.php │ ├── ConnectDeleteFailureResult.php │ ├── UpdateTransactionResponse.php │ ├── ViewUrl.php │ ├── PaletteItemSettings.php │ ├── TabMetadataList.php │ ├── UserInfoList.php │ ├── AccountSeals.php │ ├── IdEvidenceViewLink.php │ ├── IdCheckSecurityStep.php │ ├── SigningGroupUsers.php │ ├── ConnectedObjectDetails.php │ ├── BulkSendBatchRequest.php │ ├── AccountPasswordLockoutDurationType.php │ ├── CreditCardTypes.php │ ├── BrandRequest.php │ ├── BrandsRequest.php │ ├── ResourceInformation.php │ ├── FileTypeList.php │ ├── RecipientRouting.php │ └── NewUsersDefinition.php ├── Client │ ├── Auth │ │ ├── OAuth.php │ │ ├── Link.php │ │ └── Organization.php │ └── ApiException.php ├── HeaderSelector.php └── Api │ ├── TrustServiceProvidersApi.php │ ├── OrganizationsApi.php │ └── DataFeedApi.php └── README.md /test/Docs/private.pem: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.21 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | vendor 3 | .DS_Store 4 | .idea 5 | .phpunit.result.cache -------------------------------------------------------------------------------- /test/Docs/SignTest1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-php-client/master/test/Docs/SignTest1.pdf -------------------------------------------------------------------------------- /test/Docs/SignTest1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-esign-php-client/master/test/Docs/SignTest1.docx -------------------------------------------------------------------------------- /linter.sh: -------------------------------------------------------------------------------- 1 | ./vendor/bin/phpcbf -p src --extensions=php -d memory_limit=512M 2 | ./vendor/bin/phpcs src --standard=ruleset.xml -------------------------------------------------------------------------------- /test/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Docusign custom coding standard. 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- 1 | level(Symfony\CS\FixerInterface::PSR2_LEVEL) 5 | ->setUsingCache(true) 6 | ->fixers( 7 | [ 8 | 'ordered_use', 9 | 'phpdoc_order', 10 | 'short_array_syntax', 11 | 'strict', 12 | 'strict_param' 13 | ] 14 | ) 15 | ->finder( 16 | Symfony\CS\Finder\DefaultFinder::create() 17 | ->in(__DIR__) 18 | ); 19 | -------------------------------------------------------------------------------- /test/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | ./ 11 | 12 | 13 | 14 | 15 | 16 | ./src/Api 17 | ./src/Client 18 | ./src/Model 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2016- DocuSign, Inc. (https://www.docusign.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "docusign/esign-client", 3 | "description": "The Docusign PHP library makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-php-client repository. Join the eSign revolution!", 4 | "keywords": [ 5 | "Docusign", 6 | "Agreement", 7 | "eSignature", 8 | "php", 9 | "sdk", 10 | "api" 11 | ], 12 | "homepage": "https://developers.docusign.com", 13 | "license": "MIT", 14 | "authors": [ 15 | { 16 | "name": "DocuSign", 17 | "homepage": "https://developers.docusign.com" 18 | } 19 | ], 20 | "require": { 21 | "php": ">=7.4", 22 | "ext-curl": "*", 23 | "ext-json": "*", 24 | "ext-mbstring": "*", 25 | "firebase/php-jwt": "^6.0" 26 | }, 27 | "require-dev": { 28 | "phpunit/phpunit": "~4.8", 29 | "satooshi/php-coveralls": "~1.0", 30 | "squizlabs/php_codesniffer": "~2.6", 31 | "friendsofphp/php-cs-fixer": "*" 32 | }, 33 | "autoload": { 34 | "psr-4": { "DocuSign\\eSign\\" : "src/" } 35 | }, 36 | "autoload-dev": { 37 | "psr-4": { "DocuSign\\eSign\\" : "test/" } 38 | } 39 | } -------------------------------------------------------------------------------- /autoload.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | /** 34 | * Interface abstracting model access. 35 | * 36 | * @category Interface 37 | * @package DocuSign\eSign\Model 38 | * @author Swagger Codegen team 39 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 40 | * @link https://github.com/swagger-api/swagger-codegen 41 | */ 42 | interface ModelInterface 43 | { 44 | /** 45 | * The original name of the model. 46 | * 47 | * @return string 48 | */ 49 | public function getModelName(); 50 | 51 | /** 52 | * Array of property to type mappings. Used for (de)serialization 53 | * 54 | * @return array 55 | */ 56 | public static function swaggerTypes(); 57 | 58 | /** 59 | * Array of property to format mappings. Used for (de)serialization 60 | * 61 | * @return array 62 | */ 63 | public static function swaggerFormats(); 64 | 65 | /** 66 | * Array of attributes where the key is the local name, and the value is the original name 67 | * 68 | * @return array 69 | */ 70 | public static function attributeMap(); 71 | 72 | /** 73 | * Array of attributes to setter functions (for deserialization of responses) 74 | * 75 | * @return array 76 | */ 77 | public static function setters(); 78 | 79 | /** 80 | * Array of attributes to getter functions (for serialization of requests) 81 | * 82 | * @return array 83 | */ 84 | public static function getters(); 85 | 86 | /** 87 | * Show all the invalid properties with reasons. 88 | * 89 | * @return array 90 | */ 91 | public function listInvalidProperties(); 92 | 93 | /** 94 | * Validate all the properties in the model 95 | * return true if all passed 96 | * 97 | * @return bool 98 | */ 99 | public function valid(); 100 | } 101 | -------------------------------------------------------------------------------- /src/Client/Auth/OAuth.php: -------------------------------------------------------------------------------- 1 | oAuthBasePath = $oAuthBasePath; 65 | return $this; 66 | } 67 | 68 | //Derive OAuth Base Path if not given. 69 | if (substr($this->getBasePath(), 0, 12) === "https://demo" 70 | || substr($this->getBasePath(), 0, 11) === "https://demo" 71 | ) { 72 | $this->oAuthBasePath = self::$DEMO_OAUTH_BASE_PATH; 73 | } elseif (substr($this->getBasePath(), 0, 13) === "https://stage" 74 | || substr($this->getBasePath(), 0, 12) === "http://stage" 75 | ) { 76 | $this->oAuthBasePath = self::$STAGE_OAUTH_BASE_PATH; 77 | } else { 78 | $this->oAuthBasePath = self::$PRODUCTION_OAUTH_BASE_PATH; 79 | } 80 | 81 | return $this; 82 | } 83 | 84 | /** 85 | * Gets the OAuth base Path 86 | * @return string 87 | */ 88 | public function getOAuthBasePath() 89 | { 90 | if (!$this->oAuthBasePath) { 91 | $this->setOAuthBasePath(); 92 | } 93 | return $this->oAuthBasePath; 94 | } 95 | 96 | /** 97 | * Sets the Rest API base Path 98 | * 99 | * @param string $basePath base path for oAuth 100 | * 101 | * @return OAuth 102 | */ 103 | public function setBasePath($basePath = null) 104 | { 105 | $this->basePath = $basePath; 106 | return $this; 107 | } 108 | 109 | /** 110 | * Returns the Rest API Base path 111 | * 112 | * @return string 113 | */ 114 | public function getBasePath() 115 | { 116 | return $this->basePath; 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /test/OAuthTests.php: -------------------------------------------------------------------------------- 1 | setApiClient(new DocuSign\eSign\Client\ApiClient()); 26 | 27 | $this->config = $testConfig; 28 | 29 | $oAuth = $this->config->getApiClient()->getOAuth(); 30 | $oAuth->setBasePath($testConfig->getHost()); 31 | $this->scope = [ 32 | DocuSign\eSign\Client\ApiClient::$SCOPE_SIGNATURE, 33 | DocuSign\eSign\Client\ApiClient::$SCOPE_IMPERSONATION 34 | ]; 35 | } 36 | 37 | public function testOauthUri() 38 | { 39 | $uri = $this->config->getApiClient()->getAuthorizationURI($this->config->getIntegratorKey(), $this->scope, $this->config->getReturnUrl(), 'code'); 40 | $this->assertStringEndsWith($this->config->getReturnUrl(), $uri); 41 | echo $uri; 42 | } 43 | 44 | public function testJwtUser() 45 | { 46 | $token = $this->config->getApiClient()->requestJWTUserToken($this->config->getIntegratorKey(), $this->config->getUserId(), $this->config->getClientKey(), $this->scope); 47 | $this->assertInstanceOf('DocuSign\eSign\Client\Auth\OAuthToken', $token[0]); 48 | } 49 | 50 | public function testJwtApplication() 51 | { 52 | $token = $this->config->getApiClient()->requestJWTApplicationToken($this->config->getIntegratorKey(), $this->config->getClientKey(), $this->scope); 53 | $this->assertInstanceOf('DocuSign\eSign\Client\Auth\OAuthToken', $token[0]); 54 | } 55 | 56 | /** 57 | * @depends testOauthUri 58 | */ 59 | public function testAuthorizationCodeLogin() 60 | { 61 | # Use printed URL to navigate through browser for authentication 62 | # IMPORTANT: after the login, DocuSign will send back a fresh 63 | # # authorization code as a query param of the redirect URI. 64 | # # You should set up a route that handles the redirect call to get 65 | # # that code and pass it to token endpoint as shown in the next 66 | # # lines: 67 | # # 68 | # $code = ''; 69 | # $token = $this->config->getApiClient()->generateAccessToken($this->config->getIntegratorKey(), $this->config->getClientSecret(), $code); 70 | 71 | # $this->assertInstanceOf('DocuSign\eSign\Client\Auth\OAuthToken', $token[0]); 72 | 73 | # echo $token[0]; 74 | 75 | # $user = $this->config->getApiClient()->getUserInfo($token[0]['access_token']); 76 | # $this->assertInstanceOf('DocuSign\eSign\Client\Auth\UserInfo', $user[0]); 77 | # $this->assertSame(200, $user[1]); 78 | 79 | # $loginAccount = $user[0]['accounts'][0]; 80 | # if (isset($loginInformation)) { 81 | # $accountId = $loginAccount->getAccountId(); 82 | # if (!empty($accountId)) { 83 | # $this->config->setAccountId($accountId); 84 | # } 85 | # } 86 | } 87 | 88 | 89 | } 90 | 91 | ?> -------------------------------------------------------------------------------- /src/Client/ApiException.php: -------------------------------------------------------------------------------- 1 | responseHeaders = $responseHeaders; 77 | $this->responseBody = $responseBody; 78 | } 79 | 80 | /** 81 | * Gets the HTTP response header 82 | * 83 | * @return string HTTP response header 84 | */ 85 | public function getResponseHeaders() 86 | { 87 | return $this->responseHeaders; 88 | } 89 | 90 | /** 91 | * Gets the HTTP body of the server response either as Json or string 92 | * 93 | * @return mixed HTTP body of the server response either as Json or string 94 | */ 95 | public function getResponseBody() 96 | { 97 | return $this->responseBody; 98 | } 99 | 100 | /** 101 | * Sets the deseralized response object (during deserialization) 102 | * 103 | * @param mixed $obj Deserialized response object 104 | * 105 | * @return void 106 | */ 107 | public function setResponseObject($obj) 108 | { 109 | $this->responseObject = $obj; 110 | } 111 | 112 | /** 113 | * Gets the deseralized response object (during deserialization) 114 | * 115 | * @return mixed the deserialized response object 116 | */ 117 | public function getResponseObject() 118 | { 119 | return $this->responseObject; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/HeaderSelector.php: -------------------------------------------------------------------------------- 1 | 9 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 10 | * @link https://github.com/swagger-api/swagger-codegen 11 | */ 12 | 13 | /** 14 | * Docusign eSignature REST API 15 | * 16 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 17 | * 18 | * OpenAPI spec version: v2.1 19 | * Contact: devcenter@docusign.com 20 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 21 | * Swagger Codegen version: 2.4.21 22 | */ 23 | 24 | /** 25 | * NOTE: This class is auto generated by the swagger code generator program. 26 | * https://github.com/swagger-api/swagger-codegen 27 | * Do not edit the class manually. 28 | */ 29 | 30 | namespace DocuSign\eSign; 31 | 32 | use \Exception; 33 | 34 | /** 35 | * ApiException Class Doc Comment 36 | * 37 | * @category Class 38 | * @package DocuSign\eSign 39 | * @author Swagger Codegen team 40 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 41 | * @link https://github.com/swagger-api/swagger-codegen 42 | */ 43 | class HeaderSelector 44 | { 45 | 46 | /** 47 | * SelectHeaders method comment 48 | * 49 | * @param string[] $accept list of strings 50 | * @param string[] $contentTypes list of strings for contentTypes 51 | * 52 | * @return array 53 | */ 54 | public function selectHeaders($accept, $contentTypes) 55 | { 56 | $headers = []; 57 | 58 | $accept = $this->_selectAcceptHeader($accept); 59 | if ($accept !== null) { 60 | $headers['Accept'] = $accept; 61 | } 62 | 63 | $headers['Content-Type'] = $this->_selectContentTypeHeader($contentTypes); 64 | return $headers; 65 | } 66 | 67 | /** 68 | * SelectHeadersForMultipart method comment 69 | * 70 | * @param string[] $accept list of strings 71 | * 72 | * @return array 73 | */ 74 | public function selectHeadersForMultipart($accept) 75 | { 76 | $headers = $this->selectHeaders($accept, []); 77 | 78 | unset($headers['Content-Type']); 79 | return $headers; 80 | } 81 | 82 | /** 83 | * Return the header 'Accept' based on an array of Accept provided 84 | * 85 | * @param string[] $accept Array of header 86 | * 87 | * @return string Accept (e.g. application/json) 88 | */ 89 | private function _selectAcceptHeader($accept) 90 | { 91 | if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { 92 | return null; 93 | } elseif (preg_grep("/application\/json/i", $accept)) { 94 | return 'application/json'; 95 | } else { 96 | return implode(',', $accept); 97 | } 98 | } 99 | 100 | /** 101 | * Return the content type based on an array of content-type provided 102 | * 103 | * @param string[] $contentType Array fo content-type 104 | * 105 | * @return string Content-Type (e.g. application/json) 106 | */ 107 | private function _selectContentTypeHeader($contentType) 108 | { 109 | if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { 110 | return 'application/json'; 111 | } elseif (preg_grep("/application\/json/i", $contentType)) { 112 | return 'application/json'; 113 | } else { 114 | return implode(',', $contentType); 115 | } 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Official Docusign eSignature PHP Client SDK 2 | 3 | The Docusign SDK makes integrating Docusign into your apps and websites a seamless experience. 4 | 5 | ## Table of Contents 6 | - [Introduction](#introduction) 7 | - [Installation](#installation) 8 | * [Version Information](#versionInformation) 9 | * [Requirements](#requirements) 10 | * [Compatibility](#compatibility) 11 | * [Composer](#composer) 12 | * [Manual Install](#manualInstall) 13 | - [Dependencies](#dependencies) 14 | - [API Reference](#apiReference) 15 | - [Code Examples](#codeExamples) 16 | - [OAuth Implementations](#oauthImplementations) 17 | - [Changelog](#changeLog) 18 | - [Support](#support) 19 | - [License](#license) 20 | - [Additional Resources](#additionalResources) 21 | 22 | 23 | ## Introduction 24 | Integrate eSignatures into your application in minutes. The secure and award-winning Docusign eSignature API makes requesting signatures, automating forms, and tracking documents directly from your app easy. 25 | 26 | 27 | ## Installation 28 | This client SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/esign-rest-api/how-to/) from the [Docusign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below. 29 | 30 | 31 | ### Version Information 32 | - **API version**: v2.1 33 | - **Latest SDK version**: 8.6.0 34 | 35 | 36 | ### Requirements 37 | * PHP 7.4+ 38 | * Free [developer account](https://go.docusign.com/o/sandbox/?postActivateUrl=https://developers.docusign.com/) 39 | 40 | 41 | ### Compatibility 42 | * PHP 7.4+ 43 | 44 | 45 | ### Composer: 46 | 1. In your PHP console, type: **Composer require docusign/esign-client;** 47 | 2. To use the package automatically, add to Composer's Autoload file: 48 | `require_once('vendor/autoload.php');` 49 | 50 | 51 | ### Manual Install: 52 | 53 |
    54 |
  1. Download or clone this repository.
  2. 55 |
  3. Bind the PHP SDK to your server or place it in a static location. 56 |
      57 |
    1. To bind to your server, edit the init.php file. Add:
      58 | require_once('/path/to/docusign-esign-php-client/autoload.php');
    2. 59 |
    3. To bind to single pages: In your PHP file that will utilize the PHP SDK, add:
      60 | require_once('/path/to/docusign-esign-php-client/autoload.php');
    4. 61 |
    62 |
  4. 63 |
  5. If you are using Composer V2 and get the error 'namespace cannot be found', add the following class mapping in the composer.json file.
  6. 64 | "autoload": { "classmap": [ "/path/to/docusign-esign-php-client/src" ] } 65 |
66 | 67 | 68 | ## SDK Dependencies 69 | This client has the following external dependencies: 70 | * [PHP cURL extension](https://www.php.net/manual/en/intro.curl.php) 71 | * [PHP JSON extension](https://php.net/manual/en/book.json.php) 72 | * [PHP MBString extension](https://www.php.net/manual/en/intro.mbstring.php) 73 | * firebase/php-jwt v6.0 74 | 75 | 76 | ## API Reference 77 | You can refer to the API reference [here](https://developers.docusign.com/docs/esign-rest-api/reference/). 78 | 79 | 80 | ## Code examples 81 | Explore our GitHub repository for the [Launcher](https://github.com/docusign/code-examples-php/), a self-executing package housing code examples for the eSignature PHP SDK. This package showcases several common use cases and their respective source files. Additionally, you can download a version preconfigured for your Docusign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples support both the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) and [JSON Web Token (JWT)](https://developers.docusign.com/platform/auth/jwt/) authentication workflows. 82 | 83 | 84 | ## OAuth implementations 85 | For details regarding which type of OAuth grant will work best for your Docusign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [Docusign Developer Center](https://developers.docusign.com/). 86 | 87 | For security purposes, Docusign recommends using the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) flow. 88 | 89 | 90 | ## Changelog 91 | You can refer to the complete changelog [here](https://github.com/docusign/docusign-esign-php-client/blob/master/CHANGELOG.md). 92 | 93 | 94 | ## Support 95 | Log issues against this client SDK through GitHub. You can also reach out to us through [Docusign Community](https://community.docusign.com/developer-59) and [Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi). 96 | 97 | 98 | ## License 99 | The Docusign eSignature PHP Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-esign-php-client/blob/master/LICENSE). 100 | 101 | 102 | ### Additional resources 103 | * [Docusign Developer Center](https://developers.docusign.com/) 104 | * [Docusign API on Twitter](https://twitter.com/docusignapi) 105 | * [Docusign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/) 106 | * [Docusign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ) -------------------------------------------------------------------------------- /src/Client/Auth/Link.php: -------------------------------------------------------------------------------- 1 | 'string', 53 | 'href' => 'string', 54 | ]; 55 | 56 | public static function swaggerTypes() 57 | { 58 | return self::$swaggerTypes; 59 | } 60 | 61 | /** 62 | * Array of attributes where the key is the local name, and the value is the original name 63 | * @var string[] 64 | */ 65 | protected static $attributeMap = [ 66 | 'rel' => 'rel', 67 | 'href' => 'href', 68 | ]; 69 | 70 | /** 71 | * Array of attributes to setter functions (for deserialization of responses) 72 | * @var string[] 73 | */ 74 | protected static $setters = [ 75 | 'rel' => 'setRel', 76 | 'href' => 'setHref', 77 | ]; 78 | 79 | 80 | /** 81 | * Array of attributes to getter functions (for serialization of requests) 82 | * @var string[] 83 | */ 84 | protected static $getters = [ 85 | 'rel' => 'getRel', 86 | 'href' => 'getHref', 87 | ]; 88 | 89 | public static function attributeMap() 90 | { 91 | return self::$attributeMap; 92 | } 93 | 94 | public static function setters() 95 | { 96 | return self::$setters; 97 | } 98 | 99 | public static function getters() 100 | { 101 | return self::$getters; 102 | } 103 | 104 | /** 105 | * Associative array for storing property values 106 | * @var mixed[] 107 | */ 108 | protected $container = []; 109 | 110 | /** 111 | * Constructor 112 | * @param mixed[] $data Associated array of property values initializing the model 113 | */ 114 | public function __construct(?array $data = null) 115 | { 116 | $this->container['rel'] = isset($data['rel']) ? $data['rel'] : null; 117 | $this->container['href'] = isset($data['href']) ? $data['href'] : null; 118 | } 119 | 120 | /** 121 | * show all the invalid properties with reasons. 122 | * 123 | * @return array invalid properties with reasons 124 | */ 125 | public function listInvalidProperties() 126 | { 127 | $invalid_properties = []; 128 | return $invalid_properties; 129 | } 130 | 131 | /** 132 | * validate all the properties in the model 133 | * return true if all passed 134 | * 135 | * @return bool True if all properteis are valid 136 | */ 137 | public function valid() 138 | { 139 | return true; 140 | } 141 | 142 | 143 | /** 144 | * Gets rel 145 | * @return string 146 | */ 147 | public function getRel() 148 | { 149 | return $this->container['rel']; 150 | } 151 | 152 | /** 153 | * Sets rel 154 | * @param string $rel 155 | * @return $this 156 | */ 157 | public function setRel($rel) 158 | { 159 | $this->container['rel'] = $rel; 160 | 161 | return $this; 162 | } 163 | 164 | /** 165 | * Gets href 166 | * @return string 167 | */ 168 | public function getHref() 169 | { 170 | return $this->container['href']; 171 | } 172 | 173 | /** 174 | * Sets href 175 | * @param string $href 176 | * @return $this 177 | */ 178 | public function setHref($href) 179 | { 180 | $this->container['href'] = $href; 181 | 182 | return $this; 183 | } 184 | 185 | /** 186 | * Returns true if offset exists. False otherwise. 187 | * @param integer $offset Offset 188 | * @return boolean 189 | */ 190 | #[\ReturnTypeWillChange] 191 | public function offsetExists($offset) 192 | { 193 | return isset($this->container[$offset]); 194 | } 195 | 196 | /** 197 | * Gets offset. 198 | * @param integer $offset Offset 199 | * @return mixed 200 | */ 201 | #[\ReturnTypeWillChange] 202 | public function offsetGet($offset) 203 | { 204 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 205 | } 206 | 207 | /** 208 | * Sets value based on offset. 209 | * @param integer $offset Offset 210 | * @param mixed $value Value to be set 211 | * @return void 212 | */ 213 | #[\ReturnTypeWillChange] 214 | public function offsetSet($offset, $value) 215 | { 216 | if (is_null($offset)) { 217 | $this->container[] = $value; 218 | } else { 219 | $this->container[$offset] = $value; 220 | } 221 | } 222 | 223 | /** 224 | * Unsets offset. 225 | * @param integer $offset Offset 226 | * @return void 227 | */ 228 | #[\ReturnTypeWillChange] 229 | public function offsetUnset($offset) 230 | { 231 | unset($this->container[$offset]); 232 | } 233 | 234 | /** 235 | * Gets the string presentation of the object 236 | * @return string 237 | */ 238 | public function __toString() 239 | { 240 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 241 | return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); 242 | } 243 | 244 | return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); 245 | } 246 | } 247 | 248 | 249 | -------------------------------------------------------------------------------- /src/Client/Auth/Organization.php: -------------------------------------------------------------------------------- 1 | 'string', 53 | 'links' => '\DocuSign\eSign\Client\Auth\Link[]', 54 | ]; 55 | 56 | public static function swaggerTypes() 57 | { 58 | return self::$swaggerTypes; 59 | } 60 | 61 | /** 62 | * Array of attributes where the key is the local name, and the value is the original name 63 | * @var string[] 64 | */ 65 | protected static $attributeMap = [ 66 | 'organization_id' => 'organization_id', 67 | 'links' => 'links', 68 | ]; 69 | 70 | /** 71 | * Array of attributes to setter functions (for deserialization of responses) 72 | * @var string[] 73 | */ 74 | protected static $setters = [ 75 | 'organization_id' => 'setOrganizationId', 76 | 'links' => 'setLinks', 77 | ]; 78 | 79 | 80 | /** 81 | * Array of attributes to getter functions (for serialization of requests) 82 | * @var string[] 83 | */ 84 | protected static $getters = [ 85 | 'organization_id' => 'getOrganizationId', 86 | 'links' => 'getLinks', 87 | ]; 88 | 89 | public static function attributeMap() 90 | { 91 | return self::$attributeMap; 92 | } 93 | 94 | public static function setters() 95 | { 96 | return self::$setters; 97 | } 98 | 99 | public static function getters() 100 | { 101 | return self::$getters; 102 | } 103 | 104 | /** 105 | * Associative array for storing property values 106 | * @var mixed[] 107 | */ 108 | protected $container = []; 109 | 110 | /** 111 | * Constructor 112 | * @param mixed[] $data Associated array of property values initializing the model 113 | */ 114 | public function __construct(?array $data = null) 115 | { 116 | $this->container['organization_id'] = isset($data['organization_id']) ? $data['organization_id'] : null; 117 | $this->container['links'] = isset($data['links']) ? $data['links'] : null; 118 | } 119 | 120 | /** 121 | * show all the invalid properties with reasons. 122 | * 123 | * @return array invalid properties with reasons 124 | */ 125 | public function listInvalidProperties() 126 | { 127 | $invalid_properties = []; 128 | return $invalid_properties; 129 | } 130 | 131 | /** 132 | * validate all the properties in the model 133 | * return true if all passed 134 | * 135 | * @return bool True if all properteis are valid 136 | */ 137 | public function valid() 138 | { 139 | return true; 140 | } 141 | 142 | 143 | /** 144 | * Gets organization_id 145 | * @return string 146 | */ 147 | public function getOrganizationId() 148 | { 149 | return $this->container['organization_id']; 150 | } 151 | 152 | /** 153 | * Sets organization_id 154 | * @param string $organization_id 155 | * @return $this 156 | */ 157 | public function setOrganizationId($organization_id) 158 | { 159 | $this->container['organization_id'] = $organization_id; 160 | 161 | return $this; 162 | } 163 | 164 | /** 165 | * Gets links 166 | * @return string 167 | */ 168 | public function getLinks() 169 | { 170 | return $this->container['links']; 171 | } 172 | 173 | /** 174 | * Sets links 175 | * @param string $links 176 | * @return $this 177 | */ 178 | public function setLinks($links) 179 | { 180 | $this->container['links'] = $links; 181 | 182 | return $this; 183 | } 184 | 185 | /** 186 | * Sets links 187 | * @param string $links 188 | * @return $this 189 | */ 190 | public function setHref($links) 191 | { 192 | $this->container['links'] = $links; 193 | 194 | return $this; 195 | } 196 | 197 | /** 198 | * Returns true if offset exists. False otherwise. 199 | * @param integer $offset Offset 200 | * @return boolean 201 | */ 202 | #[\ReturnTypeWillChange] 203 | public function offsetExists($offset) 204 | { 205 | return isset($this->container[$offset]); 206 | } 207 | 208 | /** 209 | * Gets offset. 210 | * @param integer $offset Offset 211 | * @return mixed 212 | */ 213 | #[\ReturnTypeWillChange] 214 | public function offsetGet($offset) 215 | { 216 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 217 | } 218 | 219 | /** 220 | * Sets value based on offset. 221 | * @param integer $offset Offset 222 | * @param mixed $value Value to be set 223 | * @return void 224 | */ 225 | #[\ReturnTypeWillChange] 226 | public function offsetSet($offset, $value) 227 | { 228 | if (is_null($offset)) { 229 | $this->container[] = $value; 230 | } else { 231 | $this->container[$offset] = $value; 232 | } 233 | } 234 | 235 | /** 236 | * Unsets offset. 237 | * @param integer $offset Offset 238 | * @return void 239 | */ 240 | #[\ReturnTypeWillChange] 241 | public function offsetUnset($offset) 242 | { 243 | unset($this->container[$offset]); 244 | } 245 | 246 | /** 247 | * Gets the string presentation of the object 248 | * @return string 249 | */ 250 | public function __toString() 251 | { 252 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 253 | return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); 254 | } 255 | 256 | return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); 257 | } 258 | } 259 | 260 | 261 | -------------------------------------------------------------------------------- /src/Api/TrustServiceProvidersApi.php: -------------------------------------------------------------------------------- 1 | 12 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 13 | * @link https://github.com/swagger-api/swagger-codegen 14 | */ 15 | 16 | /** 17 | * Docusign eSignature REST API 18 | * 19 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 20 | * 21 | * OpenAPI spec version: v2.1 22 | * Contact: devcenter@docusign.com 23 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 24 | * Swagger Codegen version: 2.4.21 25 | */ 26 | 27 | /** 28 | * NOTE: This class is auto generated by the swagger code generator program. 29 | * https://github.com/swagger-api/swagger-codegen 30 | * Do not edit the class manually. 31 | */ 32 | 33 | namespace DocuSign\eSign\Api\TrustServiceProvidersApi; 34 | 35 | 36 | 37 | namespace DocuSign\eSign\Api; 38 | 39 | use DocuSign\eSign\Client\ApiClient; 40 | use DocuSign\eSign\Client\ApiException; 41 | use DocuSign\eSign\Configuration; 42 | use DocuSign\eSign\ObjectSerializer; 43 | 44 | /** 45 | * TrustServiceProvidersApi Class Doc Comment 46 | * 47 | * @category Class 48 | * @package DocuSign\eSign 49 | * @author Swagger Codegen team 50 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 51 | * @link https://github.com/swagger-api/swagger-codegen 52 | */ 53 | class TrustServiceProvidersApi 54 | { 55 | /** 56 | * API Client 57 | * 58 | * @var ApiClient instance of the ApiClient 59 | */ 60 | protected ApiClient $apiClient; 61 | 62 | /** 63 | * Constructor 64 | * 65 | * @param ApiClient|null $apiClient The api client to use 66 | * 67 | * @return void 68 | */ 69 | public function __construct(?ApiClient $apiClient = null) 70 | { 71 | $this->apiClient = $apiClient ?? new ApiClient(); 72 | } 73 | 74 | /** 75 | * Get API client 76 | * 77 | * @return ApiClient get the API client 78 | */ 79 | public function getApiClient(): ApiClient 80 | { 81 | return $this->apiClient; 82 | } 83 | 84 | /** 85 | * Set the API client 86 | * 87 | * @param ApiClient $apiClient set the API client 88 | * 89 | * @return self 90 | */ 91 | public function setApiClient(ApiClient $apiClient): self 92 | { 93 | $this->apiClient = $apiClient; 94 | return $this; 95 | } 96 | 97 | /** 98 | * Update $resourcePath with $ 99 | * 100 | * @param string $resourcePath the resource path to use 101 | * @param string $baseName the base name param 102 | * @param string $paramName the parameter name 103 | * 104 | * @return string 105 | */ 106 | public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string 107 | { 108 | return str_replace( 109 | "{" . $baseName . "}", 110 | $this->apiClient->getSerializer()->toPathValue($paramName), 111 | $resourcePath 112 | ); 113 | } 114 | 115 | 116 | /** 117 | * Operation getSealProviders 118 | * 119 | * Returns Account available seals for specified account. 120 | * 121 | * @param ?string $account_id The external account number (int) or account ID Guid. 122 | * 123 | * @throws ApiException on non-2xx response 124 | * @return \DocuSign\eSign\Model\AccountSeals 125 | */ 126 | public function getSealProviders($account_id) 127 | { 128 | list($response) = $this->getSealProvidersWithHttpInfo($account_id); 129 | return $response; 130 | } 131 | 132 | /** 133 | * Operation getSealProvidersWithHttpInfo 134 | * 135 | * Returns Account available seals for specified account. 136 | * 137 | * @param ?string $account_id The external account number (int) or account ID Guid. 138 | * 139 | * @throws ApiException on non-2xx response 140 | * @return array of \DocuSign\eSign\Model\AccountSeals, HTTP status code, HTTP response headers (array of strings) 141 | */ 142 | public function getSealProvidersWithHttpInfo($account_id): array 143 | { 144 | // verify the required parameter 'account_id' is set 145 | if ($account_id === null) { 146 | throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getSealProviders'); 147 | } 148 | // parse inputs 149 | $resourcePath = "/v2.1/accounts/{accountId}/seals"; 150 | $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present 151 | $queryParams = $headerParams = $formParams = []; 152 | $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); 153 | $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); 154 | 155 | 156 | // path params 157 | if ($account_id !== null) { 158 | $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); 159 | } 160 | 161 | // default format to json 162 | $resourcePath = str_replace("{format}", "json", $resourcePath); 163 | 164 | // for model (json/xml) 165 | if (isset($_tempBody)) { 166 | $httpBody = $_tempBody; // $_tempBody is the method argument, if present 167 | } elseif (count($formParams) > 0) { 168 | $httpBody = $formParams; // for HTTP post (form) 169 | } 170 | // this endpoint requires OAuth (access token) 171 | if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { 172 | $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); 173 | } 174 | // make the API Call 175 | try { 176 | list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( 177 | $resourcePath, 178 | 'GET', 179 | $queryParams, 180 | $httpBody, 181 | $headerParams, 182 | '\DocuSign\eSign\Model\AccountSeals', 183 | '/v2.1/accounts/{accountId}/seals' 184 | ); 185 | 186 | return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\AccountSeals', $httpHeader), $statusCode, $httpHeader]; 187 | } catch (ApiException $e) { 188 | switch ($e->getCode()) { 189 | case 200: 190 | $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\AccountSeals', $e->getResponseHeaders()); 191 | $e->setResponseObject($data); 192 | break; 193 | case 400: 194 | $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); 195 | $e->setResponseObject($data); 196 | break; 197 | } 198 | 199 | throw $e; 200 | } 201 | } 202 | } 203 | -------------------------------------------------------------------------------- /src/Api/OrganizationsApi.php: -------------------------------------------------------------------------------- 1 | 12 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 13 | * @link https://github.com/swagger-api/swagger-codegen 14 | */ 15 | 16 | /** 17 | * Docusign eSignature REST API 18 | * 19 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 20 | * 21 | * OpenAPI spec version: v2.1 22 | * Contact: devcenter@docusign.com 23 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 24 | * Swagger Codegen version: 2.4.21 25 | */ 26 | 27 | /** 28 | * NOTE: This class is auto generated by the swagger code generator program. 29 | * https://github.com/swagger-api/swagger-codegen 30 | * Do not edit the class manually. 31 | */ 32 | 33 | namespace DocuSign\eSign\Api\OrganizationsApi; 34 | 35 | 36 | 37 | namespace DocuSign\eSign\Api; 38 | 39 | use DocuSign\eSign\Client\ApiClient; 40 | use DocuSign\eSign\Client\ApiException; 41 | use DocuSign\eSign\Configuration; 42 | use DocuSign\eSign\ObjectSerializer; 43 | 44 | /** 45 | * OrganizationsApi Class Doc Comment 46 | * 47 | * @category Class 48 | * @package DocuSign\eSign 49 | * @author Swagger Codegen team 50 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 51 | * @link https://github.com/swagger-api/swagger-codegen 52 | */ 53 | class OrganizationsApi 54 | { 55 | /** 56 | * API Client 57 | * 58 | * @var ApiClient instance of the ApiClient 59 | */ 60 | protected ApiClient $apiClient; 61 | 62 | /** 63 | * Constructor 64 | * 65 | * @param ApiClient|null $apiClient The api client to use 66 | * 67 | * @return void 68 | */ 69 | public function __construct(?ApiClient $apiClient = null) 70 | { 71 | $this->apiClient = $apiClient ?? new ApiClient(); 72 | } 73 | 74 | /** 75 | * Get API client 76 | * 77 | * @return ApiClient get the API client 78 | */ 79 | public function getApiClient(): ApiClient 80 | { 81 | return $this->apiClient; 82 | } 83 | 84 | /** 85 | * Set the API client 86 | * 87 | * @param ApiClient $apiClient set the API client 88 | * 89 | * @return self 90 | */ 91 | public function setApiClient(ApiClient $apiClient): self 92 | { 93 | $this->apiClient = $apiClient; 94 | return $this; 95 | } 96 | 97 | /** 98 | * Update $resourcePath with $ 99 | * 100 | * @param string $resourcePath the resource path to use 101 | * @param string $baseName the base name param 102 | * @param string $paramName the parameter name 103 | * 104 | * @return string 105 | */ 106 | public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string 107 | { 108 | return str_replace( 109 | "{" . $baseName . "}", 110 | $this->apiClient->getSerializer()->toPathValue($paramName), 111 | $resourcePath 112 | ); 113 | } 114 | 115 | 116 | /** 117 | * Operation getReportV2 118 | * 119 | * Retrieves org level report by correlation id and site. 120 | * 121 | * @param ?string $organization_id 122 | * @param ?string $report_correlation_id 123 | * 124 | * @throws ApiException on non-2xx response 125 | * @return mixed 126 | */ 127 | public function getReportV2($organization_id, $report_correlation_id) 128 | { 129 | list($response) = $this->getReportV2WithHttpInfo($organization_id, $report_correlation_id); 130 | return $response; 131 | } 132 | 133 | /** 134 | * Operation getReportV2WithHttpInfo 135 | * 136 | * Retrieves org level report by correlation id and site. 137 | * 138 | * @param ?string $organization_id 139 | * @param ?string $report_correlation_id 140 | * 141 | * @throws ApiException on non-2xx response 142 | * @return array of null, HTTP status code, HTTP response headers (array of strings) 143 | */ 144 | public function getReportV2WithHttpInfo($organization_id, $report_correlation_id): array 145 | { 146 | // verify the required parameter 'organization_id' is set 147 | if ($organization_id === null) { 148 | throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getReportV2'); 149 | } 150 | // verify the required parameter 'report_correlation_id' is set 151 | if ($report_correlation_id === null) { 152 | throw new \InvalidArgumentException('Missing the required parameter $report_correlation_id when calling getReportV2'); 153 | } 154 | // parse inputs 155 | $resourcePath = "/v2.1/organization_reporting/{organizationId}/reportsv2/{reportCorrelationId}"; 156 | $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present 157 | $queryParams = $headerParams = $formParams = []; 158 | $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); 159 | $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); 160 | 161 | 162 | // path params 163 | if ($organization_id !== null) { 164 | $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); 165 | } 166 | // path params 167 | if ($report_correlation_id !== null) { 168 | $resourcePath = self::updateResourcePath($resourcePath, "reportCorrelationId", $report_correlation_id); 169 | } 170 | 171 | // default format to json 172 | $resourcePath = str_replace("{format}", "json", $resourcePath); 173 | 174 | // for model (json/xml) 175 | if (isset($_tempBody)) { 176 | $httpBody = $_tempBody; // $_tempBody is the method argument, if present 177 | } elseif (count($formParams) > 0) { 178 | $httpBody = $formParams; // for HTTP post (form) 179 | } 180 | // this endpoint requires OAuth (access token) 181 | if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { 182 | $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); 183 | } 184 | // make the API Call 185 | try { 186 | list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( 187 | $resourcePath, 188 | 'GET', 189 | $queryParams, 190 | $httpBody, 191 | $headerParams, 192 | null, 193 | '/v2.1/organization_reporting/{organizationId}/reportsv2/{reportCorrelationId}' 194 | ); 195 | 196 | return [null, $statusCode, $httpHeader]; 197 | } catch (ApiException $e) { 198 | switch ($e->getCode()) { 199 | case 400: 200 | $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); 201 | $e->setResponseObject($data); 202 | break; 203 | } 204 | 205 | throw $e; 206 | } 207 | } 208 | } 209 | -------------------------------------------------------------------------------- /src/Api/DataFeedApi.php: -------------------------------------------------------------------------------- 1 | 12 | * @license The DocuSign eSignature PHP Client SDK is licensed under the MIT License. 13 | * @link https://github.com/swagger-api/swagger-codegen 14 | */ 15 | 16 | /** 17 | * DocuSign REST API 18 | * 19 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 20 | * 21 | * OpenAPI spec version: v2.1 22 | * Contact: devcenter@docusign.com 23 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 24 | * Swagger Codegen version: 2.4.21-SNAPSHOT 25 | */ 26 | 27 | /** 28 | * NOTE: This class is auto generated by the swagger code generator program. 29 | * https://github.com/swagger-api/swagger-codegen 30 | * Do not edit the class manually. 31 | */ 32 | 33 | namespace DocuSign\eSign\Api\DataFeedApi; 34 | 35 | 36 | 37 | namespace DocuSign\eSign\Api; 38 | 39 | use DocuSign\eSign\Client\ApiClient; 40 | use DocuSign\eSign\Client\ApiException; 41 | use DocuSign\eSign\Configuration; 42 | use DocuSign\eSign\ObjectSerializer; 43 | 44 | /** 45 | * DataFeedApi Class Doc Comment 46 | * 47 | * @category Class 48 | * @package DocuSign\eSign 49 | * @author Swagger Codegen team 50 | * @license The DocuSign eSignature PHP Client SDK is licensed under the MIT License. 51 | * @link https://github.com/swagger-api/swagger-codegen 52 | */ 53 | class DataFeedApi 54 | { 55 | /** 56 | * API Client 57 | * 58 | * @var ApiClient instance of the ApiClient 59 | */ 60 | protected ApiClient $apiClient; 61 | 62 | /** 63 | * Constructor 64 | * 65 | * @param ApiClient|null $apiClient The api client to use 66 | * 67 | * @return void 68 | */ 69 | public function __construct(?ApiClient $apiClient = null) 70 | { 71 | $this->apiClient = $apiClient ?? new ApiClient(); 72 | } 73 | 74 | /** 75 | * Get API client 76 | * 77 | * @return ApiClient get the API client 78 | */ 79 | public function getApiClient(): ApiClient 80 | { 81 | return $this->apiClient; 82 | } 83 | 84 | /** 85 | * Set the API client 86 | * 87 | * @param ApiClient $apiClient set the API client 88 | * 89 | * @return self 90 | */ 91 | public function setApiClient(ApiClient $apiClient): self 92 | { 93 | $this->apiClient = $apiClient; 94 | return $this; 95 | } 96 | 97 | /** 98 | * Update $resourcePath with $ 99 | * 100 | * @param string $resourcePath the resource path to use 101 | * @param string $baseName the base name param 102 | * @param string $paramName the parameter name 103 | * 104 | * @return string 105 | */ 106 | public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string 107 | { 108 | return str_replace( 109 | "{" . $baseName . "}", 110 | $this->apiClient->getSerializer()->toPathValue($paramName), 111 | $resourcePath 112 | ); 113 | } 114 | 115 | 116 | /** 117 | * Operation getDataFeedElement 118 | * 119 | * Retrieves a Datafeed element by Id. 120 | * 121 | * @param ?string $account_id The external account number (int) or account ID Guid. 122 | * @param ?string $data_feed_element_id 123 | * 124 | * @throws ApiException on non-2xx response 125 | * @return mixed 126 | */ 127 | public function getDataFeedElement($account_id, $data_feed_element_id) 128 | { 129 | list($response) = $this->getDataFeedElementWithHttpInfo($account_id, $data_feed_element_id); 130 | return $response; 131 | } 132 | 133 | /** 134 | * Operation getDataFeedElementWithHttpInfo 135 | * 136 | * Retrieves a Datafeed element by Id. 137 | * 138 | * @param ?string $account_id The external account number (int) or account ID Guid. 139 | * @param ?string $data_feed_element_id 140 | * 141 | * @throws ApiException on non-2xx response 142 | * @return array of null, HTTP status code, HTTP response headers (array of strings) 143 | */ 144 | public function getDataFeedElementWithHttpInfo($account_id, $data_feed_element_id): array 145 | { 146 | // verify the required parameter 'account_id' is set 147 | if ($account_id === null) { 148 | throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getDataFeedElement'); 149 | } 150 | // verify the required parameter 'data_feed_element_id' is set 151 | if ($data_feed_element_id === null) { 152 | throw new \InvalidArgumentException('Missing the required parameter $data_feed_element_id when calling getDataFeedElement'); 153 | } 154 | // parse inputs 155 | $resourcePath = "/v2.1/accounts/{accountId}/data_feeds/data/{dataFeedElementId}"; 156 | $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present 157 | $queryParams = $headerParams = $formParams = []; 158 | $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); 159 | $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]); 160 | 161 | 162 | // path params 163 | if ($account_id !== null) { 164 | $resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id); 165 | } 166 | // path params 167 | if ($data_feed_element_id !== null) { 168 | $resourcePath = self::updateResourcePath($resourcePath, "dataFeedElementId", $data_feed_element_id); 169 | } 170 | 171 | // default format to json 172 | $resourcePath = str_replace("{format}", "json", $resourcePath); 173 | 174 | // for model (json/xml) 175 | if (isset($_tempBody)) { 176 | $httpBody = $_tempBody; // $_tempBody is the method argument, if present 177 | } elseif (count($formParams) > 0) { 178 | $httpBody = $formParams; // for HTTP post (form) 179 | } 180 | // this endpoint requires OAuth (access token) 181 | if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { 182 | $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); 183 | } 184 | // make the API Call 185 | try { 186 | list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( 187 | $resourcePath, 188 | 'GET', 189 | $queryParams, 190 | $httpBody, 191 | $headerParams, 192 | null, 193 | '/v2.1/accounts/{accountId}/data_feeds/data/{dataFeedElementId}' 194 | ); 195 | 196 | return [null, $statusCode, $httpHeader]; 197 | } catch (ApiException $e) { 198 | switch ($e->getCode()) { 199 | case 400: 200 | $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders()); 201 | $e->setResponseObject($data); 202 | break; 203 | } 204 | 205 | throw $e; 206 | } 207 | } 208 | } 209 | -------------------------------------------------------------------------------- /src/Model/ConnectDeleteFailureResult.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * ConnectDeleteFailureResult Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class ConnectDeleteFailureResult implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'connectDeleteFailureResult'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | } 183 | 184 | /** 185 | * Show all the invalid properties with reasons. 186 | * 187 | * @return array invalid properties with reasons 188 | */ 189 | public function listInvalidProperties() 190 | { 191 | $invalidProperties = []; 192 | 193 | return $invalidProperties; 194 | } 195 | 196 | /** 197 | * Validate all the properties in the model 198 | * return true if all passed 199 | * 200 | * @return bool True if all properties are valid 201 | */ 202 | public function valid() 203 | { 204 | return count($this->listInvalidProperties()) === 0; 205 | } 206 | 207 | /** 208 | * Returns true if offset exists. False otherwise. 209 | * 210 | * @param integer $offset Offset 211 | * 212 | * @return boolean 213 | */ 214 | #[\ReturnTypeWillChange] 215 | public function offsetExists($offset) 216 | { 217 | return isset($this->container[$offset]); 218 | } 219 | 220 | /** 221 | * Gets offset. 222 | * 223 | * @param integer $offset Offset 224 | * 225 | * @return mixed 226 | */ 227 | #[\ReturnTypeWillChange] 228 | public function offsetGet($offset) 229 | { 230 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 231 | } 232 | 233 | /** 234 | * Sets value based on offset. 235 | * 236 | * @param integer $offset Offset 237 | * @param mixed $value Value to be set 238 | * 239 | * @return void 240 | */ 241 | #[\ReturnTypeWillChange] 242 | public function offsetSet($offset, $value) 243 | { 244 | if (is_null($offset)) { 245 | $this->container[] = $value; 246 | } else { 247 | $this->container[$offset] = $value; 248 | } 249 | } 250 | 251 | /** 252 | * Unsets offset. 253 | * 254 | * @param integer $offset Offset 255 | * 256 | * @return void 257 | */ 258 | #[\ReturnTypeWillChange] 259 | public function offsetUnset($offset) 260 | { 261 | unset($this->container[$offset]); 262 | } 263 | 264 | /** 265 | * Gets the string presentation of the object 266 | * 267 | * @return string 268 | */ 269 | public function __toString() 270 | { 271 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 272 | return json_encode( 273 | ObjectSerializer::sanitizeForSerialization($this), 274 | JSON_PRETTY_PRINT 275 | ); 276 | } 277 | 278 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 279 | } 280 | } 281 | 282 | -------------------------------------------------------------------------------- /src/Model/UpdateTransactionResponse.php: -------------------------------------------------------------------------------- 1 | '?string' 61 | ]; 62 | 63 | /** 64 | * Array of property to format mappings. Used for (de)serialization 65 | * 66 | * @var string[] 67 | */ 68 | protected static $swaggerFormats = [ 69 | 'redirection_url' => null 70 | ]; 71 | 72 | /** 73 | * Array of property to type mappings. Used for (de)serialization 74 | * 75 | * @return array 76 | */ 77 | public static function swaggerTypes() 78 | { 79 | return self::$swaggerTypes; 80 | } 81 | 82 | /** 83 | * Array of property to format mappings. Used for (de)serialization 84 | * 85 | * @return array 86 | */ 87 | public static function swaggerFormats() 88 | { 89 | return self::$swaggerFormats; 90 | } 91 | 92 | /** 93 | * Array of attributes where the key is the local name, 94 | * and the value is the original name 95 | * 96 | * @var string[] 97 | */ 98 | protected static $attributeMap = [ 99 | 'redirection_url' => 'redirectionUrl' 100 | ]; 101 | 102 | /** 103 | * Array of attributes to setter functions (for deserialization of responses) 104 | * 105 | * @var string[] 106 | */ 107 | protected static $setters = [ 108 | 'redirection_url' => 'setRedirectionUrl' 109 | ]; 110 | 111 | /** 112 | * Array of attributes to getter functions (for serialization of requests) 113 | * 114 | * @var string[] 115 | */ 116 | protected static $getters = [ 117 | 'redirection_url' => 'getRedirectionUrl' 118 | ]; 119 | 120 | /** 121 | * Array of attributes where the key is the local name, 122 | * and the value is the original name 123 | * 124 | * @return array 125 | */ 126 | public static function attributeMap() 127 | { 128 | return self::$attributeMap; 129 | } 130 | 131 | /** 132 | * Array of attributes to setter functions (for deserialization of responses) 133 | * 134 | * @return array 135 | */ 136 | public static function setters() 137 | { 138 | return self::$setters; 139 | } 140 | 141 | /** 142 | * Array of attributes to getter functions (for serialization of requests) 143 | * 144 | * @return array 145 | */ 146 | public static function getters() 147 | { 148 | return self::$getters; 149 | } 150 | 151 | /** 152 | * The original name of the model. 153 | * 154 | * @return string 155 | */ 156 | public function getModelName() 157 | { 158 | return self::$swaggerModelName; 159 | } 160 | 161 | 162 | 163 | 164 | 165 | /** 166 | * Associative array for storing property values 167 | * 168 | * @var mixed[] 169 | */ 170 | protected $container = []; 171 | 172 | /** 173 | * Constructor 174 | * 175 | * @param mixed[] $data Associated array of property values 176 | * initializing the model 177 | */ 178 | public function __construct(?array $data = null) 179 | { 180 | $this->container['redirection_url'] = isset($data['redirection_url']) ? $data['redirection_url'] : null; 181 | } 182 | 183 | /** 184 | * Show all the invalid properties with reasons. 185 | * 186 | * @return array invalid properties with reasons 187 | */ 188 | public function listInvalidProperties() 189 | { 190 | $invalidProperties = []; 191 | 192 | return $invalidProperties; 193 | } 194 | 195 | /** 196 | * Validate all the properties in the model 197 | * return true if all passed 198 | * 199 | * @return bool True if all properties are valid 200 | */ 201 | public function valid() 202 | { 203 | return count($this->listInvalidProperties()) === 0; 204 | } 205 | 206 | 207 | /** 208 | * Gets redirection_url 209 | * 210 | * @return ?string 211 | */ 212 | public function getRedirectionUrl() 213 | { 214 | return $this->container['redirection_url']; 215 | } 216 | 217 | /** 218 | * Sets redirection_url 219 | * 220 | * @param ?string $redirection_url 221 | * 222 | * @return $this 223 | */ 224 | public function setRedirectionUrl($redirection_url) 225 | { 226 | $this->container['redirection_url'] = $redirection_url; 227 | 228 | return $this; 229 | } 230 | /** 231 | * Returns true if offset exists. False otherwise. 232 | * 233 | * @param integer $offset Offset 234 | * 235 | * @return boolean 236 | */ 237 | public function offsetExists($offset) 238 | { 239 | return isset($this->container[$offset]); 240 | } 241 | 242 | /** 243 | * Gets offset. 244 | * 245 | * @param integer $offset Offset 246 | * 247 | * @return mixed 248 | */ 249 | public function offsetGet($offset) 250 | { 251 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 252 | } 253 | 254 | /** 255 | * Sets value based on offset. 256 | * 257 | * @param integer $offset Offset 258 | * @param mixed $value Value to be set 259 | * 260 | * @return void 261 | */ 262 | public function offsetSet($offset, $value) 263 | { 264 | if (is_null($offset)) { 265 | $this->container[] = $value; 266 | } else { 267 | $this->container[$offset] = $value; 268 | } 269 | } 270 | 271 | /** 272 | * Unsets offset. 273 | * 274 | * @param integer $offset Offset 275 | * 276 | * @return void 277 | */ 278 | public function offsetUnset($offset) 279 | { 280 | unset($this->container[$offset]); 281 | } 282 | 283 | /** 284 | * Gets the string presentation of the object 285 | * 286 | * @return string 287 | */ 288 | public function __toString() 289 | { 290 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 291 | return json_encode( 292 | ObjectSerializer::sanitizeForSerialization($this), 293 | JSON_PRETTY_PRINT 294 | ); 295 | } 296 | 297 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 298 | } 299 | } 300 | 301 | -------------------------------------------------------------------------------- /src/Model/ViewUrl.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * ViewUrl Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class ViewUrl implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'viewUrl'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'url' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'url' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'url' => 'url' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'url' => 'setUrl' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'url' => 'getUrl' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['url'] = isset($data['url']) ? $data['url'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets url 211 | * 212 | * @return ?string 213 | */ 214 | public function getUrl() 215 | { 216 | return $this->container['url']; 217 | } 218 | 219 | /** 220 | * Sets url 221 | * 222 | * @param ?string $url The view URL to be navigated to. 223 | * 224 | * @return $this 225 | */ 226 | public function setUrl($url) 227 | { 228 | $this->container['url'] = $url; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/PaletteItemSettings.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * PaletteItemSettings Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class PaletteItemSettings implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'paletteItemSettings'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'show' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'show' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'show' => 'show' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'show' => 'setShow' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'show' => 'getShow' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['show'] = isset($data['show']) ? $data['show'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets show 211 | * 212 | * @return ?string 213 | */ 214 | public function getShow() 215 | { 216 | return $this->container['show']; 217 | } 218 | 219 | /** 220 | * Sets show 221 | * 222 | * @param ?string $show 223 | * 224 | * @return $this 225 | */ 226 | public function setShow($show) 227 | { 228 | $this->container['show'] = $show; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/TabMetadataList.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * TabMetadataList Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class TabMetadataList implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'tabMetadataList'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'tabs' => '\DocuSign\eSign\Model\TabMetadata[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'tabs' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'tabs' => 'tabs' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'tabs' => 'setTabs' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'tabs' => 'getTabs' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['tabs'] = isset($data['tabs']) ? $data['tabs'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets tabs 211 | * 212 | * @return \DocuSign\eSign\Model\TabMetadata[] 213 | */ 214 | public function getTabs() 215 | { 216 | return $this->container['tabs']; 217 | } 218 | 219 | /** 220 | * Sets tabs 221 | * 222 | * @param \DocuSign\eSign\Model\TabMetadata[] $tabs 223 | * 224 | * @return $this 225 | */ 226 | public function setTabs($tabs) 227 | { 228 | $this->container['tabs'] = $tabs; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/UserInfoList.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * UserInfoList Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class UserInfoList implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'userInfoList'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'users' => '\DocuSign\eSign\Model\UserInfo[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'users' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'users' => 'users' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'users' => 'setUsers' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'users' => 'getUsers' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['users'] = isset($data['users']) ? $data['users'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets users 211 | * 212 | * @return \DocuSign\eSign\Model\UserInfo[] 213 | */ 214 | public function getUsers() 215 | { 216 | return $this->container['users']; 217 | } 218 | 219 | /** 220 | * Sets users 221 | * 222 | * @param \DocuSign\eSign\Model\UserInfo[] $users 223 | * 224 | * @return $this 225 | */ 226 | public function setUsers($users) 227 | { 228 | $this->container['users'] = $users; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/AccountSeals.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * AccountSeals Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class AccountSeals implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'accountSeals'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'seals' => '\DocuSign\eSign\Model\SealIdentifier[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'seals' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'seals' => 'seals' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'seals' => 'setSeals' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'seals' => 'getSeals' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['seals'] = isset($data['seals']) ? $data['seals'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets seals 211 | * 212 | * @return \DocuSign\eSign\Model\SealIdentifier[] 213 | */ 214 | public function getSeals() 215 | { 216 | return $this->container['seals']; 217 | } 218 | 219 | /** 220 | * Sets seals 221 | * 222 | * @param \DocuSign\eSign\Model\SealIdentifier[] $seals 223 | * 224 | * @return $this 225 | */ 226 | public function setSeals($seals) 227 | { 228 | $this->container['seals'] = $seals; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/IdEvidenceViewLink.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * IdEvidenceViewLink Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class IdEvidenceViewLink implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'idEvidenceViewLink'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'view_link' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'view_link' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'view_link' => 'viewLink' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'view_link' => 'setViewLink' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'view_link' => 'getViewLink' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['view_link'] = isset($data['view_link']) ? $data['view_link'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets view_link 211 | * 212 | * @return ?string 213 | */ 214 | public function getViewLink() 215 | { 216 | return $this->container['view_link']; 217 | } 218 | 219 | /** 220 | * Sets view_link 221 | * 222 | * @param ?string $view_link 223 | * 224 | * @return $this 225 | */ 226 | public function setViewLink($view_link) 227 | { 228 | $this->container['view_link'] = $view_link; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/IdCheckSecurityStep.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * IdCheckSecurityStep Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class IdCheckSecurityStep implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'idCheckSecurityStep'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'auth_type' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'auth_type' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'auth_type' => 'authType' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'auth_type' => 'setAuthType' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'auth_type' => 'getAuthType' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['auth_type'] = isset($data['auth_type']) ? $data['auth_type'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets auth_type 211 | * 212 | * @return ?string 213 | */ 214 | public function getAuthType() 215 | { 216 | return $this->container['auth_type']; 217 | } 218 | 219 | /** 220 | * Sets auth_type 221 | * 222 | * @param ?string $auth_type 223 | * 224 | * @return $this 225 | */ 226 | public function setAuthType($auth_type) 227 | { 228 | $this->container['auth_type'] = $auth_type; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/SigningGroupUsers.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * SigningGroupUsers Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class SigningGroupUsers implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'signingGroupUsers'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'users' => '\DocuSign\eSign\Model\SigningGroupUser[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'users' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'users' => 'users' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'users' => 'setUsers' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'users' => 'getUsers' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['users'] = isset($data['users']) ? $data['users'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets users 211 | * 212 | * @return \DocuSign\eSign\Model\SigningGroupUser[] 213 | */ 214 | public function getUsers() 215 | { 216 | return $this->container['users']; 217 | } 218 | 219 | /** 220 | * Sets users 221 | * 222 | * @param \DocuSign\eSign\Model\SigningGroupUser[] $users 223 | * 224 | * @return $this 225 | */ 226 | public function setUsers($users) 227 | { 228 | $this->container['users'] = $users; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/ConnectedObjectDetails.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * ConnectedObjectDetails Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class ConnectedObjectDetails implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'connectedObjectDetails'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'record_id' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'record_id' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'record_id' => 'recordId' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'record_id' => 'setRecordId' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'record_id' => 'getRecordId' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['record_id'] = isset($data['record_id']) ? $data['record_id'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets record_id 211 | * 212 | * @return ?string 213 | */ 214 | public function getRecordId() 215 | { 216 | return $this->container['record_id']; 217 | } 218 | 219 | /** 220 | * Sets record_id 221 | * 222 | * @param ?string $record_id 223 | * 224 | * @return $this 225 | */ 226 | public function setRecordId($record_id) 227 | { 228 | $this->container['record_id'] = $record_id; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/BulkSendBatchRequest.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * BulkSendBatchRequest Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class BulkSendBatchRequest implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'bulkSendBatchRequest'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'batch_name' => '?string' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'batch_name' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'batch_name' => 'batchName' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'batch_name' => 'setBatchName' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'batch_name' => 'getBatchName' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['batch_name'] = isset($data['batch_name']) ? $data['batch_name'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets batch_name 211 | * 212 | * @return ?string 213 | */ 214 | public function getBatchName() 215 | { 216 | return $this->container['batch_name']; 217 | } 218 | 219 | /** 220 | * Sets batch_name 221 | * 222 | * @param ?string $batch_name 223 | * 224 | * @return $this 225 | */ 226 | public function setBatchName($batch_name) 227 | { 228 | $this->container['batch_name'] = $batch_name; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/AccountPasswordLockoutDurationType.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * AccountPasswordLockoutDurationType Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class AccountPasswordLockoutDurationType implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'accountPasswordLockoutDurationType'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'options' => '?string[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'options' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'options' => 'options' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'options' => 'setOptions' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'options' => 'getOptions' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['options'] = isset($data['options']) ? $data['options'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets options 211 | * 212 | * @return ?string[] 213 | */ 214 | public function getOptions() 215 | { 216 | return $this->container['options']; 217 | } 218 | 219 | /** 220 | * Sets options 221 | * 222 | * @param ?string[] $options 223 | * 224 | * @return $this 225 | */ 226 | public function setOptions($options) 227 | { 228 | $this->container['options'] = $options; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/CreditCardTypes.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * CreditCardTypes Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class CreditCardTypes implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'creditCardTypes'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'card_types' => '?string[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'card_types' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'card_types' => 'cardTypes' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'card_types' => 'setCardTypes' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'card_types' => 'getCardTypes' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['card_types'] = isset($data['card_types']) ? $data['card_types'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets card_types 211 | * 212 | * @return ?string[] 213 | */ 214 | public function getCardTypes() 215 | { 216 | return $this->container['card_types']; 217 | } 218 | 219 | /** 220 | * Sets card_types 221 | * 222 | * @param ?string[] $card_types An array containing supported credit card types. 223 | * 224 | * @return $this 225 | */ 226 | public function setCardTypes($card_types) 227 | { 228 | $this->container['card_types'] = $card_types; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/BrandRequest.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * BrandRequest Class Doc Comment 38 | * 39 | * @category Class 40 | * @description This request object contains information about a specific brand. 41 | * @package DocuSign\eSign 42 | * @author Swagger Codegen team 43 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 44 | * @link https://github.com/swagger-api/swagger-codegen 45 | */ 46 | class BrandRequest implements ModelInterface, ArrayAccess 47 | { 48 | const DISCRIMINATOR = null; 49 | 50 | /** 51 | * The original name of the model. 52 | * 53 | * @var string 54 | */ 55 | protected static $swaggerModelName = 'brandRequest'; 56 | 57 | /** 58 | * Array of property to type mappings. Used for (de)serialization 59 | * 60 | * @var string[] 61 | */ 62 | protected static $swaggerTypes = [ 63 | 'brand_id' => '?string' 64 | ]; 65 | 66 | /** 67 | * Array of property to format mappings. Used for (de)serialization 68 | * 69 | * @var string[] 70 | */ 71 | protected static $swaggerFormats = [ 72 | 'brand_id' => null 73 | ]; 74 | 75 | /** 76 | * Array of property to type mappings. Used for (de)serialization 77 | * 78 | * @return array 79 | */ 80 | public static function swaggerTypes() 81 | { 82 | return self::$swaggerTypes; 83 | } 84 | 85 | /** 86 | * Array of property to format mappings. Used for (de)serialization 87 | * 88 | * @return array 89 | */ 90 | public static function swaggerFormats() 91 | { 92 | return self::$swaggerFormats; 93 | } 94 | 95 | /** 96 | * Array of attributes where the key is the local name, 97 | * and the value is the original name 98 | * 99 | * @var string[] 100 | */ 101 | protected static $attributeMap = [ 102 | 'brand_id' => 'brandId' 103 | ]; 104 | 105 | /** 106 | * Array of attributes to setter functions (for deserialization of responses) 107 | * 108 | * @var string[] 109 | */ 110 | protected static $setters = [ 111 | 'brand_id' => 'setBrandId' 112 | ]; 113 | 114 | /** 115 | * Array of attributes to getter functions (for serialization of requests) 116 | * 117 | * @var string[] 118 | */ 119 | protected static $getters = [ 120 | 'brand_id' => 'getBrandId' 121 | ]; 122 | 123 | /** 124 | * Array of attributes where the key is the local name, 125 | * and the value is the original name 126 | * 127 | * @return array 128 | */ 129 | public static function attributeMap() 130 | { 131 | return self::$attributeMap; 132 | } 133 | 134 | /** 135 | * Array of attributes to setter functions (for deserialization of responses) 136 | * 137 | * @return array 138 | */ 139 | public static function setters() 140 | { 141 | return self::$setters; 142 | } 143 | 144 | /** 145 | * Array of attributes to getter functions (for serialization of requests) 146 | * 147 | * @return array 148 | */ 149 | public static function getters() 150 | { 151 | return self::$getters; 152 | } 153 | 154 | /** 155 | * The original name of the model. 156 | * 157 | * @return string 158 | */ 159 | public function getModelName() 160 | { 161 | return self::$swaggerModelName; 162 | } 163 | 164 | 165 | 166 | 167 | 168 | /** 169 | * Associative array for storing property values 170 | * 171 | * @var mixed[] 172 | */ 173 | protected $container = []; 174 | 175 | /** 176 | * Constructor 177 | * 178 | * @param mixed[] $data Associated array of property values 179 | * initializing the model 180 | */ 181 | public function __construct(?array $data = null) 182 | { 183 | $this->container['brand_id'] = isset($data['brand_id']) ? $data['brand_id'] : null; 184 | } 185 | 186 | /** 187 | * Show all the invalid properties with reasons. 188 | * 189 | * @return array invalid properties with reasons 190 | */ 191 | public function listInvalidProperties() 192 | { 193 | $invalidProperties = []; 194 | 195 | return $invalidProperties; 196 | } 197 | 198 | /** 199 | * Validate all the properties in the model 200 | * return true if all passed 201 | * 202 | * @return bool True if all properties are valid 203 | */ 204 | public function valid() 205 | { 206 | return count($this->listInvalidProperties()) === 0; 207 | } 208 | 209 | 210 | /** 211 | * Gets brand_id 212 | * 213 | * @return ?string 214 | */ 215 | public function getBrandId() 216 | { 217 | return $this->container['brand_id']; 218 | } 219 | 220 | /** 221 | * Sets brand_id 222 | * 223 | * @param ?string $brand_id The ID of the brand used in API calls 224 | * 225 | * @return $this 226 | */ 227 | public function setBrandId($brand_id) 228 | { 229 | $this->container['brand_id'] = $brand_id; 230 | 231 | return $this; 232 | } 233 | /** 234 | * Returns true if offset exists. False otherwise. 235 | * 236 | * @param integer $offset Offset 237 | * 238 | * @return boolean 239 | */ 240 | #[\ReturnTypeWillChange] 241 | public function offsetExists($offset) 242 | { 243 | return isset($this->container[$offset]); 244 | } 245 | 246 | /** 247 | * Gets offset. 248 | * 249 | * @param integer $offset Offset 250 | * 251 | * @return mixed 252 | */ 253 | #[\ReturnTypeWillChange] 254 | public function offsetGet($offset) 255 | { 256 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 257 | } 258 | 259 | /** 260 | * Sets value based on offset. 261 | * 262 | * @param integer $offset Offset 263 | * @param mixed $value Value to be set 264 | * 265 | * @return void 266 | */ 267 | #[\ReturnTypeWillChange] 268 | public function offsetSet($offset, $value) 269 | { 270 | if (is_null($offset)) { 271 | $this->container[] = $value; 272 | } else { 273 | $this->container[$offset] = $value; 274 | } 275 | } 276 | 277 | /** 278 | * Unsets offset. 279 | * 280 | * @param integer $offset Offset 281 | * 282 | * @return void 283 | */ 284 | #[\ReturnTypeWillChange] 285 | public function offsetUnset($offset) 286 | { 287 | unset($this->container[$offset]); 288 | } 289 | 290 | /** 291 | * Gets the string presentation of the object 292 | * 293 | * @return string 294 | */ 295 | public function __toString() 296 | { 297 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 298 | return json_encode( 299 | ObjectSerializer::sanitizeForSerialization($this), 300 | JSON_PRETTY_PRINT 301 | ); 302 | } 303 | 304 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 305 | } 306 | } 307 | 308 | -------------------------------------------------------------------------------- /src/Model/BrandsRequest.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * BrandsRequest Class Doc Comment 38 | * 39 | * @category Class 40 | * @description Details about one or more brands. 41 | * @package DocuSign\eSign 42 | * @author Swagger Codegen team 43 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 44 | * @link https://github.com/swagger-api/swagger-codegen 45 | */ 46 | class BrandsRequest implements ModelInterface, ArrayAccess 47 | { 48 | const DISCRIMINATOR = null; 49 | 50 | /** 51 | * The original name of the model. 52 | * 53 | * @var string 54 | */ 55 | protected static $swaggerModelName = 'brandsRequest'; 56 | 57 | /** 58 | * Array of property to type mappings. Used for (de)serialization 59 | * 60 | * @var string[] 61 | */ 62 | protected static $swaggerTypes = [ 63 | 'brands' => '\DocuSign\eSign\Model\BrandRequest[]' 64 | ]; 65 | 66 | /** 67 | * Array of property to format mappings. Used for (de)serialization 68 | * 69 | * @var string[] 70 | */ 71 | protected static $swaggerFormats = [ 72 | 'brands' => null 73 | ]; 74 | 75 | /** 76 | * Array of property to type mappings. Used for (de)serialization 77 | * 78 | * @return array 79 | */ 80 | public static function swaggerTypes() 81 | { 82 | return self::$swaggerTypes; 83 | } 84 | 85 | /** 86 | * Array of property to format mappings. Used for (de)serialization 87 | * 88 | * @return array 89 | */ 90 | public static function swaggerFormats() 91 | { 92 | return self::$swaggerFormats; 93 | } 94 | 95 | /** 96 | * Array of attributes where the key is the local name, 97 | * and the value is the original name 98 | * 99 | * @var string[] 100 | */ 101 | protected static $attributeMap = [ 102 | 'brands' => 'brands' 103 | ]; 104 | 105 | /** 106 | * Array of attributes to setter functions (for deserialization of responses) 107 | * 108 | * @var string[] 109 | */ 110 | protected static $setters = [ 111 | 'brands' => 'setBrands' 112 | ]; 113 | 114 | /** 115 | * Array of attributes to getter functions (for serialization of requests) 116 | * 117 | * @var string[] 118 | */ 119 | protected static $getters = [ 120 | 'brands' => 'getBrands' 121 | ]; 122 | 123 | /** 124 | * Array of attributes where the key is the local name, 125 | * and the value is the original name 126 | * 127 | * @return array 128 | */ 129 | public static function attributeMap() 130 | { 131 | return self::$attributeMap; 132 | } 133 | 134 | /** 135 | * Array of attributes to setter functions (for deserialization of responses) 136 | * 137 | * @return array 138 | */ 139 | public static function setters() 140 | { 141 | return self::$setters; 142 | } 143 | 144 | /** 145 | * Array of attributes to getter functions (for serialization of requests) 146 | * 147 | * @return array 148 | */ 149 | public static function getters() 150 | { 151 | return self::$getters; 152 | } 153 | 154 | /** 155 | * The original name of the model. 156 | * 157 | * @return string 158 | */ 159 | public function getModelName() 160 | { 161 | return self::$swaggerModelName; 162 | } 163 | 164 | 165 | 166 | 167 | 168 | /** 169 | * Associative array for storing property values 170 | * 171 | * @var mixed[] 172 | */ 173 | protected $container = []; 174 | 175 | /** 176 | * Constructor 177 | * 178 | * @param mixed[] $data Associated array of property values 179 | * initializing the model 180 | */ 181 | public function __construct(?array $data = null) 182 | { 183 | $this->container['brands'] = isset($data['brands']) ? $data['brands'] : null; 184 | } 185 | 186 | /** 187 | * Show all the invalid properties with reasons. 188 | * 189 | * @return array invalid properties with reasons 190 | */ 191 | public function listInvalidProperties() 192 | { 193 | $invalidProperties = []; 194 | 195 | return $invalidProperties; 196 | } 197 | 198 | /** 199 | * Validate all the properties in the model 200 | * return true if all passed 201 | * 202 | * @return bool True if all properties are valid 203 | */ 204 | public function valid() 205 | { 206 | return count($this->listInvalidProperties()) === 0; 207 | } 208 | 209 | 210 | /** 211 | * Gets brands 212 | * 213 | * @return \DocuSign\eSign\Model\BrandRequest[] 214 | */ 215 | public function getBrands() 216 | { 217 | return $this->container['brands']; 218 | } 219 | 220 | /** 221 | * Sets brands 222 | * 223 | * @param \DocuSign\eSign\Model\BrandRequest[] $brands The list of brands. 224 | * 225 | * @return $this 226 | */ 227 | public function setBrands($brands) 228 | { 229 | $this->container['brands'] = $brands; 230 | 231 | return $this; 232 | } 233 | /** 234 | * Returns true if offset exists. False otherwise. 235 | * 236 | * @param integer $offset Offset 237 | * 238 | * @return boolean 239 | */ 240 | #[\ReturnTypeWillChange] 241 | public function offsetExists($offset) 242 | { 243 | return isset($this->container[$offset]); 244 | } 245 | 246 | /** 247 | * Gets offset. 248 | * 249 | * @param integer $offset Offset 250 | * 251 | * @return mixed 252 | */ 253 | #[\ReturnTypeWillChange] 254 | public function offsetGet($offset) 255 | { 256 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 257 | } 258 | 259 | /** 260 | * Sets value based on offset. 261 | * 262 | * @param integer $offset Offset 263 | * @param mixed $value Value to be set 264 | * 265 | * @return void 266 | */ 267 | #[\ReturnTypeWillChange] 268 | public function offsetSet($offset, $value) 269 | { 270 | if (is_null($offset)) { 271 | $this->container[] = $value; 272 | } else { 273 | $this->container[$offset] = $value; 274 | } 275 | } 276 | 277 | /** 278 | * Unsets offset. 279 | * 280 | * @param integer $offset Offset 281 | * 282 | * @return void 283 | */ 284 | #[\ReturnTypeWillChange] 285 | public function offsetUnset($offset) 286 | { 287 | unset($this->container[$offset]); 288 | } 289 | 290 | /** 291 | * Gets the string presentation of the object 292 | * 293 | * @return string 294 | */ 295 | public function __toString() 296 | { 297 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 298 | return json_encode( 299 | ObjectSerializer::sanitizeForSerialization($this), 300 | JSON_PRETTY_PRINT 301 | ); 302 | } 303 | 304 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 305 | } 306 | } 307 | 308 | -------------------------------------------------------------------------------- /src/Model/ResourceInformation.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * ResourceInformation Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class ResourceInformation implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'resourceInformation'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'resources' => '\DocuSign\eSign\Model\NameValue[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'resources' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'resources' => 'resources' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'resources' => 'setResources' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'resources' => 'getResources' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['resources'] = isset($data['resources']) ? $data['resources'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets resources 211 | * 212 | * @return \DocuSign\eSign\Model\NameValue[] 213 | */ 214 | public function getResources() 215 | { 216 | return $this->container['resources']; 217 | } 218 | 219 | /** 220 | * Sets resources 221 | * 222 | * @param \DocuSign\eSign\Model\NameValue[] $resources 223 | * 224 | * @return $this 225 | */ 226 | public function setResources($resources) 227 | { 228 | $this->container['resources'] = $resources; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/FileTypeList.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * FileTypeList Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class FileTypeList implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'fileTypeList'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'file_types' => '\DocuSign\eSign\Model\FileType[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'file_types' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'file_types' => 'fileTypes' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'file_types' => 'setFileTypes' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'file_types' => 'getFileTypes' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['file_types'] = isset($data['file_types']) ? $data['file_types'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets file_types 211 | * 212 | * @return \DocuSign\eSign\Model\FileType[] 213 | */ 214 | public function getFileTypes() 215 | { 216 | return $this->container['file_types']; 217 | } 218 | 219 | /** 220 | * Sets file_types 221 | * 222 | * @param \DocuSign\eSign\Model\FileType[] $file_types A collection of file types. 223 | * 224 | * @return $this 225 | */ 226 | public function setFileTypes($file_types) 227 | { 228 | $this->container['file_types'] = $file_types; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | -------------------------------------------------------------------------------- /src/Model/RecipientRouting.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * RecipientRouting Class Doc Comment 38 | * 39 | * @category Class 40 | * @description Describes the recipient routing rules. 41 | * @package DocuSign\eSign 42 | * @author Swagger Codegen team 43 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 44 | * @link https://github.com/swagger-api/swagger-codegen 45 | */ 46 | class RecipientRouting implements ModelInterface, ArrayAccess 47 | { 48 | const DISCRIMINATOR = null; 49 | 50 | /** 51 | * The original name of the model. 52 | * 53 | * @var string 54 | */ 55 | protected static $swaggerModelName = 'recipientRouting'; 56 | 57 | /** 58 | * Array of property to type mappings. Used for (de)serialization 59 | * 60 | * @var string[] 61 | */ 62 | protected static $swaggerTypes = [ 63 | 'rules' => '\DocuSign\eSign\Model\RecipientRules' 64 | ]; 65 | 66 | /** 67 | * Array of property to format mappings. Used for (de)serialization 68 | * 69 | * @var string[] 70 | */ 71 | protected static $swaggerFormats = [ 72 | 'rules' => null 73 | ]; 74 | 75 | /** 76 | * Array of property to type mappings. Used for (de)serialization 77 | * 78 | * @return array 79 | */ 80 | public static function swaggerTypes() 81 | { 82 | return self::$swaggerTypes; 83 | } 84 | 85 | /** 86 | * Array of property to format mappings. Used for (de)serialization 87 | * 88 | * @return array 89 | */ 90 | public static function swaggerFormats() 91 | { 92 | return self::$swaggerFormats; 93 | } 94 | 95 | /** 96 | * Array of attributes where the key is the local name, 97 | * and the value is the original name 98 | * 99 | * @var string[] 100 | */ 101 | protected static $attributeMap = [ 102 | 'rules' => 'rules' 103 | ]; 104 | 105 | /** 106 | * Array of attributes to setter functions (for deserialization of responses) 107 | * 108 | * @var string[] 109 | */ 110 | protected static $setters = [ 111 | 'rules' => 'setRules' 112 | ]; 113 | 114 | /** 115 | * Array of attributes to getter functions (for serialization of requests) 116 | * 117 | * @var string[] 118 | */ 119 | protected static $getters = [ 120 | 'rules' => 'getRules' 121 | ]; 122 | 123 | /** 124 | * Array of attributes where the key is the local name, 125 | * and the value is the original name 126 | * 127 | * @return array 128 | */ 129 | public static function attributeMap() 130 | { 131 | return self::$attributeMap; 132 | } 133 | 134 | /** 135 | * Array of attributes to setter functions (for deserialization of responses) 136 | * 137 | * @return array 138 | */ 139 | public static function setters() 140 | { 141 | return self::$setters; 142 | } 143 | 144 | /** 145 | * Array of attributes to getter functions (for serialization of requests) 146 | * 147 | * @return array 148 | */ 149 | public static function getters() 150 | { 151 | return self::$getters; 152 | } 153 | 154 | /** 155 | * The original name of the model. 156 | * 157 | * @return string 158 | */ 159 | public function getModelName() 160 | { 161 | return self::$swaggerModelName; 162 | } 163 | 164 | 165 | 166 | 167 | 168 | /** 169 | * Associative array for storing property values 170 | * 171 | * @var mixed[] 172 | */ 173 | protected $container = []; 174 | 175 | /** 176 | * Constructor 177 | * 178 | * @param mixed[] $data Associated array of property values 179 | * initializing the model 180 | */ 181 | public function __construct(?array $data = null) 182 | { 183 | $this->container['rules'] = isset($data['rules']) ? $data['rules'] : null; 184 | } 185 | 186 | /** 187 | * Show all the invalid properties with reasons. 188 | * 189 | * @return array invalid properties with reasons 190 | */ 191 | public function listInvalidProperties() 192 | { 193 | $invalidProperties = []; 194 | 195 | return $invalidProperties; 196 | } 197 | 198 | /** 199 | * Validate all the properties in the model 200 | * return true if all passed 201 | * 202 | * @return bool True if all properties are valid 203 | */ 204 | public function valid() 205 | { 206 | return count($this->listInvalidProperties()) === 0; 207 | } 208 | 209 | 210 | /** 211 | * Gets rules 212 | * 213 | * @return \DocuSign\eSign\Model\RecipientRules 214 | */ 215 | public function getRules() 216 | { 217 | return $this->container['rules']; 218 | } 219 | 220 | /** 221 | * Sets rules 222 | * 223 | * @param \DocuSign\eSign\Model\RecipientRules $rules The recipient routing rules. 224 | * 225 | * @return $this 226 | */ 227 | public function setRules($rules) 228 | { 229 | $this->container['rules'] = $rules; 230 | 231 | return $this; 232 | } 233 | /** 234 | * Returns true if offset exists. False otherwise. 235 | * 236 | * @param integer $offset Offset 237 | * 238 | * @return boolean 239 | */ 240 | #[\ReturnTypeWillChange] 241 | public function offsetExists($offset) 242 | { 243 | return isset($this->container[$offset]); 244 | } 245 | 246 | /** 247 | * Gets offset. 248 | * 249 | * @param integer $offset Offset 250 | * 251 | * @return mixed 252 | */ 253 | #[\ReturnTypeWillChange] 254 | public function offsetGet($offset) 255 | { 256 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 257 | } 258 | 259 | /** 260 | * Sets value based on offset. 261 | * 262 | * @param integer $offset Offset 263 | * @param mixed $value Value to be set 264 | * 265 | * @return void 266 | */ 267 | #[\ReturnTypeWillChange] 268 | public function offsetSet($offset, $value) 269 | { 270 | if (is_null($offset)) { 271 | $this->container[] = $value; 272 | } else { 273 | $this->container[$offset] = $value; 274 | } 275 | } 276 | 277 | /** 278 | * Unsets offset. 279 | * 280 | * @param integer $offset Offset 281 | * 282 | * @return void 283 | */ 284 | #[\ReturnTypeWillChange] 285 | public function offsetUnset($offset) 286 | { 287 | unset($this->container[$offset]); 288 | } 289 | 290 | /** 291 | * Gets the string presentation of the object 292 | * 293 | * @return string 294 | */ 295 | public function __toString() 296 | { 297 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 298 | return json_encode( 299 | ObjectSerializer::sanitizeForSerialization($this), 300 | JSON_PRETTY_PRINT 301 | ); 302 | } 303 | 304 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 305 | } 306 | } 307 | 308 | -------------------------------------------------------------------------------- /src/Model/NewUsersDefinition.php: -------------------------------------------------------------------------------- 1 | 10 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 11 | * @link https://github.com/swagger-api/swagger-codegen 12 | */ 13 | 14 | /** 15 | * Docusign eSignature REST API 16 | * 17 | * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. 18 | * 19 | * OpenAPI spec version: v2.1 20 | * Contact: devcenter@docusign.com 21 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 22 | * Swagger Codegen version: 2.4.21 23 | */ 24 | 25 | /** 26 | * NOTE: This class is auto generated by the swagger code generator program. 27 | * https://github.com/swagger-api/swagger-codegen 28 | * Do not edit the class manually. 29 | */ 30 | 31 | namespace DocuSign\eSign\Model; 32 | 33 | use \ArrayAccess; 34 | use DocuSign\eSign\ObjectSerializer; 35 | 36 | /** 37 | * NewUsersDefinition Class Doc Comment 38 | * 39 | * @category Class 40 | * @package DocuSign\eSign 41 | * @author Swagger Codegen team 42 | * @license The Docusign PHP Client SDK is licensed under the MIT License. 43 | * @link https://github.com/swagger-api/swagger-codegen 44 | */ 45 | class NewUsersDefinition implements ModelInterface, ArrayAccess 46 | { 47 | const DISCRIMINATOR = null; 48 | 49 | /** 50 | * The original name of the model. 51 | * 52 | * @var string 53 | */ 54 | protected static $swaggerModelName = 'newUsersDefinition'; 55 | 56 | /** 57 | * Array of property to type mappings. Used for (de)serialization 58 | * 59 | * @var string[] 60 | */ 61 | protected static $swaggerTypes = [ 62 | 'new_users' => '\DocuSign\eSign\Model\UserInformation[]' 63 | ]; 64 | 65 | /** 66 | * Array of property to format mappings. Used for (de)serialization 67 | * 68 | * @var string[] 69 | */ 70 | protected static $swaggerFormats = [ 71 | 'new_users' => null 72 | ]; 73 | 74 | /** 75 | * Array of property to type mappings. Used for (de)serialization 76 | * 77 | * @return array 78 | */ 79 | public static function swaggerTypes() 80 | { 81 | return self::$swaggerTypes; 82 | } 83 | 84 | /** 85 | * Array of property to format mappings. Used for (de)serialization 86 | * 87 | * @return array 88 | */ 89 | public static function swaggerFormats() 90 | { 91 | return self::$swaggerFormats; 92 | } 93 | 94 | /** 95 | * Array of attributes where the key is the local name, 96 | * and the value is the original name 97 | * 98 | * @var string[] 99 | */ 100 | protected static $attributeMap = [ 101 | 'new_users' => 'newUsers' 102 | ]; 103 | 104 | /** 105 | * Array of attributes to setter functions (for deserialization of responses) 106 | * 107 | * @var string[] 108 | */ 109 | protected static $setters = [ 110 | 'new_users' => 'setNewUsers' 111 | ]; 112 | 113 | /** 114 | * Array of attributes to getter functions (for serialization of requests) 115 | * 116 | * @var string[] 117 | */ 118 | protected static $getters = [ 119 | 'new_users' => 'getNewUsers' 120 | ]; 121 | 122 | /** 123 | * Array of attributes where the key is the local name, 124 | * and the value is the original name 125 | * 126 | * @return array 127 | */ 128 | public static function attributeMap() 129 | { 130 | return self::$attributeMap; 131 | } 132 | 133 | /** 134 | * Array of attributes to setter functions (for deserialization of responses) 135 | * 136 | * @return array 137 | */ 138 | public static function setters() 139 | { 140 | return self::$setters; 141 | } 142 | 143 | /** 144 | * Array of attributes to getter functions (for serialization of requests) 145 | * 146 | * @return array 147 | */ 148 | public static function getters() 149 | { 150 | return self::$getters; 151 | } 152 | 153 | /** 154 | * The original name of the model. 155 | * 156 | * @return string 157 | */ 158 | public function getModelName() 159 | { 160 | return self::$swaggerModelName; 161 | } 162 | 163 | 164 | 165 | 166 | 167 | /** 168 | * Associative array for storing property values 169 | * 170 | * @var mixed[] 171 | */ 172 | protected $container = []; 173 | 174 | /** 175 | * Constructor 176 | * 177 | * @param mixed[] $data Associated array of property values 178 | * initializing the model 179 | */ 180 | public function __construct(?array $data = null) 181 | { 182 | $this->container['new_users'] = isset($data['new_users']) ? $data['new_users'] : null; 183 | } 184 | 185 | /** 186 | * Show all the invalid properties with reasons. 187 | * 188 | * @return array invalid properties with reasons 189 | */ 190 | public function listInvalidProperties() 191 | { 192 | $invalidProperties = []; 193 | 194 | return $invalidProperties; 195 | } 196 | 197 | /** 198 | * Validate all the properties in the model 199 | * return true if all passed 200 | * 201 | * @return bool True if all properties are valid 202 | */ 203 | public function valid() 204 | { 205 | return count($this->listInvalidProperties()) === 0; 206 | } 207 | 208 | 209 | /** 210 | * Gets new_users 211 | * 212 | * @return \DocuSign\eSign\Model\UserInformation[] 213 | */ 214 | public function getNewUsers() 215 | { 216 | return $this->container['new_users']; 217 | } 218 | 219 | /** 220 | * Sets new_users 221 | * 222 | * @param \DocuSign\eSign\Model\UserInformation[] $new_users 223 | * 224 | * @return $this 225 | */ 226 | public function setNewUsers($new_users) 227 | { 228 | $this->container['new_users'] = $new_users; 229 | 230 | return $this; 231 | } 232 | /** 233 | * Returns true if offset exists. False otherwise. 234 | * 235 | * @param integer $offset Offset 236 | * 237 | * @return boolean 238 | */ 239 | #[\ReturnTypeWillChange] 240 | public function offsetExists($offset) 241 | { 242 | return isset($this->container[$offset]); 243 | } 244 | 245 | /** 246 | * Gets offset. 247 | * 248 | * @param integer $offset Offset 249 | * 250 | * @return mixed 251 | */ 252 | #[\ReturnTypeWillChange] 253 | public function offsetGet($offset) 254 | { 255 | return isset($this->container[$offset]) ? $this->container[$offset] : null; 256 | } 257 | 258 | /** 259 | * Sets value based on offset. 260 | * 261 | * @param integer $offset Offset 262 | * @param mixed $value Value to be set 263 | * 264 | * @return void 265 | */ 266 | #[\ReturnTypeWillChange] 267 | public function offsetSet($offset, $value) 268 | { 269 | if (is_null($offset)) { 270 | $this->container[] = $value; 271 | } else { 272 | $this->container[$offset] = $value; 273 | } 274 | } 275 | 276 | /** 277 | * Unsets offset. 278 | * 279 | * @param integer $offset Offset 280 | * 281 | * @return void 282 | */ 283 | #[\ReturnTypeWillChange] 284 | public function offsetUnset($offset) 285 | { 286 | unset($this->container[$offset]); 287 | } 288 | 289 | /** 290 | * Gets the string presentation of the object 291 | * 292 | * @return string 293 | */ 294 | public function __toString() 295 | { 296 | if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 297 | return json_encode( 298 | ObjectSerializer::sanitizeForSerialization($this), 299 | JSON_PRETTY_PRINT 300 | ); 301 | } 302 | 303 | return json_encode(ObjectSerializer::sanitizeForSerialization($this)); 304 | } 305 | } 306 | 307 | --------------------------------------------------------------------------------