diff --git a/CHANGELOG.md b/CHANGELOG.md index f692665..ecba5a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # DocuSign Admin Java Client Changelog See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. +## [v2.1.0] - Admin API v2.1-1.4.3 - 2026-03-05 +### Changed +- Added support for version v2.1-1.4.3 of the DocuSign Admin API. +- Updated the SDK release version. + ## [v2.0.0] - Admin API v2.1-1.4.1 - 2024-10-28 ### Changed - Added support for version v2.1-1.4.1 of the DocuSign Admin API. diff --git a/src/Api/AccountsApi.php b/src/Api/AccountsApi.php index b67aca6..16add56 100644 --- a/src/Api/AccountsApi.php +++ b/src/Api/AccountsApi.php @@ -202,7 +202,7 @@ class AccountsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } @@ -261,7 +261,7 @@ public function updateResourcePath(string $resourcePath, string $baseName, strin * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\MemberGroupsResponse */ - public function getGroups($organization_id, $account_id, \DocuSign\Admin\Api\AccountsApi\GetGroupsOptions $options = null) + public function getGroups($organization_id, $account_id, ?\DocuSign\Admin\Api\AccountsApi\GetGroupsOptions $options = null) { list($response) = $this->getGroupsWithHttpInfo($organization_id, $account_id, $options); return $response; @@ -279,7 +279,7 @@ public function getGroups($organization_id, $account_id, \DocuSign\Admin\Api\Acc * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\MemberGroupsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getGroupsWithHttpInfo($organization_id, $account_id, \DocuSign\Admin\Api\AccountsApi\GetGroupsOptions $options = null): array + public function getGroupsWithHttpInfo($organization_id, $account_id, ?\DocuSign\Admin\Api\AccountsApi\GetGroupsOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -367,7 +367,7 @@ public function getGroupsWithHttpInfo($organization_id, $account_id, \DocuSign\A * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\OrganizationsResponse */ - public function getOrganizations(\DocuSign\Admin\Api\AccountsApi\GetOrganizationsOptions $options = null) + public function getOrganizations(?\DocuSign\Admin\Api\AccountsApi\GetOrganizationsOptions $options = null) { list($response) = $this->getOrganizationsWithHttpInfo($options); return $response; @@ -383,7 +383,7 @@ public function getOrganizations(\DocuSign\Admin\Api\AccountsApi\GetOrganization * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\OrganizationsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrganizationsWithHttpInfo(\DocuSign\Admin\Api\AccountsApi\GetOrganizationsOptions $options = null): array + public function getOrganizationsWithHttpInfo(?\DocuSign\Admin\Api\AccountsApi\GetOrganizationsOptions $options = null): array { // parse inputs $resourcePath = "/v2/organizations"; diff --git a/src/Api/BulkExportsApi.php b/src/Api/BulkExportsApi.php index 2d0e4c2..7e7ffbc 100644 --- a/src/Api/BulkExportsApi.php +++ b/src/Api/BulkExportsApi.php @@ -66,7 +66,7 @@ class BulkExportsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } diff --git a/src/Api/BulkImportsApi.php b/src/Api/BulkImportsApi.php index a6480ec..d351317 100644 --- a/src/Api/BulkImportsApi.php +++ b/src/Api/BulkImportsApi.php @@ -66,7 +66,7 @@ class BulkImportsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } diff --git a/src/Api/DSGroupsApi.php b/src/Api/DSGroupsApi.php index c188e62..7d802df 100644 --- a/src/Api/DSGroupsApi.php +++ b/src/Api/DSGroupsApi.php @@ -202,7 +202,7 @@ class DSGroupsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } @@ -682,7 +682,7 @@ public function getDSGroupWithHttpInfo($organization_id, $account_id, $ds_group_ * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\DSGroupAndUsersResponse */ - public function getDSGroupUsers($organization_id, $account_id, $ds_group_id, \DocuSign\Admin\Api\DSGroupsApi\GetDSGroupUsersOptions $options = null) + public function getDSGroupUsers($organization_id, $account_id, $ds_group_id, ?\DocuSign\Admin\Api\DSGroupsApi\GetDSGroupUsersOptions $options = null) { list($response) = $this->getDSGroupUsersWithHttpInfo($organization_id, $account_id, $ds_group_id, $options); return $response; @@ -701,7 +701,7 @@ public function getDSGroupUsers($organization_id, $account_id, $ds_group_id, \Do * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\DSGroupAndUsersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getDSGroupUsersWithHttpInfo($organization_id, $account_id, $ds_group_id, \DocuSign\Admin\Api\DSGroupsApi\GetDSGroupUsersOptions $options = null): array + public function getDSGroupUsersWithHttpInfo($organization_id, $account_id, $ds_group_id, ?\DocuSign\Admin\Api\DSGroupsApi\GetDSGroupUsersOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -796,7 +796,7 @@ public function getDSGroupUsersWithHttpInfo($organization_id, $account_id, $ds_g * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\DSGroupListResponse */ - public function getDSGroups($organization_id, $account_id, \DocuSign\Admin\Api\DSGroupsApi\GetDSGroupsOptions $options = null) + public function getDSGroups($organization_id, $account_id, ?\DocuSign\Admin\Api\DSGroupsApi\GetDSGroupsOptions $options = null) { list($response) = $this->getDSGroupsWithHttpInfo($organization_id, $account_id, $options); return $response; @@ -814,7 +814,7 @@ public function getDSGroups($organization_id, $account_id, \DocuSign\Admin\Api\D * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\DSGroupListResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getDSGroupsWithHttpInfo($organization_id, $account_id, \DocuSign\Admin\Api\DSGroupsApi\GetDSGroupsOptions $options = null): array + public function getDSGroupsWithHttpInfo($organization_id, $account_id, ?\DocuSign\Admin\Api\DSGroupsApi\GetDSGroupsOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { diff --git a/src/Api/IdentityProvidersApi.php b/src/Api/IdentityProvidersApi.php index 2376702..53ca838 100644 --- a/src/Api/IdentityProvidersApi.php +++ b/src/Api/IdentityProvidersApi.php @@ -66,7 +66,7 @@ class IdentityProvidersApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } diff --git a/src/Api/OrgConnectApi.php b/src/Api/OrgConnectApi.php new file mode 100644 index 0000000..27d9f5a --- /dev/null +++ b/src/Api/OrgConnectApi.php @@ -0,0 +1,1365 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Api\OrgConnectApi; + + +/** + * GetOrganizationConnectConfigsOptions Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class GetOrganizationConnectConfigsOptions +{ + /** + * $sort_by Sorts configs by field in ascending order. Default sort by config name. Default value: name + * @var ?string + */ + protected ?string $sort_by = null; + + /** + * Gets sort_by + * + * @return ?string + */ + public function getSortBy(): ?string + { + return $this->sort_by; + } + + /** + * Sets sort_by + * @param ?string $sort_by Sorts configs by field in ascending order. Default sort by config name. Default value: name + * + * @return self + */ + public function setSortBy(?string $sort_by): self + { + $this->sort_by = $sort_by; + return $this; + } + /** + * $site_id Selects configs based on siteId + * @var ?int + */ + protected ?int $site_id = null; + + /** + * Gets site_id + * + * @return ?int + */ + public function getSiteId(): ?int + { + return $this->site_id; + } + + /** + * Sets site_id + * @param ?int $site_id Selects configs based on siteId + * + * @return self + */ + public function setSiteId(?int $site_id): self + { + $this->site_id = $site_id; + return $this; + } + /** + * $account_id Selects configs based on accountId + * @var ?string + */ + protected ?string $account_id = null; + + /** + * Gets account_id + * + * @return ?string + */ + public function getAccountId(): ?string + { + return $this->account_id; + } + + /** + * Sets account_id + * @param ?string $account_id Selects configs based on accountId + * + * @return self + */ + public function setAccountId(?string $account_id): self + { + $this->account_id = $account_id; + return $this; + } + /** + * $allow_envelope_publish Selects configs based on their status + * @var ?bool + */ + protected ?bool $allow_envelope_publish = null; + + /** + * Gets allow_envelope_publish + * + * @return ?bool + */ + public function getAllowEnvelopePublish(): ?bool + { + return $this->allow_envelope_publish; + } + + /** + * Sets allow_envelope_publish + * @param ?bool $allow_envelope_publish Selects configs based on their status + * + * @return self + */ + public function setAllowEnvelopePublish(?bool $allow_envelope_publish): self + { + $this->allow_envelope_publish = $allow_envelope_publish; + return $this; + } + /** + * $q Selects configs based on config id or name provided in the query parameter + * @var ?string + */ + protected ?string $q = null; + + /** + * Gets q + * + * @return ?string + */ + public function getQ(): ?string + { + return $this->q; + } + + /** + * Sets q + * @param ?string $q Selects configs based on config id or name provided in the query parameter + * + * @return self + */ + public function setQ(?string $q): self + { + $this->q = $q; + return $this; + } +} + + + +namespace DocuSign\Admin\Api; + +use DocuSign\Admin\Client\ApiClient; +use DocuSign\Admin\Client\ApiException; +use DocuSign\Admin\Configuration; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrgConnectApi Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrgConnectApi +{ + /** + * API Client + * + * @var ApiClient instance of the ApiClient + */ + protected ApiClient $apiClient; + + /** + * Constructor + * + * @param ApiClient|null $apiClient The api client to use + * + * @return void + */ + public function __construct(?ApiClient $apiClient = null) + { + $this->apiClient = $apiClient ?? new ApiClient(); + } + + /** + * Get API client + * + * @return ApiClient get the API client + */ + public function getApiClient(): ApiClient + { + return $this->apiClient; + } + + /** + * Set the API client + * + * @param ApiClient $apiClient set the API client + * + * @return self + */ + public function setApiClient(ApiClient $apiClient): self + { + $this->apiClient = $apiClient; + return $this; + } + + /** + * Update $resourcePath with $ + * + * @param string $resourcePath the resource path to use + * @param string $baseName the base name param + * @param string $paramName the parameter name + * + * @return string + */ + public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string + { + return str_replace( + "{" . $baseName . "}", + $this->apiClient->getSerializer()->toPathValue($paramName), + $resourcePath + ); + } + + + /** + * Operation createOrganizationConnectConfig + * + * Adds a Connect configuration for an organization + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectConfigurationRequest $connect_request Add an organization Connect request (required) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse + */ + public function createOrganizationConnectConfig($organization_id, $connect_request) + { + list($response) = $this->createOrganizationConnectConfigWithHttpInfo($organization_id, $connect_request); + return $response; + } + + /** + * Operation createOrganizationConnectConfigWithHttpInfo + * + * Adds a Connect configuration for an organization + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectConfigurationRequest $connect_request Add an organization Connect request (required) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrganizationConnectConfigWithHttpInfo($organization_id, $connect_request): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling createOrganizationConnectConfig'); + } + // verify the required parameter 'connect_request' is set + if ($connect_request === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_request when calling createOrganizationConnectConfig'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($connect_request)) { + $_tempBody = $connect_request; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', + '/v2/organizations/{organizationId}/connect' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation deleteConnectHmacSecret + * + * Deletes information about a Connect HMAC secret + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $key_id The key ID Guid + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse + */ + public function deleteConnectHmacSecret($organization_id, $key_id) + { + list($response) = $this->deleteConnectHmacSecretWithHttpInfo($organization_id, $key_id); + return $response; + } + + /** + * Operation deleteConnectHmacSecretWithHttpInfo + * + * Deletes information about a Connect HMAC secret + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $key_id The key ID Guid + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteConnectHmacSecretWithHttpInfo($organization_id, $key_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling deleteConnectHmacSecret'); + } + // verify the required parameter 'key_id' is set + if ($key_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $key_id when calling deleteConnectHmacSecret'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/secret/{keyId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + // path params + if ($key_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "keyId", $key_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', + '/v2/organizations/{organizationId}/connect/secret/{keyId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation deleteOrganizationConnectConfig + * + * Deletes information about an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * + * @throws ApiException on non-2xx response + * @return object + */ + public function deleteOrganizationConnectConfig($organization_id, $connect_id) + { + list($response) = $this->deleteOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id); + return $response; + } + + /** + * Operation deleteOrganizationConnectConfigWithHttpInfo + * + * Deletes information about an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * + * @throws ApiException on non-2xx response + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling deleteOrganizationConnectConfig'); + } + // verify the required parameter 'connect_id' is set + if ($connect_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_id when calling deleteOrganizationConnectConfig'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/{connectId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + // path params + if ($connect_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "connectId", $connect_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + 'object', + '/v2/organizations/{organizationId}/connect/{connectId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, 'object', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), 'object', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation deleteOrganizationConnectOAuthConfiguration + * + * Deletes an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return object + */ + public function deleteOrganizationConnectOAuthConfiguration($organization_id) + { + list($response) = $this->deleteOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id); + return $response; + } + + /** + * Operation deleteOrganizationConnectOAuthConfigurationWithHttpInfo + * + * Deletes an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling deleteOrganizationConnectOAuthConfiguration'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/oauth"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'DELETE', + $queryParams, + $httpBody, + $headerParams, + 'object', + '/v2/organizations/{organizationId}/connect/oauth' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, 'object', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), 'object', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getConnectHmacSecrets + * + * Returns information about Connect HMAC secrets + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse + */ + public function getConnectHmacSecrets($organization_id) + { + list($response) = $this->getConnectHmacSecretsWithHttpInfo($organization_id); + return $response; + } + + /** + * Operation getConnectHmacSecretsWithHttpInfo + * + * Returns information about Connect HMAC secrets + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getConnectHmacSecretsWithHttpInfo($organization_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getConnectHmacSecrets'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/secret"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', + '/v2/organizations/{organizationId}/connect/secret' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getOrganizationConnectConfig + * + * Returns an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse + */ + public function getOrganizationConnectConfig($organization_id, $connect_id) + { + list($response) = $this->getOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id); + return $response; + } + + /** + * Operation getOrganizationConnectConfigWithHttpInfo + * + * Returns an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getOrganizationConnectConfig'); + } + // verify the required parameter 'connect_id' is set + if ($connect_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_id when calling getOrganizationConnectConfig'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/{connectId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + // path params + if ($connect_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "connectId", $connect_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', + '/v2/organizations/{organizationId}/connect/{connectId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getOrganizationConnectConfigs + * + * Returns a list of Connect configurations under an organization + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Api\OrgConnectApi\GetOrganizationConnectConfigsOptions $options for modifying the behavior of the function. (optional) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectConfigsResponse + */ + public function getOrganizationConnectConfigs($organization_id, ?\DocuSign\Admin\Api\OrgConnectApi\GetOrganizationConnectConfigsOptions $options = null) + { + list($response) = $this->getOrganizationConnectConfigsWithHttpInfo($organization_id, $options); + return $response; + } + + /** + * Operation getOrganizationConnectConfigsWithHttpInfo + * + * Returns a list of Connect configurations under an organization + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Api\OrgConnectApi\GetOrganizationConnectConfigsOptions $options for modifying the behavior of the function. (optional) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectConfigsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrganizationConnectConfigsWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\OrgConnectApi\GetOrganizationConnectConfigsOptions $options = null): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getOrganizationConnectConfigs'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + if ($options != null) + { + // query params + if ($options->getSortBy() != 'null') { + $queryParams['sortBy'] = $this->apiClient->getSerializer()->toQueryValue($options->getSortBy()); + } + if ($options->getSiteId() != 'null') { + $queryParams['siteId'] = $this->apiClient->getSerializer()->toQueryValue($options->getSiteId()); + } + if ($options->getAccountId() != 'null') { + $queryParams['accountId'] = $this->apiClient->getSerializer()->toQueryValue($options->getAccountId()); + } + if ($options->getAllowEnvelopePublish() != 'null') { + $queryParams['allowEnvelopePublish'] = $this->apiClient->getSerializer()->toQueryValue($options->getAllowEnvelopePublish()); + } + if ($options->getQ() != 'null') { + $queryParams['q'] = $this->apiClient->getSerializer()->toQueryValue($options->getQ()); + } + } + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectConfigsResponse', + '/v2/organizations/{organizationId}/connect' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectConfigsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectConfigsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation getOrganizationConnectOAuthConfiguration + * + * Returns information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return object + */ + public function getOrganizationConnectOAuthConfiguration($organization_id) + { + list($response) = $this->getOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id); + return $response; + } + + /** + * Operation getOrganizationConnectOAuthConfigurationWithHttpInfo + * + * Returns information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling getOrganizationConnectOAuthConfiguration'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/oauth"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + 'object', + '/v2/organizations/{organizationId}/connect/oauth' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, 'object', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), 'object', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation postConnectHmacSecret + * + * Saves information about a Connect HMAC secret + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse + */ + public function postConnectHmacSecret($organization_id) + { + list($response) = $this->postConnectHmacSecretWithHttpInfo($organization_id); + return $response; + } + + /** + * Operation postConnectHmacSecretWithHttpInfo + * + * Saves information about a Connect HMAC secret + * + * @param ?string $organization_id The organization ID Guid + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function postConnectHmacSecretWithHttpInfo($organization_id): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling postConnectHmacSecret'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/secret"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', + '/v2/organizations/{organizationId}/connect/secret' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectHmacSecretsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation postOrganizationConnectOAuthConfiguration + * + * Saves information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration $configuration Add an organization-level Connect OAuth configuration (required) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration + */ + public function postOrganizationConnectOAuthConfiguration($organization_id, $configuration) + { + list($response) = $this->postOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id, $configuration); + return $response; + } + + /** + * Operation postOrganizationConnectOAuthConfigurationWithHttpInfo + * + * Saves information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration $configuration Add an organization-level Connect OAuth configuration (required) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration, HTTP status code, HTTP response headers (array of strings) + */ + public function postOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id, $configuration): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling postOrganizationConnectOAuthConfiguration'); + } + // verify the required parameter 'configuration' is set + if ($configuration === null) { + throw new \InvalidArgumentException('Missing the required parameter $configuration when calling postOrganizationConnectOAuthConfiguration'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/oauth"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($configuration)) { + $_tempBody = $configuration; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', + '/v2/organizations/{organizationId}/connect/oauth' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation putOrganizationConnectOAuthConfiguration + * + * Updates information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration $configuration Update an organization-level Connect OAuth configuration (required) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration + */ + public function putOrganizationConnectOAuthConfiguration($organization_id, $configuration) + { + list($response) = $this->putOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id, $configuration); + return $response; + } + + /** + * Operation putOrganizationConnectOAuthConfigurationWithHttpInfo + * + * Updates information about an organization-level Connect OAuth configuration + * + * @param ?string $organization_id The organization ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration $configuration Update an organization-level Connect OAuth configuration (required) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration, HTTP status code, HTTP response headers (array of strings) + */ + public function putOrganizationConnectOAuthConfigurationWithHttpInfo($organization_id, $configuration): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling putOrganizationConnectOAuthConfiguration'); + } + // verify the required parameter 'configuration' is set + if ($configuration === null) { + throw new \InvalidArgumentException('Missing the required parameter $configuration when calling putOrganizationConnectOAuthConfiguration'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/oauth"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($configuration)) { + $_tempBody = $configuration; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'PUT', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', + '/v2/organizations/{organizationId}/connect/oauth' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectOAuthConfiguration', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } + + /** + * Operation updateOrganizationConnectConfig + * + * Updates an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectConfigurationRequest $connect_request Add an organization Connect request (required) + * + * @throws ApiException on non-2xx response + * @return \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse + */ + public function updateOrganizationConnectConfig($organization_id, $connect_id, $connect_request) + { + list($response) = $this->updateOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id, $connect_request); + return $response; + } + + /** + * Operation updateOrganizationConnectConfigWithHttpInfo + * + * Updates an organization-level Connect configuration + * + * @param ?string $organization_id The organization ID Guid + * @param ?string $connect_id The configuration ID Guid + * @param \DocuSign\Admin\Model\OrganizationConnectConfigurationRequest $connect_request Add an organization Connect request (required) + * + * @throws ApiException on non-2xx response + * @return array of \DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function updateOrganizationConnectConfigWithHttpInfo($organization_id, $connect_id, $connect_request): array + { + // verify the required parameter 'organization_id' is set + if ($organization_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $organization_id when calling updateOrganizationConnectConfig'); + } + // verify the required parameter 'connect_id' is set + if ($connect_id === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_id when calling updateOrganizationConnectConfig'); + } + // verify the required parameter 'connect_request' is set + if ($connect_request === null) { + throw new \InvalidArgumentException('Missing the required parameter $connect_request when calling updateOrganizationConnectConfig'); + } + // parse inputs + $resourcePath = "/v2/organizations/{organizationId}/connect/{connectId}"; + $httpBody = $_tempBody ?? ''; // $_tempBody is the method argument, if present + $queryParams = $headerParams = $formParams = []; + $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); + $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + + + // path params + if ($organization_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "organizationId", $organization_id); + } + // path params + if ($connect_id !== null) { + $resourcePath = self::updateResourcePath($resourcePath, "connectId", $connect_id); + } + + // default format to json + $resourcePath = str_replace("{format}", "json", $resourcePath); + // body params + $_tempBody = null; + if (isset($connect_request)) { + $_tempBody = $connect_request; + } + + // for model (json/xml) + if (isset($_tempBody)) { + $httpBody = $_tempBody; // $_tempBody is the method argument, if present + } elseif (count($formParams) > 0) { + $httpBody = $formParams; // for HTTP post (form) + } + // this endpoint requires OAuth (access token) + if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) { + $headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken(); + } + // make the API Call + try { + list($response, $statusCode, $httpHeader) = $this->apiClient->callApi( + $resourcePath, + 'PUT', + $queryParams, + $httpBody, + $headerParams, + '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', + '/v2/organizations/{organizationId}/connect/{connectId}' + ); + + return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $httpHeader), $statusCode, $httpHeader]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\Admin\Model\OrganizationConnectConfigurationDetailsResponse', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + + throw $e; + } + } +} diff --git a/src/Api/OrganizationsApi.php b/src/Api/OrganizationsApi.php index 5f22feb..1ffa5d5 100644 --- a/src/Api/OrganizationsApi.php +++ b/src/Api/OrganizationsApi.php @@ -66,7 +66,7 @@ class OrganizationsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } diff --git a/src/Api/ProductPermissionProfilesApi.php b/src/Api/ProductPermissionProfilesApi.php index c0237f6..dbbb52c 100644 --- a/src/Api/ProductPermissionProfilesApi.php +++ b/src/Api/ProductPermissionProfilesApi.php @@ -107,7 +107,7 @@ class ProductPermissionProfilesApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } @@ -580,7 +580,7 @@ public function getUserProductPermissionProfilesWithHttpInfo($organization_id, $ * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\UserProductPermissionProfilesResponse */ - public function getUserProductPermissionProfilesByEmail($organization_id, $account_id, \DocuSign\Admin\Api\ProductPermissionProfilesApi\GetUserProductPermissionProfilesByEmailOptions $options = null) + public function getUserProductPermissionProfilesByEmail($organization_id, $account_id, ?\DocuSign\Admin\Api\ProductPermissionProfilesApi\GetUserProductPermissionProfilesByEmailOptions $options = null) { list($response) = $this->getUserProductPermissionProfilesByEmailWithHttpInfo($organization_id, $account_id, $options); return $response; @@ -598,7 +598,7 @@ public function getUserProductPermissionProfilesByEmail($organization_id, $accou * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\UserProductPermissionProfilesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getUserProductPermissionProfilesByEmailWithHttpInfo($organization_id, $account_id, \DocuSign\Admin\Api\ProductPermissionProfilesApi\GetUserProductPermissionProfilesByEmailOptions $options = null): array + public function getUserProductPermissionProfilesByEmailWithHttpInfo($organization_id, $account_id, ?\DocuSign\Admin\Api\ProductPermissionProfilesApi\GetUserProductPermissionProfilesByEmailOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { diff --git a/src/Api/ProvisionAssetGroupApi.php b/src/Api/ProvisionAssetGroupApi.php index 2a2aa91..99ccb45 100644 --- a/src/Api/ProvisionAssetGroupApi.php +++ b/src/Api/ProvisionAssetGroupApi.php @@ -325,7 +325,7 @@ class ProvisionAssetGroupApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } @@ -573,7 +573,7 @@ public function createAssetGroupAccountWithHttpInfo($organization_id, $request): * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\AssetGroupAccountClone */ - public function getAssetGroupAccountClone($organization_id, $asset_group_id, $asset_group_work_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountCloneOptions $options = null) + public function getAssetGroupAccountClone($organization_id, $asset_group_id, $asset_group_work_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountCloneOptions $options = null) { list($response) = $this->getAssetGroupAccountCloneWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, $options); return $response; @@ -592,7 +592,7 @@ public function getAssetGroupAccountClone($organization_id, $asset_group_id, $as * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\AssetGroupAccountClone, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetGroupAccountCloneWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountCloneOptions $options = null): array + public function getAssetGroupAccountCloneWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountCloneOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -683,7 +683,7 @@ public function getAssetGroupAccountCloneWithHttpInfo($organization_id, $asset_g * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\AssetGroupAccountClones */ - public function getAssetGroupAccountClonesByOrgId($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountClonesByOrgIdOptions $options = null) + public function getAssetGroupAccountClonesByOrgId($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountClonesByOrgIdOptions $options = null) { list($response) = $this->getAssetGroupAccountClonesByOrgIdWithHttpInfo($organization_id, $options); return $response; @@ -700,7 +700,7 @@ public function getAssetGroupAccountClonesByOrgId($organization_id, \DocuSign\Ad * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\AssetGroupAccountClones, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetGroupAccountClonesByOrgIdWithHttpInfo($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountClonesByOrgIdOptions $options = null): array + public function getAssetGroupAccountClonesByOrgIdWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountClonesByOrgIdOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -778,7 +778,7 @@ public function getAssetGroupAccountClonesByOrgIdWithHttpInfo($organization_id, * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\AssetGroupAccountsResponse */ - public function getAssetGroupAccounts($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountsOptions $options = null) + public function getAssetGroupAccounts($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountsOptions $options = null) { list($response) = $this->getAssetGroupAccountsWithHttpInfo($organization_id, $options); return $response; @@ -795,7 +795,7 @@ public function getAssetGroupAccounts($organization_id, \DocuSign\Admin\Api\Prov * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\AssetGroupAccountsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetGroupAccountsWithHttpInfo($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountsOptions $options = null): array + public function getAssetGroupAccountsWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetAssetGroupAccountsOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -955,7 +955,7 @@ public function getOrganizationPlanItemsWithHttpInfo($organization_id): array * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\SubAccountCreateWorker */ - public function getSubAccountCreateProcessByAssetGroupWorkId($organization_id, $asset_group_id, $asset_group_work_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessByAssetGroupWorkIdOptions $options = null) + public function getSubAccountCreateProcessByAssetGroupWorkId($organization_id, $asset_group_id, $asset_group_work_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessByAssetGroupWorkIdOptions $options = null) { list($response) = $this->getSubAccountCreateProcessByAssetGroupWorkIdWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, $options); return $response; @@ -974,7 +974,7 @@ public function getSubAccountCreateProcessByAssetGroupWorkId($organization_id, $ * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\SubAccountCreateWorker, HTTP status code, HTTP response headers (array of strings) */ - public function getSubAccountCreateProcessByAssetGroupWorkIdWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessByAssetGroupWorkIdOptions $options = null): array + public function getSubAccountCreateProcessByAssetGroupWorkIdWithHttpInfo($organization_id, $asset_group_id, $asset_group_work_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessByAssetGroupWorkIdOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1065,7 +1065,7 @@ public function getSubAccountCreateProcessByAssetGroupWorkIdWithHttpInfo($organi * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\SubAccountCreateWorkerResponse */ - public function getSubAccountCreateProcessesByOrgId($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessesByOrgIdOptions $options = null) + public function getSubAccountCreateProcessesByOrgId($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessesByOrgIdOptions $options = null) { list($response) = $this->getSubAccountCreateProcessesByOrgIdWithHttpInfo($organization_id, $options); return $response; @@ -1082,7 +1082,7 @@ public function getSubAccountCreateProcessesByOrgId($organization_id, \DocuSign\ * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\SubAccountCreateWorkerResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getSubAccountCreateProcessesByOrgIdWithHttpInfo($organization_id, \DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessesByOrgIdOptions $options = null): array + public function getSubAccountCreateProcessesByOrgIdWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\ProvisionAssetGroupApi\GetSubAccountCreateProcessesByOrgIdOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { diff --git a/src/Api/ReservedDomainsApi.php b/src/Api/ReservedDomainsApi.php index 7208520..7977582 100644 --- a/src/Api/ReservedDomainsApi.php +++ b/src/Api/ReservedDomainsApi.php @@ -66,7 +66,7 @@ class ReservedDomainsApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } diff --git a/src/Api/UsersApi.php b/src/Api/UsersApi.php index 7cacb3b..90c381d 100644 --- a/src/Api/UsersApi.php +++ b/src/Api/UsersApi.php @@ -71,6 +71,33 @@ public function setSort(?bool $sort): self $this->sort = $sort; return $this; } + /** + * $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * @var ?bool + */ + protected ?bool $include_license = null; + + /** + * Gets include_license + * + * @return ?bool + */ + public function getIncludeLicense(): ?bool + { + return $this->include_license; + } + + /** + * Sets include_license + * @param ?bool $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * + * @return self + */ + public function setIncludeLicense(?bool $include_license): self + { + $this->include_license = $include_license; + return $this; + } } @@ -139,6 +166,33 @@ public function setSort(?bool $sort): self $this->sort = $sort; return $this; } + /** + * $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * @var ?bool + */ + protected ?bool $include_license = null; + + /** + * Gets include_license + * + * @return ?bool + */ + public function getIncludeLicense(): ?bool + { + return $this->include_license; + } + + /** + * Sets include_license + * @param ?bool $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * + * @return self + */ + public function setIncludeLicense(?bool $include_license): self + { + $this->include_license = $include_license; + return $this; + } } @@ -180,6 +234,33 @@ public function setEmail(?string $email): self $this->email = $email; return $this; } + /** + * $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * @var ?bool + */ + protected ?bool $include_license = null; + + /** + * Gets include_license + * + * @return ?bool + */ + public function getIncludeLicense(): ?bool + { + return $this->include_license; + } + + /** + * Sets include_license + * @param ?bool $include_license When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses. + * + * @return self + */ + public function setIncludeLicense(?bool $include_license): self + { + $this->include_license = $include_license; + return $this; + } } @@ -491,6 +572,74 @@ public function setIncludeDsGroups(?bool $include_ds_groups): self $this->include_ds_groups = $include_ds_groups; return $this; } + /** + * $include_license When true: additional details about the user's license will be included in the response; account_id must be specified and the account must have an IAM plan with licenses. + * @var ?bool + */ + protected ?bool $include_license = null; + + /** + * Gets include_license + * + * @return ?bool + */ + public function getIncludeLicense(): ?bool + { + return $this->include_license; + } + + /** + * Sets include_license + * @param ?bool $include_license When true: additional details about the user's license will be included in the response; account_id must be specified and the account must have an IAM plan with licenses. + * + * @return self + */ + public function setIncludeLicense(?bool $include_license): self + { + $this->include_license = $include_license; + return $this; + } +} + + +/** + * UpdateUserOptions Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpdateUserOptions +{ + /** + * $apply_license_override If an account has an IAM plan with licenses, this query specifies how a user's license is handled. Values: true - Updates the user's existing license; false - Adds a license to the user + * @var ?bool + */ + protected ?bool $apply_license_override = null; + + /** + * Gets apply_license_override + * + * @return ?bool + */ + public function getApplyLicenseOverride(): ?bool + { + return $this->apply_license_override; + } + + /** + * Sets apply_license_override + * @param ?bool $apply_license_override If an account has an IAM plan with licenses, this query specifies how a user's license is handled. Values: true - Updates the user's existing license; false - Adds a license to the user + * + * @return self + */ + public function setApplyLicenseOverride(?bool $apply_license_override): self + { + $this->apply_license_override = $apply_license_override; + return $this; + } } @@ -527,7 +676,7 @@ class UsersApi * * @return void */ - public function __construct(ApiClient $apiClient = null) + public function __construct(?ApiClient $apiClient = null) { $this->apiClient = $apiClient ?? new ApiClient(); } @@ -1210,7 +1359,7 @@ public function deleteIdentitiesWithHttpInfo($organization_id, $user_id, $reques * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\UsersDrilldownResponse */ - public function getUserDSProfile($organization_id, $user_id, \DocuSign\Admin\Api\UsersApi\GetUserDSProfileOptions $options = null) + public function getUserDSProfile($organization_id, $user_id, ?\DocuSign\Admin\Api\UsersApi\GetUserDSProfileOptions $options = null) { list($response) = $this->getUserDSProfileWithHttpInfo($organization_id, $user_id, $options); return $response; @@ -1228,7 +1377,7 @@ public function getUserDSProfile($organization_id, $user_id, \DocuSign\Admin\Api * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\UsersDrilldownResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getUserDSProfileWithHttpInfo($organization_id, $user_id, \DocuSign\Admin\Api\UsersApi\GetUserDSProfileOptions $options = null): array + public function getUserDSProfileWithHttpInfo($organization_id, $user_id, ?\DocuSign\Admin\Api\UsersApi\GetUserDSProfileOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1251,6 +1400,9 @@ public function getUserDSProfileWithHttpInfo($organization_id, $user_id, \DocuSi if ($options->getSort() != 'null') { $queryParams['sort'] = $this->apiClient->getSerializer()->toQueryValue($options->getSort()); } + if ($options->getIncludeLicense() != 'null') { + $queryParams['include_license'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeLicense()); + } } // path params @@ -1311,7 +1463,7 @@ public function getUserDSProfileWithHttpInfo($organization_id, $user_id, \DocuSi * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\UsersDrilldownResponse */ - public function getUserDSProfilesByEmail($organization_id, \DocuSign\Admin\Api\UsersApi\GetUserDSProfilesByEmailOptions $options = null) + public function getUserDSProfilesByEmail($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUserDSProfilesByEmailOptions $options = null) { list($response) = $this->getUserDSProfilesByEmailWithHttpInfo($organization_id, $options); return $response; @@ -1328,7 +1480,7 @@ public function getUserDSProfilesByEmail($organization_id, \DocuSign\Admin\Api\U * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\UsersDrilldownResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getUserDSProfilesByEmailWithHttpInfo($organization_id, \DocuSign\Admin\Api\UsersApi\GetUserDSProfilesByEmailOptions $options = null): array + public function getUserDSProfilesByEmailWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUserDSProfilesByEmailOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1350,6 +1502,9 @@ public function getUserDSProfilesByEmailWithHttpInfo($organization_id, \DocuSign if ($options->getSort() != 'null') { $queryParams['sort'] = $this->apiClient->getSerializer()->toQueryValue($options->getSort()); } + if ($options->getIncludeLicense() != 'null') { + $queryParams['include_license'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeLicense()); + } } // path params @@ -1406,7 +1561,7 @@ public function getUserDSProfilesByEmailWithHttpInfo($organization_id, \DocuSign * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\UsersDrilldownResponse */ - public function getUserProfiles($organization_id, \DocuSign\Admin\Api\UsersApi\GetUserProfilesOptions $options = null) + public function getUserProfiles($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUserProfilesOptions $options = null) { list($response) = $this->getUserProfilesWithHttpInfo($organization_id, $options); return $response; @@ -1423,7 +1578,7 @@ public function getUserProfiles($organization_id, \DocuSign\Admin\Api\UsersApi\G * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\UsersDrilldownResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getUserProfilesWithHttpInfo($organization_id, \DocuSign\Admin\Api\UsersApi\GetUserProfilesOptions $options = null): array + public function getUserProfilesWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUserProfilesOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1442,6 +1597,9 @@ public function getUserProfilesWithHttpInfo($organization_id, \DocuSign\Admin\Ap if ($options->getEmail() != 'null') { $queryParams['email'] = $this->apiClient->getSerializer()->toQueryValue($options->getEmail()); } + if ($options->getIncludeLicense() != 'null') { + $queryParams['include_license'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeLicense()); + } } // path params @@ -1498,7 +1656,7 @@ public function getUserProfilesWithHttpInfo($organization_id, \DocuSign\Admin\Ap * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\OrganizationUsersResponse */ - public function getUsers($organization_id, \DocuSign\Admin\Api\UsersApi\GetUsersOptions $options = null) + public function getUsers($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUsersOptions $options = null) { list($response) = $this->getUsersWithHttpInfo($organization_id, $options); return $response; @@ -1515,7 +1673,7 @@ public function getUsers($organization_id, \DocuSign\Admin\Api\UsersApi\GetUsers * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\OrganizationUsersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getUsersWithHttpInfo($organization_id, \DocuSign\Admin\Api\UsersApi\GetUsersOptions $options = null): array + public function getUsersWithHttpInfo($organization_id, ?\DocuSign\Admin\Api\UsersApi\GetUsersOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1564,6 +1722,9 @@ public function getUsersWithHttpInfo($organization_id, \DocuSign\Admin\Api\Users if ($options->getIncludeDsGroups() != 'null') { $queryParams['include_ds_groups'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeDsGroups()); } + if ($options->getIncludeLicense() != 'null') { + $queryParams['include_license'] = $this->apiClient->getSerializer()->toQueryValue($options->getIncludeLicense()); + } } // path params @@ -1710,13 +1871,14 @@ public function updateEmailAddressWithHttpInfo($organization_id, $request): arra * * @param ?string $organization_id The organization ID Guid * @param \DocuSign\Admin\Model\UpdateUsersRequest $request The user details to update (required) + * @param \DocuSign\Admin\Api\UsersApi\UpdateUserOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response * @return \DocuSign\Admin\Model\UsersUpdateResponse */ - public function updateUser($organization_id, $request) + public function updateUser($organization_id, $request, ?\DocuSign\Admin\Api\UsersApi\UpdateUserOptions $options = null) { - list($response) = $this->updateUserWithHttpInfo($organization_id, $request); + list($response) = $this->updateUserWithHttpInfo($organization_id, $request, $options); return $response; } @@ -1727,11 +1889,12 @@ public function updateUser($organization_id, $request) * * @param ?string $organization_id The organization ID Guid * @param \DocuSign\Admin\Model\UpdateUsersRequest $request The user details to update (required) + * @param \DocuSign\Admin\Api\UsersApi\UpdateUserOptions $options for modifying the behavior of the function. (optional) * * @throws ApiException on non-2xx response * @return array of \DocuSign\Admin\Model\UsersUpdateResponse, HTTP status code, HTTP response headers (array of strings) */ - public function updateUserWithHttpInfo($organization_id, $request): array + public function updateUserWithHttpInfo($organization_id, $request, ?\DocuSign\Admin\Api\UsersApi\UpdateUserOptions $options = null): array { // verify the required parameter 'organization_id' is set if ($organization_id === null) { @@ -1748,6 +1911,13 @@ public function updateUserWithHttpInfo($organization_id, $request): array $headerParams['Accept'] ??= $this->apiClient->selectHeaderAccept(['application/json']); $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']); + if ($options != null) + { + // query params + if ($options->getApplyLicenseOverride() != 'null') { + $queryParams['apply_license_override'] = $this->apiClient->getSerializer()->toQueryValue($options->getApplyLicenseOverride()); + } + } // path params if ($organization_id !== null) { diff --git a/src/Configuration.php b/src/Configuration.php index 3176aa0..b7f294f 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -111,7 +111,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Swagger-Codegen/v2.1/2.0.0/php/' . PHP_VERSION; + protected $userAgent = 'Swagger-Codegen/v2.1/2.1.0/php/' . PHP_VERSION; /** * Debug switch (default set to false) @@ -182,7 +182,7 @@ class Configuration /** * Constructor */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->tempFolderPath = sys_get_temp_dir(); if(isset($data["apiKeys"])) @@ -774,7 +774,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: v2.1' . PHP_EOL; - $report .= ' SDK Package Version: 2.0.0' . PHP_EOL; + $report .= ' SDK Package Version: 2.1.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/Model/AddDSGroupAndUsersResponse.php b/src/Model/AddDSGroupAndUsersResponse.php index 850b568..67d4f5c 100644 --- a/src/Model/AddDSGroupAndUsersResponse.php +++ b/src/Model/AddDSGroupAndUsersResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['group'] = isset($data['group']) ? $data['group'] : null; $this->container['group_users'] = isset($data['group_users']) ? $data['group_users'] : null; diff --git a/src/Model/AddDSGroupUsersResponse.php b/src/Model/AddDSGroupUsersResponse.php index 1707328..29e6716 100644 --- a/src/Model/AddDSGroupUsersResponse.php +++ b/src/Model/AddDSGroupUsersResponse.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['is_success'] = isset($data['is_success']) ? $data['is_success'] : null; $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; diff --git a/src/Model/AddUserResponse.php b/src/Model/AddUserResponse.php index b94acdc..6df884a 100644 --- a/src/Model/AddUserResponse.php +++ b/src/Model/AddUserResponse.php @@ -217,7 +217,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/AddUserResponseAccountProperties.php b/src/Model/AddUserResponseAccountProperties.php index 3c62b50..9272772 100644 --- a/src/Model/AddUserResponseAccountProperties.php +++ b/src/Model/AddUserResponseAccountProperties.php @@ -64,7 +64,11 @@ class AddUserResponseAccountProperties implements ModelInterface, ArrayAccess 'product_permission_profiles' => '\DocuSign\Admin\Model\ProductPermissionProfileResponse[]', 'ds_groups' => '\DocuSign\Admin\Model\DSGroupResponse[]', 'company_name' => '?string', - 'job_title' => '?string' + 'job_title' => '?string', + 'license_type' => '?string', + 'subscription_id' => '?string', + 'plan_name' => '?string', + 'license_status' => '?string' ]; /** @@ -78,7 +82,11 @@ class AddUserResponseAccountProperties implements ModelInterface, ArrayAccess 'product_permission_profiles' => null, 'ds_groups' => null, 'company_name' => null, - 'job_title' => null + 'job_title' => null, + 'license_type' => null, + 'subscription_id' => null, + 'plan_name' => null, + 'license_status' => null ]; /** @@ -113,7 +121,11 @@ public static function swaggerFormats() 'product_permission_profiles' => 'product_permission_profiles', 'ds_groups' => 'ds_groups', 'company_name' => 'company_name', - 'job_title' => 'job_title' + 'job_title' => 'job_title', + 'license_type' => 'license_type', + 'subscription_id' => 'subscription_id', + 'plan_name' => 'plan_name', + 'license_status' => 'license_status' ]; /** @@ -127,7 +139,11 @@ public static function swaggerFormats() 'product_permission_profiles' => 'setProductPermissionProfiles', 'ds_groups' => 'setDsGroups', 'company_name' => 'setCompanyName', - 'job_title' => 'setJobTitle' + 'job_title' => 'setJobTitle', + 'license_type' => 'setLicenseType', + 'subscription_id' => 'setSubscriptionId', + 'plan_name' => 'setPlanName', + 'license_status' => 'setLicenseStatus' ]; /** @@ -141,7 +157,11 @@ public static function swaggerFormats() 'product_permission_profiles' => 'getProductPermissionProfiles', 'ds_groups' => 'getDsGroups', 'company_name' => 'getCompanyName', - 'job_title' => 'getJobTitle' + 'job_title' => 'getJobTitle', + 'license_type' => 'getLicenseType', + 'subscription_id' => 'getSubscriptionId', + 'plan_name' => 'getPlanName', + 'license_status' => 'getLicenseStatus' ]; /** @@ -202,7 +222,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; @@ -210,6 +230,10 @@ public function __construct(array $data = null) $this->container['ds_groups'] = isset($data['ds_groups']) ? $data['ds_groups'] : null; $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; $this->container['job_title'] = isset($data['job_title']) ? $data['job_title'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; + $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; + $this->container['plan_name'] = isset($data['plan_name']) ? $data['plan_name'] : null; + $this->container['license_status'] = isset($data['license_status']) ? $data['license_status'] : null; } /** @@ -379,6 +403,102 @@ public function setJobTitle($job_title) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } + + /** + * Gets subscription_id + * + * @return ?string + */ + public function getSubscriptionId() + { + return $this->container['subscription_id']; + } + + /** + * Sets subscription_id + * + * @param ?string $subscription_id subscription_id + * + * @return $this + */ + public function setSubscriptionId($subscription_id) + { + $this->container['subscription_id'] = $subscription_id; + + return $this; + } + + /** + * Gets plan_name + * + * @return ?string + */ + public function getPlanName() + { + return $this->container['plan_name']; + } + + /** + * Sets plan_name + * + * @param ?string $plan_name plan_name + * + * @return $this + */ + public function setPlanName($plan_name) + { + $this->container['plan_name'] = $plan_name; + + return $this; + } + + /** + * Gets license_status + * + * @return ?string + */ + public function getLicenseStatus() + { + return $this->container['license_status']; + } + + /** + * Sets license_status + * + * @param ?string $license_status license_status + * + * @return $this + */ + public function setLicenseStatus($license_status) + { + $this->container['license_status'] = $license_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/AddressInformation.php b/src/Model/AddressInformation.php index f750590..6d5703b 100644 --- a/src/Model/AddressInformation.php +++ b/src/Model/AddressInformation.php @@ -212,7 +212,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['street_address'] = isset($data['street_address']) ? $data['street_address'] : null; $this->container['street_address_2'] = isset($data['street_address_2']) ? $data['street_address_2'] : null; diff --git a/src/Model/AssetGroupAccountClone.php b/src/Model/AssetGroupAccountClone.php index c352fa4..aac4c23 100644 --- a/src/Model/AssetGroupAccountClone.php +++ b/src/Model/AssetGroupAccountClone.php @@ -294,7 +294,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['source_account'] = isset($data['source_account']) ? $data['source_account'] : null; $this->container['target_account'] = isset($data['target_account']) ? $data['target_account'] : null; diff --git a/src/Model/AssetGroupAccountCloneSourceAccount.php b/src/Model/AssetGroupAccountCloneSourceAccount.php index f54b2ca..a09159f 100644 --- a/src/Model/AssetGroupAccountCloneSourceAccount.php +++ b/src/Model/AssetGroupAccountCloneSourceAccount.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['external_account_id'] = isset($data['external_account_id']) ? $data['external_account_id'] : null; diff --git a/src/Model/AssetGroupAccountCloneTargetAccount.php b/src/Model/AssetGroupAccountCloneTargetAccount.php index 203e698..4a0ddda 100644 --- a/src/Model/AssetGroupAccountCloneTargetAccount.php +++ b/src/Model/AssetGroupAccountCloneTargetAccount.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/AssetGroupAccountCloneTargetAccountAdmin.php b/src/Model/AssetGroupAccountCloneTargetAccountAdmin.php index af60d27..5c3ff90 100644 --- a/src/Model/AssetGroupAccountCloneTargetAccountAdmin.php +++ b/src/Model/AssetGroupAccountCloneTargetAccountAdmin.php @@ -233,7 +233,7 @@ public function getLocaleAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; diff --git a/src/Model/AssetGroupAccountClones.php b/src/Model/AssetGroupAccountClones.php index 383ab42..5692ac9 100644 --- a/src/Model/AssetGroupAccountClones.php +++ b/src/Model/AssetGroupAccountClones.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_works'] = isset($data['asset_group_works']) ? $data['asset_group_works'] : null; } diff --git a/src/Model/AssetGroupAccountResponse.php b/src/Model/AssetGroupAccountResponse.php index 5099cbb..4c5d692 100644 --- a/src/Model/AssetGroupAccountResponse.php +++ b/src/Model/AssetGroupAccountResponse.php @@ -212,7 +212,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_id'] = isset($data['asset_group_id']) ? $data['asset_group_id'] : null; $this->container['asset_group_name'] = isset($data['asset_group_name']) ? $data['asset_group_name'] : null; diff --git a/src/Model/AssetGroupAccountsResponse.php b/src/Model/AssetGroupAccountsResponse.php index 1d8794a..2c0dbe4 100644 --- a/src/Model/AssetGroupAccountsResponse.php +++ b/src/Model/AssetGroupAccountsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_accounts'] = isset($data['asset_group_accounts']) ? $data['asset_group_accounts'] : null; } diff --git a/src/Model/CertificateResponse.php b/src/Model/CertificateResponse.php index a21c5e4..3b2a329 100644 --- a/src/Model/CertificateResponse.php +++ b/src/Model/CertificateResponse.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['issuer'] = isset($data['issuer']) ? $data['issuer'] : null; diff --git a/src/Model/ConnectEventData.php b/src/Model/ConnectEventData.php new file mode 100644 index 0000000..59514e3 --- /dev/null +++ b/src/Model/ConnectEventData.php @@ -0,0 +1,336 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * ConnectEventData Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class ConnectEventData implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ConnectEventData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'version' => '?string', + 'include_data' => '?string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'version' => null, + 'include_data' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version' => 'version', + 'include_data' => 'includeData' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version' => 'setVersion', + 'include_data' => 'setIncludeData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version' => 'getVersion', + 'include_data' => 'getIncludeData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['version'] = isset($data['version']) ? $data['version'] : null; + $this->container['include_data'] = isset($data['include_data']) ? $data['include_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets version + * + * @return ?string + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param ?string $version version + * + * @return $this + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + + /** + * Gets include_data + * + * @return ?string[] + */ + public function getIncludeData() + { + return $this->container['include_data']; + } + + /** + * Sets include_data + * + * @param ?string[] $include_data include_data + * + * @return $this + */ + public function setIncludeData($include_data) + { + $this->container['include_data'] = $include_data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/DSGroupAddRequest.php b/src/Model/DSGroupAddRequest.php index c5dfd8c..afaf9ff 100644 --- a/src/Model/DSGroupAddRequest.php +++ b/src/Model/DSGroupAddRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['group_name'] = isset($data['group_name']) ? $data['group_name'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; diff --git a/src/Model/DSGroupAndUsersResponse.php b/src/Model/DSGroupAndUsersResponse.php index 565441a..2847e3c 100644 --- a/src/Model/DSGroupAndUsersResponse.php +++ b/src/Model/DSGroupAndUsersResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['group'] = isset($data['group']) ? $data['group'] : null; $this->container['group_users'] = isset($data['group_users']) ? $data['group_users'] : null; diff --git a/src/Model/DSGroupListResponse.php b/src/Model/DSGroupListResponse.php index a45460b..d107a09 100644 --- a/src/Model/DSGroupListResponse.php +++ b/src/Model/DSGroupListResponse.php @@ -197,7 +197,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['page'] = isset($data['page']) ? $data['page'] : null; $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; diff --git a/src/Model/DSGroupRequest.php b/src/Model/DSGroupRequest.php index 80c4a10..3b56071 100644 --- a/src/Model/DSGroupRequest.php +++ b/src/Model/DSGroupRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['ds_group_id'] = isset($data['ds_group_id']) ? $data['ds_group_id'] : null; } diff --git a/src/Model/DSGroupResponse.php b/src/Model/DSGroupResponse.php index b8d0356..84cfd25 100644 --- a/src/Model/DSGroupResponse.php +++ b/src/Model/DSGroupResponse.php @@ -69,7 +69,8 @@ class DSGroupResponse implements ModelInterface, ArrayAccess 'last_modified_on' => '\DateTime', 'user_count' => '?int', 'external_account_id' => 'int', - 'account_name' => '?string' + 'account_name' => '?string', + 'is_managed_by_scim' => '?bool' ]; /** @@ -88,7 +89,8 @@ class DSGroupResponse implements ModelInterface, ArrayAccess 'last_modified_on' => 'date-time', 'user_count' => 'int32', 'external_account_id' => 'int64', - 'account_name' => null + 'account_name' => null, + 'is_managed_by_scim' => null ]; /** @@ -128,7 +130,8 @@ public static function swaggerFormats() 'last_modified_on' => 'last_modified_on', 'user_count' => 'user_count', 'external_account_id' => 'external_account_id', - 'account_name' => 'account_name' + 'account_name' => 'account_name', + 'is_managed_by_scim' => 'is_managed_by_scim' ]; /** @@ -147,7 +150,8 @@ public static function swaggerFormats() 'last_modified_on' => 'setLastModifiedOn', 'user_count' => 'setUserCount', 'external_account_id' => 'setExternalAccountId', - 'account_name' => 'setAccountName' + 'account_name' => 'setAccountName', + 'is_managed_by_scim' => 'setIsManagedByScim' ]; /** @@ -166,7 +170,8 @@ public static function swaggerFormats() 'last_modified_on' => 'getLastModifiedOn', 'user_count' => 'getUserCount', 'external_account_id' => 'getExternalAccountId', - 'account_name' => 'getAccountName' + 'account_name' => 'getAccountName', + 'is_managed_by_scim' => 'getIsManagedByScim' ]; /** @@ -227,7 +232,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['ds_group_id'] = isset($data['ds_group_id']) ? $data['ds_group_id'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; @@ -240,6 +245,7 @@ public function __construct(array $data = null) $this->container['user_count'] = isset($data['user_count']) ? $data['user_count'] : null; $this->container['external_account_id'] = isset($data['external_account_id']) ? $data['external_account_id'] : null; $this->container['account_name'] = isset($data['account_name']) ? $data['account_name'] : null; + $this->container['is_managed_by_scim'] = isset($data['is_managed_by_scim']) ? $data['is_managed_by_scim'] : null; } /** @@ -529,6 +535,30 @@ public function setAccountName($account_name) return $this; } + + /** + * Gets is_managed_by_scim + * + * @return ?bool + */ + public function getIsManagedByScim() + { + return $this->container['is_managed_by_scim']; + } + + /** + * Sets is_managed_by_scim + * + * @param ?bool $is_managed_by_scim is_managed_by_scim + * + * @return $this + */ + public function setIsManagedByScim($is_managed_by_scim) + { + $this->container['is_managed_by_scim'] = $is_managed_by_scim; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DSGroupUserResponse.php b/src/Model/DSGroupUserResponse.php index 44a3a81..501dabc 100644 --- a/src/Model/DSGroupUserResponse.php +++ b/src/Model/DSGroupUserResponse.php @@ -212,7 +212,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; diff --git a/src/Model/DSGroupUsersAddRequest.php b/src/Model/DSGroupUsersAddRequest.php index 9ed8a7c..9a2b462 100644 --- a/src/Model/DSGroupUsersAddRequest.php +++ b/src/Model/DSGroupUsersAddRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_ids'] = isset($data['user_ids']) ? $data['user_ids'] : null; } diff --git a/src/Model/DSGroupUsersRemoveRequest.php b/src/Model/DSGroupUsersRemoveRequest.php index b47e905..751e6c7 100644 --- a/src/Model/DSGroupUsersRemoveRequest.php +++ b/src/Model/DSGroupUsersRemoveRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_ids'] = isset($data['user_ids']) ? $data['user_ids'] : null; $this->container['user_emails'] = isset($data['user_emails']) ? $data['user_emails'] : null; diff --git a/src/Model/DSGroupUsersResponse.php b/src/Model/DSGroupUsersResponse.php index cfa4fdf..4a4a1c3 100644 --- a/src/Model/DSGroupUsersResponse.php +++ b/src/Model/DSGroupUsersResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['page'] = isset($data['page']) ? $data['page'] : null; $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; diff --git a/src/Model/DeleteMembershipRequest.php b/src/Model/DeleteMembershipRequest.php index 01fd6bd..5a4eae6 100644 --- a/src/Model/DeleteMembershipRequest.php +++ b/src/Model/DeleteMembershipRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; } diff --git a/src/Model/DeleteMembershipResponse.php b/src/Model/DeleteMembershipResponse.php index 7054b34..f276e2b 100644 --- a/src/Model/DeleteMembershipResponse.php +++ b/src/Model/DeleteMembershipResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; diff --git a/src/Model/DeleteMembershipsRequest.php b/src/Model/DeleteMembershipsRequest.php index 6700747..cfba0d8 100644 --- a/src/Model/DeleteMembershipsRequest.php +++ b/src/Model/DeleteMembershipsRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; } diff --git a/src/Model/DeleteMembershipsResponse.php b/src/Model/DeleteMembershipsResponse.php index 6579f85..b20a035 100644 --- a/src/Model/DeleteMembershipsResponse.php +++ b/src/Model/DeleteMembershipsResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; diff --git a/src/Model/DeleteResponse.php b/src/Model/DeleteResponse.php index 69c808c..2ef13b5 100644 --- a/src/Model/DeleteResponse.php +++ b/src/Model/DeleteResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['identities'] = isset($data['identities']) ? $data['identities'] : null; diff --git a/src/Model/DeleteUserIdentityRequest.php b/src/Model/DeleteUserIdentityRequest.php index a149df7..c520e45 100644 --- a/src/Model/DeleteUserIdentityRequest.php +++ b/src/Model/DeleteUserIdentityRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['identities'] = isset($data['identities']) ? $data['identities'] : null; } diff --git a/src/Model/DocuSignAccountDomainModelAddress.php b/src/Model/DocuSignAccountDomainModelAddress.php index eedf265..ea32cba 100644 --- a/src/Model/DocuSignAccountDomainModelAddress.php +++ b/src/Model/DocuSignAccountDomainModelAddress.php @@ -217,7 +217,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['address1'] = isset($data['address1']) ? $data['address1'] : null; $this->container['address2'] = isset($data['address2']) ? $data['address2'] : null; diff --git a/src/Model/DomainResponse.php b/src/Model/DomainResponse.php index b0ed69e..480cfd7 100644 --- a/src/Model/DomainResponse.php +++ b/src/Model/DomainResponse.php @@ -207,7 +207,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; diff --git a/src/Model/DomainsResponse.php b/src/Model/DomainsResponse.php index 4ed817a..1b1cf75 100644 --- a/src/Model/DomainsResponse.php +++ b/src/Model/DomainsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['reserved_domains'] = isset($data['reserved_domains']) ? $data['reserved_domains'] : null; } diff --git a/src/Model/ErrorDetail.php b/src/Model/ErrorDetail.php new file mode 100644 index 0000000..4ba45bb --- /dev/null +++ b/src/Model/ErrorDetail.php @@ -0,0 +1,336 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * ErrorDetail Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class ErrorDetail implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ErrorDetail'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'error_message' => '?string', + 'reference_id' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error_message' => null, + 'reference_id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error_message' => 'errorMessage', + 'reference_id' => 'referenceId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error_message' => 'setErrorMessage', + 'reference_id' => 'setReferenceId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error_message' => 'getErrorMessage', + 'reference_id' => 'getReferenceId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + $this->container['reference_id'] = isset($data['reference_id']) ? $data['reference_id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error_message + * + * @return ?string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param ?string $error_message error_message + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + + /** + * Gets reference_id + * + * @return ?string + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param ?string $reference_id reference_id + * + * @return $this + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/ErrorDetails.php b/src/Model/ErrorDetails.php index 2a396f3..f9ae7ca 100644 --- a/src/Model/ErrorDetails.php +++ b/src/Model/ErrorDetails.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error'] = isset($data['error']) ? $data['error'] : null; $this->container['error_description'] = isset($data['error_description']) ? $data['error_description'] : null; diff --git a/src/Model/ForceActivateMembershipRequest.php b/src/Model/ForceActivateMembershipRequest.php index a8cd836..f01bd42 100644 --- a/src/Model/ForceActivateMembershipRequest.php +++ b/src/Model/ForceActivateMembershipRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; } diff --git a/src/Model/GroupRequest.php b/src/Model/GroupRequest.php index 329fea9..321b5c3 100644 --- a/src/Model/GroupRequest.php +++ b/src/Model/GroupRequest.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/IdentityProviderResponse.php b/src/Model/IdentityProviderResponse.php index 2bfa711..18b796c 100644 --- a/src/Model/IdentityProviderResponse.php +++ b/src/Model/IdentityProviderResponse.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['friendly_name'] = isset($data['friendly_name']) ? $data['friendly_name'] : null; diff --git a/src/Model/IdentityProvidersResponse.php b/src/Model/IdentityProvidersResponse.php index 7cbd0b2..4d0258a 100644 --- a/src/Model/IdentityProvidersResponse.php +++ b/src/Model/IdentityProvidersResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['identity_providers'] = isset($data['identity_providers']) ? $data['identity_providers'] : null; } diff --git a/src/Model/IndividualMembershipDataRedactionRequest.php b/src/Model/IndividualMembershipDataRedactionRequest.php index 2a12541..84974d7 100644 --- a/src/Model/IndividualMembershipDataRedactionRequest.php +++ b/src/Model/IndividualMembershipDataRedactionRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; } diff --git a/src/Model/IndividualUserDataRedactionRequest.php b/src/Model/IndividualUserDataRedactionRequest.php index dd2d21d..8042454 100644 --- a/src/Model/IndividualUserDataRedactionRequest.php +++ b/src/Model/IndividualUserDataRedactionRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; $this->container['memberships'] = isset($data['memberships']) ? $data['memberships'] : null; diff --git a/src/Model/IndividualUserDataRedactionResponse.php b/src/Model/IndividualUserDataRedactionResponse.php index 7928d86..f8b51c5 100644 --- a/src/Model/IndividualUserDataRedactionResponse.php +++ b/src/Model/IndividualUserDataRedactionResponse.php @@ -208,7 +208,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; diff --git a/src/Model/LinkResponse.php b/src/Model/LinkResponse.php index 447bd09..6024cbc 100644 --- a/src/Model/LinkResponse.php +++ b/src/Model/LinkResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['rel'] = isset($data['rel']) ? $data['rel'] : null; $this->container['href'] = isset($data['href']) ? $data['href'] : null; diff --git a/src/Model/MemberGroupResponse.php b/src/Model/MemberGroupResponse.php index cdb1d61..3268a29 100644 --- a/src/Model/MemberGroupResponse.php +++ b/src/Model/MemberGroupResponse.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/MemberGroupsResponse.php b/src/Model/MemberGroupsResponse.php index 0f30de7..6dabd8a 100644 --- a/src/Model/MemberGroupsResponse.php +++ b/src/Model/MemberGroupsResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null; $this->container['paging'] = isset($data['paging']) ? $data['paging'] : null; diff --git a/src/Model/MembershipDataRedactionRequest.php b/src/Model/MembershipDataRedactionRequest.php index 8247bf0..11038a9 100644 --- a/src/Model/MembershipDataRedactionRequest.php +++ b/src/Model/MembershipDataRedactionRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; } diff --git a/src/Model/MembershipDataRedactionResponse.php b/src/Model/MembershipDataRedactionResponse.php index 7f657b9..86e259b 100644 --- a/src/Model/MembershipDataRedactionResponse.php +++ b/src/Model/MembershipDataRedactionResponse.php @@ -203,7 +203,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; diff --git a/src/Model/MembershipResponse.php b/src/Model/MembershipResponse.php index d69ea20..90125b6 100644 --- a/src/Model/MembershipResponse.php +++ b/src/Model/MembershipResponse.php @@ -59,6 +59,7 @@ class MembershipResponse implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'id' => '?string', 'email' => '?string', 'account_id' => '?string', 'external_account_id' => '?string', @@ -68,7 +69,10 @@ class MembershipResponse implements ModelInterface, ArrayAccess 'permission_profile' => '\DocuSign\Admin\Model\PermissionProfileResponse', 'created_on' => '\DateTime', 'groups' => '\DocuSign\Admin\Model\MemberGroupResponse[]', - 'is_admin' => '?bool' + 'is_admin' => '?bool', + 'license_type' => '?string', + 'subscription_id' => '?string', + 'plan_name' => '?string' ]; /** @@ -77,6 +81,7 @@ class MembershipResponse implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'id' => 'uuid', 'email' => null, 'account_id' => 'uuid', 'external_account_id' => null, @@ -86,7 +91,10 @@ class MembershipResponse implements ModelInterface, ArrayAccess 'permission_profile' => null, 'created_on' => 'date-time', 'groups' => null, - 'is_admin' => null + 'is_admin' => null, + 'license_type' => null, + 'subscription_id' => null, + 'plan_name' => null ]; /** @@ -116,6 +124,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ + 'id' => 'id', 'email' => 'email', 'account_id' => 'account_id', 'external_account_id' => 'external_account_id', @@ -125,7 +134,10 @@ public static function swaggerFormats() 'permission_profile' => 'permission_profile', 'created_on' => 'created_on', 'groups' => 'groups', - 'is_admin' => 'is_admin' + 'is_admin' => 'is_admin', + 'license_type' => 'license_type', + 'subscription_id' => 'subscription_id', + 'plan_name' => 'plan_name' ]; /** @@ -134,6 +146,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ + 'id' => 'setId', 'email' => 'setEmail', 'account_id' => 'setAccountId', 'external_account_id' => 'setExternalAccountId', @@ -143,7 +156,10 @@ public static function swaggerFormats() 'permission_profile' => 'setPermissionProfile', 'created_on' => 'setCreatedOn', 'groups' => 'setGroups', - 'is_admin' => 'setIsAdmin' + 'is_admin' => 'setIsAdmin', + 'license_type' => 'setLicenseType', + 'subscription_id' => 'setSubscriptionId', + 'plan_name' => 'setPlanName' ]; /** @@ -152,6 +168,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ + 'id' => 'getId', 'email' => 'getEmail', 'account_id' => 'getAccountId', 'external_account_id' => 'getExternalAccountId', @@ -161,7 +178,10 @@ public static function swaggerFormats() 'permission_profile' => 'getPermissionProfile', 'created_on' => 'getCreatedOn', 'groups' => 'getGroups', - 'is_admin' => 'getIsAdmin' + 'is_admin' => 'getIsAdmin', + 'license_type' => 'getLicenseType', + 'subscription_id' => 'getSubscriptionId', + 'plan_name' => 'getPlanName' ]; /** @@ -222,8 +242,9 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['external_account_id'] = isset($data['external_account_id']) ? $data['external_account_id'] : null; @@ -234,6 +255,9 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null; $this->container['is_admin'] = isset($data['is_admin']) ? $data['is_admin'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; + $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; + $this->container['plan_name'] = isset($data['plan_name']) ? $data['plan_name'] : null; } /** @@ -260,6 +284,30 @@ public function valid() } + /** + * Gets id + * + * @return ?string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param ?string $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** * Gets email * @@ -499,6 +547,78 @@ public function setIsAdmin($is_admin) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } + + /** + * Gets subscription_id + * + * @return ?string + */ + public function getSubscriptionId() + { + return $this->container['subscription_id']; + } + + /** + * Sets subscription_id + * + * @param ?string $subscription_id subscription_id + * + * @return $this + */ + public function setSubscriptionId($subscription_id) + { + $this->container['subscription_id'] = $subscription_id; + + return $this; + } + + /** + * Gets plan_name + * + * @return ?string + */ + public function getPlanName() + { + return $this->container['plan_name']; + } + + /** + * Sets plan_name + * + * @param ?string $plan_name plan_name + * + * @return $this + */ + public function setPlanName($plan_name) + { + $this->container['plan_name'] = $plan_name; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/NewAccountUserRequest.php b/src/Model/NewAccountUserRequest.php index 06a2ff0..3064e44 100644 --- a/src/Model/NewAccountUserRequest.php +++ b/src/Model/NewAccountUserRequest.php @@ -70,7 +70,8 @@ class NewAccountUserRequest implements ModelInterface, ArrayAccess 'selected_languages' => '?string', 'access_code' => '?string', 'federated_status' => '?string', - 'auto_activate_memberships' => '?bool' + 'auto_activate_memberships' => '?bool', + 'license_type' => '?string' ]; /** @@ -90,7 +91,8 @@ class NewAccountUserRequest implements ModelInterface, ArrayAccess 'selected_languages' => null, 'access_code' => null, 'federated_status' => null, - 'auto_activate_memberships' => null + 'auto_activate_memberships' => null, + 'license_type' => null ]; /** @@ -131,7 +133,8 @@ public static function swaggerFormats() 'selected_languages' => 'selected_languages', 'access_code' => 'access_code', 'federated_status' => 'federated_status', - 'auto_activate_memberships' => 'auto_activate_memberships' + 'auto_activate_memberships' => 'auto_activate_memberships', + 'license_type' => 'license_type' ]; /** @@ -151,7 +154,8 @@ public static function swaggerFormats() 'selected_languages' => 'setSelectedLanguages', 'access_code' => 'setAccessCode', 'federated_status' => 'setFederatedStatus', - 'auto_activate_memberships' => 'setAutoActivateMemberships' + 'auto_activate_memberships' => 'setAutoActivateMemberships', + 'license_type' => 'setLicenseType' ]; /** @@ -171,7 +175,8 @@ public static function swaggerFormats() 'selected_languages' => 'getSelectedLanguages', 'access_code' => 'getAccessCode', 'federated_status' => 'getFederatedStatus', - 'auto_activate_memberships' => 'getAutoActivateMemberships' + 'auto_activate_memberships' => 'getAutoActivateMemberships', + 'license_type' => 'getLicenseType' ]; /** @@ -232,7 +237,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['permission_profile'] = isset($data['permission_profile']) ? $data['permission_profile'] : null; $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null; @@ -246,6 +251,7 @@ public function __construct(array $data = null) $this->container['access_code'] = isset($data['access_code']) ? $data['access_code'] : null; $this->container['federated_status'] = isset($data['federated_status']) ? $data['federated_status'] : null; $this->container['auto_activate_memberships'] = isset($data['auto_activate_memberships']) ? $data['auto_activate_memberships'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; } /** @@ -562,6 +568,30 @@ public function setAutoActivateMemberships($auto_activate_memberships) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/NewMultiProductUserAddRequest.php b/src/Model/NewMultiProductUserAddRequest.php index f78715d..b23dd18 100644 --- a/src/Model/NewMultiProductUserAddRequest.php +++ b/src/Model/NewMultiProductUserAddRequest.php @@ -69,7 +69,8 @@ class NewMultiProductUserAddRequest implements ModelInterface, ArrayAccess 'language_culture' => '?string', 'access_code' => '?string', 'federated_status' => '?string', - 'auto_activate_memberships' => '?bool' + 'auto_activate_memberships' => '?bool', + 'license_type' => '?string' ]; /** @@ -88,7 +89,8 @@ class NewMultiProductUserAddRequest implements ModelInterface, ArrayAccess 'language_culture' => null, 'access_code' => null, 'federated_status' => null, - 'auto_activate_memberships' => null + 'auto_activate_memberships' => null, + 'license_type' => null ]; /** @@ -128,7 +130,8 @@ public static function swaggerFormats() 'language_culture' => 'language_culture', 'access_code' => 'access_code', 'federated_status' => 'federated_status', - 'auto_activate_memberships' => 'auto_activate_memberships' + 'auto_activate_memberships' => 'auto_activate_memberships', + 'license_type' => 'license_type' ]; /** @@ -147,7 +150,8 @@ public static function swaggerFormats() 'language_culture' => 'setLanguageCulture', 'access_code' => 'setAccessCode', 'federated_status' => 'setFederatedStatus', - 'auto_activate_memberships' => 'setAutoActivateMemberships' + 'auto_activate_memberships' => 'setAutoActivateMemberships', + 'license_type' => 'setLicenseType' ]; /** @@ -166,7 +170,8 @@ public static function swaggerFormats() 'language_culture' => 'getLanguageCulture', 'access_code' => 'getAccessCode', 'federated_status' => 'getFederatedStatus', - 'auto_activate_memberships' => 'getAutoActivateMemberships' + 'auto_activate_memberships' => 'getAutoActivateMemberships', + 'license_type' => 'getLicenseType' ]; /** @@ -227,7 +232,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['product_permission_profiles'] = isset($data['product_permission_profiles']) ? $data['product_permission_profiles'] : null; $this->container['ds_groups'] = isset($data['ds_groups']) ? $data['ds_groups'] : null; @@ -240,6 +245,7 @@ public function __construct(array $data = null) $this->container['access_code'] = isset($data['access_code']) ? $data['access_code'] : null; $this->container['federated_status'] = isset($data['federated_status']) ? $data['federated_status'] : null; $this->container['auto_activate_memberships'] = isset($data['auto_activate_memberships']) ? $data['auto_activate_memberships'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; } /** @@ -535,6 +541,30 @@ public function setAutoActivateMemberships($auto_activate_memberships) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/NewUserRequest.php b/src/Model/NewUserRequest.php index a2fa23a..9e6c408 100644 --- a/src/Model/NewUserRequest.php +++ b/src/Model/NewUserRequest.php @@ -227,7 +227,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; $this->container['user_name'] = isset($data['user_name']) ? $data['user_name'] : null; diff --git a/src/Model/NewUserRequestAccountProperties.php b/src/Model/NewUserRequestAccountProperties.php index 6c99fcf..fa8aae3 100644 --- a/src/Model/NewUserRequestAccountProperties.php +++ b/src/Model/NewUserRequestAccountProperties.php @@ -197,7 +197,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['permission_profile'] = isset($data['permission_profile']) ? $data['permission_profile'] : null; diff --git a/src/Model/NewUserResponse.php b/src/Model/NewUserResponse.php index 5cdccaf..f991ee0 100644 --- a/src/Model/NewUserResponse.php +++ b/src/Model/NewUserResponse.php @@ -217,7 +217,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/NewUserResponseAccountProperties.php b/src/Model/NewUserResponseAccountProperties.php index 8921f22..e4e91a5 100644 --- a/src/Model/NewUserResponseAccountProperties.php +++ b/src/Model/NewUserResponseAccountProperties.php @@ -64,7 +64,11 @@ class NewUserResponseAccountProperties implements ModelInterface, ArrayAccess 'permission_profile' => '\DocuSign\Admin\Model\PermissionProfileResponse', 'groups' => '\DocuSign\Admin\Model\MemberGroupResponse[]', 'company_name' => '?string', - 'job_title' => '?string' + 'job_title' => '?string', + 'license_type' => '?string', + 'subscription_id' => '?string', + 'plan_name' => '?string', + 'license_status' => '?string' ]; /** @@ -78,7 +82,11 @@ class NewUserResponseAccountProperties implements ModelInterface, ArrayAccess 'permission_profile' => null, 'groups' => null, 'company_name' => null, - 'job_title' => null + 'job_title' => null, + 'license_type' => null, + 'subscription_id' => null, + 'plan_name' => null, + 'license_status' => null ]; /** @@ -113,7 +121,11 @@ public static function swaggerFormats() 'permission_profile' => 'permission_profile', 'groups' => 'groups', 'company_name' => 'company_name', - 'job_title' => 'job_title' + 'job_title' => 'job_title', + 'license_type' => 'license_type', + 'subscription_id' => 'subscription_id', + 'plan_name' => 'plan_name', + 'license_status' => 'license_status' ]; /** @@ -127,7 +139,11 @@ public static function swaggerFormats() 'permission_profile' => 'setPermissionProfile', 'groups' => 'setGroups', 'company_name' => 'setCompanyName', - 'job_title' => 'setJobTitle' + 'job_title' => 'setJobTitle', + 'license_type' => 'setLicenseType', + 'subscription_id' => 'setSubscriptionId', + 'plan_name' => 'setPlanName', + 'license_status' => 'setLicenseStatus' ]; /** @@ -141,7 +157,11 @@ public static function swaggerFormats() 'permission_profile' => 'getPermissionProfile', 'groups' => 'getGroups', 'company_name' => 'getCompanyName', - 'job_title' => 'getJobTitle' + 'job_title' => 'getJobTitle', + 'license_type' => 'getLicenseType', + 'subscription_id' => 'getSubscriptionId', + 'plan_name' => 'getPlanName', + 'license_status' => 'getLicenseStatus' ]; /** @@ -202,7 +222,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; @@ -210,6 +230,10 @@ public function __construct(array $data = null) $this->container['groups'] = isset($data['groups']) ? $data['groups'] : null; $this->container['company_name'] = isset($data['company_name']) ? $data['company_name'] : null; $this->container['job_title'] = isset($data['job_title']) ? $data['job_title'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; + $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; + $this->container['plan_name'] = isset($data['plan_name']) ? $data['plan_name'] : null; + $this->container['license_status'] = isset($data['license_status']) ? $data['license_status'] : null; } /** @@ -379,6 +403,102 @@ public function setJobTitle($job_title) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } + + /** + * Gets subscription_id + * + * @return ?string + */ + public function getSubscriptionId() + { + return $this->container['subscription_id']; + } + + /** + * Sets subscription_id + * + * @param ?string $subscription_id subscription_id + * + * @return $this + */ + public function setSubscriptionId($subscription_id) + { + $this->container['subscription_id'] = $subscription_id; + + return $this; + } + + /** + * Gets plan_name + * + * @return ?string + */ + public function getPlanName() + { + return $this->container['plan_name']; + } + + /** + * Sets plan_name + * + * @param ?string $plan_name plan_name + * + * @return $this + */ + public function setPlanName($plan_name) + { + $this->container['plan_name'] = $plan_name; + + return $this; + } + + /** + * Gets license_status + * + * @return ?string + */ + public function getLicenseStatus() + { + return $this->container['license_status']; + } + + /** + * Sets license_status + * + * @param ?string $license_status license_status + * + * @return $this + */ + public function setLicenseStatus($license_status) + { + $this->container['license_status'] = $license_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/OASIRRErrorDetails.php b/src/Model/OASIRRErrorDetails.php index 6c138e4..0b926f3 100644 --- a/src/Model/OASIRRErrorDetails.php +++ b/src/Model/OASIRRErrorDetails.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error'] = isset($data['error']) ? $data['error'] : null; $this->container['error_description'] = isset($data['error_description']) ? $data['error_description'] : null; diff --git a/src/Model/OASIRROrganizationAccountSettingsErrorDataResponse.php b/src/Model/OASIRROrganizationAccountSettingsErrorDataResponse.php index 4bb9899..fd99d6d 100644 --- a/src/Model/OASIRROrganizationAccountSettingsErrorDataResponse.php +++ b/src/Model/OASIRROrganizationAccountSettingsErrorDataResponse.php @@ -197,7 +197,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['account_name'] = isset($data['account_name']) ? $data['account_name'] : null; diff --git a/src/Model/OETRErrorDetails.php b/src/Model/OETRErrorDetails.php index d6f99b5..2c5adce 100644 --- a/src/Model/OETRErrorDetails.php +++ b/src/Model/OETRErrorDetails.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error'] = isset($data['error']) ? $data['error'] : null; $this->container['error_description'] = isset($data['error_description']) ? $data['error_description'] : null; diff --git a/src/Model/OSAMRContact.php b/src/Model/OSAMRContact.php index bf9d13c..5227392 100644 --- a/src/Model/OSAMRContact.php +++ b/src/Model/OSAMRContact.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; diff --git a/src/Model/OrgExportSelectedAccount.php b/src/Model/OrgExportSelectedAccount.php index 77276b6..bb6c3a7 100644 --- a/src/Model/OrgExportSelectedAccount.php +++ b/src/Model/OrgExportSelectedAccount.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; } diff --git a/src/Model/OrgExportSelectedDomain.php b/src/Model/OrgExportSelectedDomain.php index aff9080..135f815 100644 --- a/src/Model/OrgExportSelectedDomain.php +++ b/src/Model/OrgExportSelectedDomain.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; } diff --git a/src/Model/OrgReportConfigurationResponse.php b/src/Model/OrgReportConfigurationResponse.php index 9cbd3bb..c5eaac7 100644 --- a/src/Model/OrgReportConfigurationResponse.php +++ b/src/Model/OrgReportConfigurationResponse.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['is_account_limit_disabled'] = isset($data['is_account_limit_disabled']) ? $data['is_account_limit_disabled'] : null; $this->container['custom_dates_enabled'] = isset($data['custom_dates_enabled']) ? $data['custom_dates_enabled'] : null; diff --git a/src/Model/OrgReportCreateResponse.php b/src/Model/OrgReportCreateResponse.php index 8d2f661..7b35bbc 100644 --- a/src/Model/OrgReportCreateResponse.php +++ b/src/Model/OrgReportCreateResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['report_correlation_id'] = isset($data['report_correlation_id']) ? $data['report_correlation_id'] : null; } diff --git a/src/Model/OrgReportListResponse.php b/src/Model/OrgReportListResponse.php index 03d6ea2..ca94e40 100644 --- a/src/Model/OrgReportListResponse.php +++ b/src/Model/OrgReportListResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['reports'] = isset($data['reports']) ? $data['reports'] : null; } diff --git a/src/Model/OrgReportListResponseOrgReport.php b/src/Model/OrgReportListResponseOrgReport.php index d0320ec..b56f35a 100644 --- a/src/Model/OrgReportListResponseOrgReport.php +++ b/src/Model/OrgReportListResponseOrgReport.php @@ -232,7 +232,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['complete'] = isset($data['complete']) ? $data['complete'] : null; $this->container['report_correlation_id'] = isset($data['report_correlation_id']) ? $data['report_correlation_id'] : null; diff --git a/src/Model/OrgReportListResponseRequestor.php b/src/Model/OrgReportListResponseRequestor.php index d3eea6a..5db82d4 100644 --- a/src/Model/OrgReportListResponseRequestor.php +++ b/src/Model/OrgReportListResponseRequestor.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/OrgReportRequest.php b/src/Model/OrgReportRequest.php index 8641c00..aef852d 100644 --- a/src/Model/OrgReportRequest.php +++ b/src/Model/OrgReportRequest.php @@ -197,7 +197,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['report_type'] = isset($data['report_type']) ? $data['report_type'] : null; $this->container['report_date_range'] = isset($data['report_date_range']) ? $data['report_date_range'] : null; diff --git a/src/Model/OrganizationAccountRequest.php b/src/Model/OrganizationAccountRequest.php index f795141..b6e5080 100644 --- a/src/Model/OrganizationAccountRequest.php +++ b/src/Model/OrganizationAccountRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; } diff --git a/src/Model/OrganizationAccountResponse.php b/src/Model/OrganizationAccountResponse.php index cd9e57f..66c153d 100644 --- a/src/Model/OrganizationAccountResponse.php +++ b/src/Model/OrganizationAccountResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/OrganizationAccountSettingsImportRequestorResponse.php b/src/Model/OrganizationAccountSettingsImportRequestorResponse.php index c0fc4bf..306ac13 100644 --- a/src/Model/OrganizationAccountSettingsImportRequestorResponse.php +++ b/src/Model/OrganizationAccountSettingsImportRequestorResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; diff --git a/src/Model/OrganizationAccountSettingsImportResponse.php b/src/Model/OrganizationAccountSettingsImportResponse.php index eea8a7f..bcffc01 100644 --- a/src/Model/OrganizationAccountSettingsImportResponse.php +++ b/src/Model/OrganizationAccountSettingsImportResponse.php @@ -247,7 +247,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['created'] = isset($data['created']) ? $data['created'] : null; $this->container['last_modified'] = isset($data['last_modified']) ? $data['last_modified'] : null; diff --git a/src/Model/OrganizationAccountSettingsImportResultResponse.php b/src/Model/OrganizationAccountSettingsImportResultResponse.php index 05de909..a28f2a0 100644 --- a/src/Model/OrganizationAccountSettingsImportResultResponse.php +++ b/src/Model/OrganizationAccountSettingsImportResultResponse.php @@ -207,7 +207,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/OrganizationAccountsRequest.php b/src/Model/OrganizationAccountsRequest.php index 2ad2141..da7c8db 100644 --- a/src/Model/OrganizationAccountsRequest.php +++ b/src/Model/OrganizationAccountsRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; } diff --git a/src/Model/OrganizationConnectConfigResponse.php b/src/Model/OrganizationConnectConfigResponse.php new file mode 100644 index 0000000..6e66d3c --- /dev/null +++ b/src/Model/OrganizationConnectConfigResponse.php @@ -0,0 +1,606 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectConfigResponse Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectConfigResponse implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectConfigResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'connect_id' => '?string', + 'configuration_type' => '?string', + 'disabled_by' => '?string', + 'allow_salesforce_publish' => '?string', + 'name' => '?string', + 'account_id' => '?string', + 'account_name' => '?string', + 'allow_envelope_publish' => '?string', + 'site_id' => '?int', + 'pause_publish' => '?string', + 'requires_acknowledgement' => '?string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connect_id' => null, + 'configuration_type' => null, + 'disabled_by' => null, + 'allow_salesforce_publish' => null, + 'name' => null, + 'account_id' => null, + 'account_name' => null, + 'allow_envelope_publish' => null, + 'site_id' => 'int32', + 'pause_publish' => null, + 'requires_acknowledgement' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connect_id' => 'connectId', + 'configuration_type' => 'configurationType', + 'disabled_by' => 'disabledBy', + 'allow_salesforce_publish' => 'allowSalesforcePublish', + 'name' => 'name', + 'account_id' => 'accountId', + 'account_name' => 'accountName', + 'allow_envelope_publish' => 'allowEnvelopePublish', + 'site_id' => 'siteId', + 'pause_publish' => 'pausePublish', + 'requires_acknowledgement' => 'requiresAcknowledgement' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connect_id' => 'setConnectId', + 'configuration_type' => 'setConfigurationType', + 'disabled_by' => 'setDisabledBy', + 'allow_salesforce_publish' => 'setAllowSalesforcePublish', + 'name' => 'setName', + 'account_id' => 'setAccountId', + 'account_name' => 'setAccountName', + 'allow_envelope_publish' => 'setAllowEnvelopePublish', + 'site_id' => 'setSiteId', + 'pause_publish' => 'setPausePublish', + 'requires_acknowledgement' => 'setRequiresAcknowledgement' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connect_id' => 'getConnectId', + 'configuration_type' => 'getConfigurationType', + 'disabled_by' => 'getDisabledBy', + 'allow_salesforce_publish' => 'getAllowSalesforcePublish', + 'name' => 'getName', + 'account_id' => 'getAccountId', + 'account_name' => 'getAccountName', + 'allow_envelope_publish' => 'getAllowEnvelopePublish', + 'site_id' => 'getSiteId', + 'pause_publish' => 'getPausePublish', + 'requires_acknowledgement' => 'getRequiresAcknowledgement' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['connect_id'] = isset($data['connect_id']) ? $data['connect_id'] : null; + $this->container['configuration_type'] = isset($data['configuration_type']) ? $data['configuration_type'] : null; + $this->container['disabled_by'] = isset($data['disabled_by']) ? $data['disabled_by'] : null; + $this->container['allow_salesforce_publish'] = isset($data['allow_salesforce_publish']) ? $data['allow_salesforce_publish'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['account_name'] = isset($data['account_name']) ? $data['account_name'] : null; + $this->container['allow_envelope_publish'] = isset($data['allow_envelope_publish']) ? $data['allow_envelope_publish'] : null; + $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; + $this->container['pause_publish'] = isset($data['pause_publish']) ? $data['pause_publish'] : null; + $this->container['requires_acknowledgement'] = isset($data['requires_acknowledgement']) ? $data['requires_acknowledgement'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connect_id + * + * @return ?string + */ + public function getConnectId() + { + return $this->container['connect_id']; + } + + /** + * Sets connect_id + * + * @param ?string $connect_id connect_id + * + * @return $this + */ + public function setConnectId($connect_id) + { + $this->container['connect_id'] = $connect_id; + + return $this; + } + + /** + * Gets configuration_type + * + * @return ?string + */ + public function getConfigurationType() + { + return $this->container['configuration_type']; + } + + /** + * Sets configuration_type + * + * @param ?string $configuration_type configuration_type + * + * @return $this + */ + public function setConfigurationType($configuration_type) + { + $this->container['configuration_type'] = $configuration_type; + + return $this; + } + + /** + * Gets disabled_by + * + * @return ?string + */ + public function getDisabledBy() + { + return $this->container['disabled_by']; + } + + /** + * Sets disabled_by + * + * @param ?string $disabled_by disabled_by + * + * @return $this + */ + public function setDisabledBy($disabled_by) + { + $this->container['disabled_by'] = $disabled_by; + + return $this; + } + + /** + * Gets allow_salesforce_publish + * + * @return ?string + */ + public function getAllowSalesforcePublish() + { + return $this->container['allow_salesforce_publish']; + } + + /** + * Sets allow_salesforce_publish + * + * @param ?string $allow_salesforce_publish allow_salesforce_publish + * + * @return $this + */ + public function setAllowSalesforcePublish($allow_salesforce_publish) + { + $this->container['allow_salesforce_publish'] = $allow_salesforce_publish; + + return $this; + } + + /** + * Gets name + * + * @return ?string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param ?string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets account_id + * + * @return ?string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param ?string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets account_name + * + * @return ?string + */ + public function getAccountName() + { + return $this->container['account_name']; + } + + /** + * Sets account_name + * + * @param ?string $account_name account_name + * + * @return $this + */ + public function setAccountName($account_name) + { + $this->container['account_name'] = $account_name; + + return $this; + } + + /** + * Gets allow_envelope_publish + * + * @return ?string + */ + public function getAllowEnvelopePublish() + { + return $this->container['allow_envelope_publish']; + } + + /** + * Sets allow_envelope_publish + * + * @param ?string $allow_envelope_publish allow_envelope_publish + * + * @return $this + */ + public function setAllowEnvelopePublish($allow_envelope_publish) + { + $this->container['allow_envelope_publish'] = $allow_envelope_publish; + + return $this; + } + + /** + * Gets site_id + * + * @return ?int + */ + public function getSiteId() + { + return $this->container['site_id']; + } + + /** + * Sets site_id + * + * @param ?int $site_id site_id + * + * @return $this + */ + public function setSiteId($site_id) + { + $this->container['site_id'] = $site_id; + + return $this; + } + + /** + * Gets pause_publish + * + * @return ?string + */ + public function getPausePublish() + { + return $this->container['pause_publish']; + } + + /** + * Sets pause_publish + * + * @param ?string $pause_publish pause_publish + * + * @return $this + */ + public function setPausePublish($pause_publish) + { + $this->container['pause_publish'] = $pause_publish; + + return $this; + } + + /** + * Gets requires_acknowledgement + * + * @return ?string + */ + public function getRequiresAcknowledgement() + { + return $this->container['requires_acknowledgement']; + } + + /** + * Sets requires_acknowledgement + * + * @param ?string $requires_acknowledgement requires_acknowledgement + * + * @return $this + */ + public function setRequiresAcknowledgement($requires_acknowledgement) + { + $this->container['requires_acknowledgement'] = $requires_acknowledgement; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationConnectConfigsResponse.php b/src/Model/OrganizationConnectConfigsResponse.php new file mode 100644 index 0000000..792d4c9 --- /dev/null +++ b/src/Model/OrganizationConnectConfigsResponse.php @@ -0,0 +1,366 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectConfigsResponse Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectConfigsResponse implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectConfigsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'configurations' => '\DocuSign\Admin\Model\OrganizationConnectConfigResponse[]', + 'total_set_size' => '?int', + 'error_detail' => '\DocuSign\Admin\Model\ErrorDetail' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'configurations' => null, + 'total_set_size' => 'int32', + 'error_detail' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'configurations' => 'configurations', + 'total_set_size' => 'totalSetSize', + 'error_detail' => 'errorDetail' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'configurations' => 'setConfigurations', + 'total_set_size' => 'setTotalSetSize', + 'error_detail' => 'setErrorDetail' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'configurations' => 'getConfigurations', + 'total_set_size' => 'getTotalSetSize', + 'error_detail' => 'getErrorDetail' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['configurations'] = isset($data['configurations']) ? $data['configurations'] : null; + $this->container['total_set_size'] = isset($data['total_set_size']) ? $data['total_set_size'] : null; + $this->container['error_detail'] = isset($data['error_detail']) ? $data['error_detail'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets configurations + * + * @return \DocuSign\Admin\Model\OrganizationConnectConfigResponse[] + */ + public function getConfigurations() + { + return $this->container['configurations']; + } + + /** + * Sets configurations + * + * @param \DocuSign\Admin\Model\OrganizationConnectConfigResponse[] $configurations configurations + * + * @return $this + */ + public function setConfigurations($configurations) + { + $this->container['configurations'] = $configurations; + + return $this; + } + + /** + * Gets total_set_size + * + * @return ?int + */ + public function getTotalSetSize() + { + return $this->container['total_set_size']; + } + + /** + * Sets total_set_size + * + * @param ?int $total_set_size total_set_size + * + * @return $this + */ + public function setTotalSetSize($total_set_size) + { + $this->container['total_set_size'] = $total_set_size; + + return $this; + } + + /** + * Gets error_detail + * + * @return \DocuSign\Admin\Model\ErrorDetail + */ + public function getErrorDetail() + { + return $this->container['error_detail']; + } + + /** + * Sets error_detail + * + * @param \DocuSign\Admin\Model\ErrorDetail $error_detail error_detail + * + * @return $this + */ + public function setErrorDetail($error_detail) + { + $this->container['error_detail'] = $error_detail; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationConnectConfigurationDetailsResponse.php b/src/Model/OrganizationConnectConfigurationDetailsResponse.php new file mode 100644 index 0000000..215a33b --- /dev/null +++ b/src/Model/OrganizationConnectConfigurationDetailsResponse.php @@ -0,0 +1,756 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectConfigurationDetailsResponse Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectConfigurationDetailsResponse implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectConfigurationDetailsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'connect_id' => '?string', + 'configuration_type' => '?string', + 'allow_envelope_publish' => '?string', + 'url_to_publish_to' => '?string', + 'delivery_mode' => '?string', + 'events' => '?string[]', + 'associated_filter_selection' => '?string', + 'account_ids' => '?string[]', + 'user_ids' => '?string[]', + 'group_ids' => '?string[]', + 'name' => '?string', + 'sign_message_with_x509_certificate' => '?string', + 'include_o_auth' => '?string', + 'include_hmac' => '?string', + 'pause_publish' => '?string', + 'event_data' => '\DocuSign\Admin\Model\ConnectEventData' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connect_id' => 'uuid', + 'configuration_type' => null, + 'allow_envelope_publish' => null, + 'url_to_publish_to' => null, + 'delivery_mode' => null, + 'events' => null, + 'associated_filter_selection' => null, + 'account_ids' => null, + 'user_ids' => null, + 'group_ids' => null, + 'name' => null, + 'sign_message_with_x509_certificate' => null, + 'include_o_auth' => null, + 'include_hmac' => null, + 'pause_publish' => null, + 'event_data' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connect_id' => 'connectId', + 'configuration_type' => 'configurationType', + 'allow_envelope_publish' => 'allowEnvelopePublish', + 'url_to_publish_to' => 'urlToPublishTo', + 'delivery_mode' => 'deliveryMode', + 'events' => 'events', + 'associated_filter_selection' => 'associatedFilterSelection', + 'account_ids' => 'accountIds', + 'user_ids' => 'userIds', + 'group_ids' => 'groupIds', + 'name' => 'name', + 'sign_message_with_x509_certificate' => 'signMessageWithX509Certificate', + 'include_o_auth' => 'includeOAuth', + 'include_hmac' => 'includeHMAC', + 'pause_publish' => 'pausePublish', + 'event_data' => 'eventData' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connect_id' => 'setConnectId', + 'configuration_type' => 'setConfigurationType', + 'allow_envelope_publish' => 'setAllowEnvelopePublish', + 'url_to_publish_to' => 'setUrlToPublishTo', + 'delivery_mode' => 'setDeliveryMode', + 'events' => 'setEvents', + 'associated_filter_selection' => 'setAssociatedFilterSelection', + 'account_ids' => 'setAccountIds', + 'user_ids' => 'setUserIds', + 'group_ids' => 'setGroupIds', + 'name' => 'setName', + 'sign_message_with_x509_certificate' => 'setSignMessageWithX509Certificate', + 'include_o_auth' => 'setIncludeOAuth', + 'include_hmac' => 'setIncludeHmac', + 'pause_publish' => 'setPausePublish', + 'event_data' => 'setEventData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connect_id' => 'getConnectId', + 'configuration_type' => 'getConfigurationType', + 'allow_envelope_publish' => 'getAllowEnvelopePublish', + 'url_to_publish_to' => 'getUrlToPublishTo', + 'delivery_mode' => 'getDeliveryMode', + 'events' => 'getEvents', + 'associated_filter_selection' => 'getAssociatedFilterSelection', + 'account_ids' => 'getAccountIds', + 'user_ids' => 'getUserIds', + 'group_ids' => 'getGroupIds', + 'name' => 'getName', + 'sign_message_with_x509_certificate' => 'getSignMessageWithX509Certificate', + 'include_o_auth' => 'getIncludeOAuth', + 'include_hmac' => 'getIncludeHmac', + 'pause_publish' => 'getPausePublish', + 'event_data' => 'getEventData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['connect_id'] = isset($data['connect_id']) ? $data['connect_id'] : null; + $this->container['configuration_type'] = isset($data['configuration_type']) ? $data['configuration_type'] : null; + $this->container['allow_envelope_publish'] = isset($data['allow_envelope_publish']) ? $data['allow_envelope_publish'] : null; + $this->container['url_to_publish_to'] = isset($data['url_to_publish_to']) ? $data['url_to_publish_to'] : null; + $this->container['delivery_mode'] = isset($data['delivery_mode']) ? $data['delivery_mode'] : null; + $this->container['events'] = isset($data['events']) ? $data['events'] : null; + $this->container['associated_filter_selection'] = isset($data['associated_filter_selection']) ? $data['associated_filter_selection'] : null; + $this->container['account_ids'] = isset($data['account_ids']) ? $data['account_ids'] : null; + $this->container['user_ids'] = isset($data['user_ids']) ? $data['user_ids'] : null; + $this->container['group_ids'] = isset($data['group_ids']) ? $data['group_ids'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['sign_message_with_x509_certificate'] = isset($data['sign_message_with_x509_certificate']) ? $data['sign_message_with_x509_certificate'] : null; + $this->container['include_o_auth'] = isset($data['include_o_auth']) ? $data['include_o_auth'] : null; + $this->container['include_hmac'] = isset($data['include_hmac']) ? $data['include_hmac'] : null; + $this->container['pause_publish'] = isset($data['pause_publish']) ? $data['pause_publish'] : null; + $this->container['event_data'] = isset($data['event_data']) ? $data['event_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connect_id + * + * @return ?string + */ + public function getConnectId() + { + return $this->container['connect_id']; + } + + /** + * Sets connect_id + * + * @param ?string $connect_id connect_id + * + * @return $this + */ + public function setConnectId($connect_id) + { + $this->container['connect_id'] = $connect_id; + + return $this; + } + + /** + * Gets configuration_type + * + * @return ?string + */ + public function getConfigurationType() + { + return $this->container['configuration_type']; + } + + /** + * Sets configuration_type + * + * @param ?string $configuration_type configuration_type + * + * @return $this + */ + public function setConfigurationType($configuration_type) + { + $this->container['configuration_type'] = $configuration_type; + + return $this; + } + + /** + * Gets allow_envelope_publish + * + * @return ?string + */ + public function getAllowEnvelopePublish() + { + return $this->container['allow_envelope_publish']; + } + + /** + * Sets allow_envelope_publish + * + * @param ?string $allow_envelope_publish allow_envelope_publish + * + * @return $this + */ + public function setAllowEnvelopePublish($allow_envelope_publish) + { + $this->container['allow_envelope_publish'] = $allow_envelope_publish; + + return $this; + } + + /** + * Gets url_to_publish_to + * + * @return ?string + */ + public function getUrlToPublishTo() + { + return $this->container['url_to_publish_to']; + } + + /** + * Sets url_to_publish_to + * + * @param ?string $url_to_publish_to url_to_publish_to + * + * @return $this + */ + public function setUrlToPublishTo($url_to_publish_to) + { + $this->container['url_to_publish_to'] = $url_to_publish_to; + + return $this; + } + + /** + * Gets delivery_mode + * + * @return ?string + */ + public function getDeliveryMode() + { + return $this->container['delivery_mode']; + } + + /** + * Sets delivery_mode + * + * @param ?string $delivery_mode delivery_mode + * + * @return $this + */ + public function setDeliveryMode($delivery_mode) + { + $this->container['delivery_mode'] = $delivery_mode; + + return $this; + } + + /** + * Gets events + * + * @return ?string[] + */ + public function getEvents() + { + return $this->container['events']; + } + + /** + * Sets events + * + * @param ?string[] $events events + * + * @return $this + */ + public function setEvents($events) + { + $this->container['events'] = $events; + + return $this; + } + + /** + * Gets associated_filter_selection + * + * @return ?string + */ + public function getAssociatedFilterSelection() + { + return $this->container['associated_filter_selection']; + } + + /** + * Sets associated_filter_selection + * + * @param ?string $associated_filter_selection associated_filter_selection + * + * @return $this + */ + public function setAssociatedFilterSelection($associated_filter_selection) + { + $this->container['associated_filter_selection'] = $associated_filter_selection; + + return $this; + } + + /** + * Gets account_ids + * + * @return ?string[] + */ + public function getAccountIds() + { + return $this->container['account_ids']; + } + + /** + * Sets account_ids + * + * @param ?string[] $account_ids account_ids + * + * @return $this + */ + public function setAccountIds($account_ids) + { + $this->container['account_ids'] = $account_ids; + + return $this; + } + + /** + * Gets user_ids + * + * @return ?string[] + */ + public function getUserIds() + { + return $this->container['user_ids']; + } + + /** + * Sets user_ids + * + * @param ?string[] $user_ids user_ids + * + * @return $this + */ + public function setUserIds($user_ids) + { + $this->container['user_ids'] = $user_ids; + + return $this; + } + + /** + * Gets group_ids + * + * @return ?string[] + */ + public function getGroupIds() + { + return $this->container['group_ids']; + } + + /** + * Sets group_ids + * + * @param ?string[] $group_ids group_ids + * + * @return $this + */ + public function setGroupIds($group_ids) + { + $this->container['group_ids'] = $group_ids; + + return $this; + } + + /** + * Gets name + * + * @return ?string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param ?string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets sign_message_with_x509_certificate + * + * @return ?string + */ + public function getSignMessageWithX509Certificate() + { + return $this->container['sign_message_with_x509_certificate']; + } + + /** + * Sets sign_message_with_x509_certificate + * + * @param ?string $sign_message_with_x509_certificate sign_message_with_x509_certificate + * + * @return $this + */ + public function setSignMessageWithX509Certificate($sign_message_with_x509_certificate) + { + $this->container['sign_message_with_x509_certificate'] = $sign_message_with_x509_certificate; + + return $this; + } + + /** + * Gets include_o_auth + * + * @return ?string + */ + public function getIncludeOAuth() + { + return $this->container['include_o_auth']; + } + + /** + * Sets include_o_auth + * + * @param ?string $include_o_auth include_o_auth + * + * @return $this + */ + public function setIncludeOAuth($include_o_auth) + { + $this->container['include_o_auth'] = $include_o_auth; + + return $this; + } + + /** + * Gets include_hmac + * + * @return ?string + */ + public function getIncludeHmac() + { + return $this->container['include_hmac']; + } + + /** + * Sets include_hmac + * + * @param ?string $include_hmac include_hmac + * + * @return $this + */ + public function setIncludeHmac($include_hmac) + { + $this->container['include_hmac'] = $include_hmac; + + return $this; + } + + /** + * Gets pause_publish + * + * @return ?string + */ + public function getPausePublish() + { + return $this->container['pause_publish']; + } + + /** + * Sets pause_publish + * + * @param ?string $pause_publish pause_publish + * + * @return $this + */ + public function setPausePublish($pause_publish) + { + $this->container['pause_publish'] = $pause_publish; + + return $this; + } + + /** + * Gets event_data + * + * @return \DocuSign\Admin\Model\ConnectEventData + */ + public function getEventData() + { + return $this->container['event_data']; + } + + /** + * Sets event_data + * + * @param \DocuSign\Admin\Model\ConnectEventData $event_data event_data + * + * @return $this + */ + public function setEventData($event_data) + { + $this->container['event_data'] = $event_data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationConnectConfigurationRequest.php b/src/Model/OrganizationConnectConfigurationRequest.php new file mode 100644 index 0000000..5b06c8c --- /dev/null +++ b/src/Model/OrganizationConnectConfigurationRequest.php @@ -0,0 +1,756 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectConfigurationRequest Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectConfigurationRequest implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectConfigurationRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'connect_id' => '?string', + 'configuration_type' => '?string', + 'allow_envelope_publish' => '?string', + 'url_to_publish_to' => '?string', + 'delivery_mode' => '?string', + 'events' => '?string[]', + 'associated_filter_selection' => '?string', + 'group_ids' => '?string[]', + 'account_ids' => '?string[]', + 'user_ids' => '?string[]', + 'name' => '?string', + 'sign_message_with_x509_certificate' => '?string', + 'include_o_auth' => '?string', + 'include_hmac' => '?string', + 'pause_publish' => '?string', + 'event_data' => '\DocuSign\Admin\Model\ConnectEventData' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connect_id' => 'uuid', + 'configuration_type' => null, + 'allow_envelope_publish' => null, + 'url_to_publish_to' => null, + 'delivery_mode' => null, + 'events' => null, + 'associated_filter_selection' => null, + 'group_ids' => null, + 'account_ids' => null, + 'user_ids' => null, + 'name' => null, + 'sign_message_with_x509_certificate' => null, + 'include_o_auth' => null, + 'include_hmac' => null, + 'pause_publish' => null, + 'event_data' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connect_id' => 'connectId', + 'configuration_type' => 'configurationType', + 'allow_envelope_publish' => 'allowEnvelopePublish', + 'url_to_publish_to' => 'urlToPublishTo', + 'delivery_mode' => 'deliveryMode', + 'events' => 'events', + 'associated_filter_selection' => 'associatedFilterSelection', + 'group_ids' => 'groupIds', + 'account_ids' => 'accountIds', + 'user_ids' => 'userIds', + 'name' => 'name', + 'sign_message_with_x509_certificate' => 'signMessageWithX509Certificate', + 'include_o_auth' => 'includeOAuth', + 'include_hmac' => 'includeHMAC', + 'pause_publish' => 'pausePublish', + 'event_data' => 'eventData' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connect_id' => 'setConnectId', + 'configuration_type' => 'setConfigurationType', + 'allow_envelope_publish' => 'setAllowEnvelopePublish', + 'url_to_publish_to' => 'setUrlToPublishTo', + 'delivery_mode' => 'setDeliveryMode', + 'events' => 'setEvents', + 'associated_filter_selection' => 'setAssociatedFilterSelection', + 'group_ids' => 'setGroupIds', + 'account_ids' => 'setAccountIds', + 'user_ids' => 'setUserIds', + 'name' => 'setName', + 'sign_message_with_x509_certificate' => 'setSignMessageWithX509Certificate', + 'include_o_auth' => 'setIncludeOAuth', + 'include_hmac' => 'setIncludeHmac', + 'pause_publish' => 'setPausePublish', + 'event_data' => 'setEventData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connect_id' => 'getConnectId', + 'configuration_type' => 'getConfigurationType', + 'allow_envelope_publish' => 'getAllowEnvelopePublish', + 'url_to_publish_to' => 'getUrlToPublishTo', + 'delivery_mode' => 'getDeliveryMode', + 'events' => 'getEvents', + 'associated_filter_selection' => 'getAssociatedFilterSelection', + 'group_ids' => 'getGroupIds', + 'account_ids' => 'getAccountIds', + 'user_ids' => 'getUserIds', + 'name' => 'getName', + 'sign_message_with_x509_certificate' => 'getSignMessageWithX509Certificate', + 'include_o_auth' => 'getIncludeOAuth', + 'include_hmac' => 'getIncludeHmac', + 'pause_publish' => 'getPausePublish', + 'event_data' => 'getEventData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['connect_id'] = isset($data['connect_id']) ? $data['connect_id'] : null; + $this->container['configuration_type'] = isset($data['configuration_type']) ? $data['configuration_type'] : null; + $this->container['allow_envelope_publish'] = isset($data['allow_envelope_publish']) ? $data['allow_envelope_publish'] : null; + $this->container['url_to_publish_to'] = isset($data['url_to_publish_to']) ? $data['url_to_publish_to'] : null; + $this->container['delivery_mode'] = isset($data['delivery_mode']) ? $data['delivery_mode'] : null; + $this->container['events'] = isset($data['events']) ? $data['events'] : null; + $this->container['associated_filter_selection'] = isset($data['associated_filter_selection']) ? $data['associated_filter_selection'] : null; + $this->container['group_ids'] = isset($data['group_ids']) ? $data['group_ids'] : null; + $this->container['account_ids'] = isset($data['account_ids']) ? $data['account_ids'] : null; + $this->container['user_ids'] = isset($data['user_ids']) ? $data['user_ids'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['sign_message_with_x509_certificate'] = isset($data['sign_message_with_x509_certificate']) ? $data['sign_message_with_x509_certificate'] : null; + $this->container['include_o_auth'] = isset($data['include_o_auth']) ? $data['include_o_auth'] : null; + $this->container['include_hmac'] = isset($data['include_hmac']) ? $data['include_hmac'] : null; + $this->container['pause_publish'] = isset($data['pause_publish']) ? $data['pause_publish'] : null; + $this->container['event_data'] = isset($data['event_data']) ? $data['event_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connect_id + * + * @return ?string + */ + public function getConnectId() + { + return $this->container['connect_id']; + } + + /** + * Sets connect_id + * + * @param ?string $connect_id connect_id + * + * @return $this + */ + public function setConnectId($connect_id) + { + $this->container['connect_id'] = $connect_id; + + return $this; + } + + /** + * Gets configuration_type + * + * @return ?string + */ + public function getConfigurationType() + { + return $this->container['configuration_type']; + } + + /** + * Sets configuration_type + * + * @param ?string $configuration_type configuration_type + * + * @return $this + */ + public function setConfigurationType($configuration_type) + { + $this->container['configuration_type'] = $configuration_type; + + return $this; + } + + /** + * Gets allow_envelope_publish + * + * @return ?string + */ + public function getAllowEnvelopePublish() + { + return $this->container['allow_envelope_publish']; + } + + /** + * Sets allow_envelope_publish + * + * @param ?string $allow_envelope_publish allow_envelope_publish + * + * @return $this + */ + public function setAllowEnvelopePublish($allow_envelope_publish) + { + $this->container['allow_envelope_publish'] = $allow_envelope_publish; + + return $this; + } + + /** + * Gets url_to_publish_to + * + * @return ?string + */ + public function getUrlToPublishTo() + { + return $this->container['url_to_publish_to']; + } + + /** + * Sets url_to_publish_to + * + * @param ?string $url_to_publish_to url_to_publish_to + * + * @return $this + */ + public function setUrlToPublishTo($url_to_publish_to) + { + $this->container['url_to_publish_to'] = $url_to_publish_to; + + return $this; + } + + /** + * Gets delivery_mode + * + * @return ?string + */ + public function getDeliveryMode() + { + return $this->container['delivery_mode']; + } + + /** + * Sets delivery_mode + * + * @param ?string $delivery_mode delivery_mode + * + * @return $this + */ + public function setDeliveryMode($delivery_mode) + { + $this->container['delivery_mode'] = $delivery_mode; + + return $this; + } + + /** + * Gets events + * + * @return ?string[] + */ + public function getEvents() + { + return $this->container['events']; + } + + /** + * Sets events + * + * @param ?string[] $events events + * + * @return $this + */ + public function setEvents($events) + { + $this->container['events'] = $events; + + return $this; + } + + /** + * Gets associated_filter_selection + * + * @return ?string + */ + public function getAssociatedFilterSelection() + { + return $this->container['associated_filter_selection']; + } + + /** + * Sets associated_filter_selection + * + * @param ?string $associated_filter_selection associated_filter_selection + * + * @return $this + */ + public function setAssociatedFilterSelection($associated_filter_selection) + { + $this->container['associated_filter_selection'] = $associated_filter_selection; + + return $this; + } + + /** + * Gets group_ids + * + * @return ?string[] + */ + public function getGroupIds() + { + return $this->container['group_ids']; + } + + /** + * Sets group_ids + * + * @param ?string[] $group_ids group_ids + * + * @return $this + */ + public function setGroupIds($group_ids) + { + $this->container['group_ids'] = $group_ids; + + return $this; + } + + /** + * Gets account_ids + * + * @return ?string[] + */ + public function getAccountIds() + { + return $this->container['account_ids']; + } + + /** + * Sets account_ids + * + * @param ?string[] $account_ids account_ids + * + * @return $this + */ + public function setAccountIds($account_ids) + { + $this->container['account_ids'] = $account_ids; + + return $this; + } + + /** + * Gets user_ids + * + * @return ?string[] + */ + public function getUserIds() + { + return $this->container['user_ids']; + } + + /** + * Sets user_ids + * + * @param ?string[] $user_ids user_ids + * + * @return $this + */ + public function setUserIds($user_ids) + { + $this->container['user_ids'] = $user_ids; + + return $this; + } + + /** + * Gets name + * + * @return ?string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param ?string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets sign_message_with_x509_certificate + * + * @return ?string + */ + public function getSignMessageWithX509Certificate() + { + return $this->container['sign_message_with_x509_certificate']; + } + + /** + * Sets sign_message_with_x509_certificate + * + * @param ?string $sign_message_with_x509_certificate sign_message_with_x509_certificate + * + * @return $this + */ + public function setSignMessageWithX509Certificate($sign_message_with_x509_certificate) + { + $this->container['sign_message_with_x509_certificate'] = $sign_message_with_x509_certificate; + + return $this; + } + + /** + * Gets include_o_auth + * + * @return ?string + */ + public function getIncludeOAuth() + { + return $this->container['include_o_auth']; + } + + /** + * Sets include_o_auth + * + * @param ?string $include_o_auth include_o_auth + * + * @return $this + */ + public function setIncludeOAuth($include_o_auth) + { + $this->container['include_o_auth'] = $include_o_auth; + + return $this; + } + + /** + * Gets include_hmac + * + * @return ?string + */ + public function getIncludeHmac() + { + return $this->container['include_hmac']; + } + + /** + * Sets include_hmac + * + * @param ?string $include_hmac include_hmac + * + * @return $this + */ + public function setIncludeHmac($include_hmac) + { + $this->container['include_hmac'] = $include_hmac; + + return $this; + } + + /** + * Gets pause_publish + * + * @return ?string + */ + public function getPausePublish() + { + return $this->container['pause_publish']; + } + + /** + * Sets pause_publish + * + * @param ?string $pause_publish pause_publish + * + * @return $this + */ + public function setPausePublish($pause_publish) + { + $this->container['pause_publish'] = $pause_publish; + + return $this; + } + + /** + * Gets event_data + * + * @return \DocuSign\Admin\Model\ConnectEventData + */ + public function getEventData() + { + return $this->container['event_data']; + } + + /** + * Sets event_data + * + * @param \DocuSign\Admin\Model\ConnectEventData $event_data event_data + * + * @return $this + */ + public function setEventData($event_data) + { + $this->container['event_data'] = $event_data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationConnectHmacSecretsResponse.php b/src/Model/OrganizationConnectHmacSecretsResponse.php new file mode 100644 index 0000000..344b04d --- /dev/null +++ b/src/Model/OrganizationConnectHmacSecretsResponse.php @@ -0,0 +1,306 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectHmacSecretsResponse Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectHmacSecretsResponse implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectHmacSecretsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'secrets' => '?string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'secrets' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'secrets' => 'secrets' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'secrets' => 'setSecrets' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'secrets' => 'getSecrets' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['secrets'] = isset($data['secrets']) ? $data['secrets'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets secrets + * + * @return ?string[] + */ + public function getSecrets() + { + return $this->container['secrets']; + } + + /** + * Sets secrets + * + * @param ?string[] $secrets secrets + * + * @return $this + */ + public function setSecrets($secrets) + { + $this->container['secrets'] = $secrets; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationConnectOAuthConfiguration.php b/src/Model/OrganizationConnectOAuthConfiguration.php new file mode 100644 index 0000000..bdec302 --- /dev/null +++ b/src/Model/OrganizationConnectOAuthConfiguration.php @@ -0,0 +1,426 @@ + + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ + +/** + * Docusign Admin API + * + * An API for an organization administrator to manage organizations, accounts and users + * + * OpenAPI spec version: v2.1 + * Contact: devcenter@docusign.com + * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Swagger Codegen version: 2.4.21 + */ + +/** + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen + * Do not edit the class manually. + */ + +namespace DocuSign\Admin\Model; + +use \ArrayAccess; +use DocuSign\Admin\ObjectSerializer; + +/** + * OrganizationConnectOAuthConfiguration Class Doc Comment + * + * @category Class + * @package DocuSign\Admin + * @author Swagger Codegen team + * @license The Docusign PHP Client SDK is licensed under the MIT License. + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrganizationConnectOAuthConfiguration implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrganizationConnectOAuthConfiguration'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'authorization_server_url' => '?string', + 'client_id' => '?string', + 'client_secret' => '?string', + 'scope' => '?string', + 'custom_parameter' => 'map[string,?string]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'authorization_server_url' => 'uri', + 'client_id' => null, + 'client_secret' => null, + 'scope' => null, + 'custom_parameter' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'authorization_server_url' => 'authorizationServerUrl', + 'client_id' => 'clientId', + 'client_secret' => 'clientSecret', + 'scope' => 'scope', + 'custom_parameter' => 'customParameter' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'authorization_server_url' => 'setAuthorizationServerUrl', + 'client_id' => 'setClientId', + 'client_secret' => 'setClientSecret', + 'scope' => 'setScope', + 'custom_parameter' => 'setCustomParameter' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'authorization_server_url' => 'getAuthorizationServerUrl', + 'client_id' => 'getClientId', + 'client_secret' => 'getClientSecret', + 'scope' => 'getScope', + 'custom_parameter' => 'getCustomParameter' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->container['authorization_server_url'] = isset($data['authorization_server_url']) ? $data['authorization_server_url'] : null; + $this->container['client_id'] = isset($data['client_id']) ? $data['client_id'] : null; + $this->container['client_secret'] = isset($data['client_secret']) ? $data['client_secret'] : null; + $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; + $this->container['custom_parameter'] = isset($data['custom_parameter']) ? $data['custom_parameter'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets authorization_server_url + * + * @return ?string + */ + public function getAuthorizationServerUrl() + { + return $this->container['authorization_server_url']; + } + + /** + * Sets authorization_server_url + * + * @param ?string $authorization_server_url authorization_server_url + * + * @return $this + */ + public function setAuthorizationServerUrl($authorization_server_url) + { + $this->container['authorization_server_url'] = $authorization_server_url; + + return $this; + } + + /** + * Gets client_id + * + * @return ?string + */ + public function getClientId() + { + return $this->container['client_id']; + } + + /** + * Sets client_id + * + * @param ?string $client_id client_id + * + * @return $this + */ + public function setClientId($client_id) + { + $this->container['client_id'] = $client_id; + + return $this; + } + + /** + * Gets client_secret + * + * @return ?string + */ + public function getClientSecret() + { + return $this->container['client_secret']; + } + + /** + * Sets client_secret + * + * @param ?string $client_secret client_secret + * + * @return $this + */ + public function setClientSecret($client_secret) + { + $this->container['client_secret'] = $client_secret; + + return $this; + } + + /** + * Gets scope + * + * @return ?string + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param ?string $scope scope + * + * @return $this + */ + public function setScope($scope) + { + $this->container['scope'] = $scope; + + return $this; + } + + /** + * Gets custom_parameter + * + * @return map[string,?string] + */ + public function getCustomParameter() + { + return $this->container['custom_parameter']; + } + + /** + * Sets custom_parameter + * + * @param map[string,?string] $custom_parameter custom_parameter + * + * @return $this + */ + public function setCustomParameter($custom_parameter) + { + $this->container['custom_parameter'] = $custom_parameter; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + diff --git a/src/Model/OrganizationExportAccount.php b/src/Model/OrganizationExportAccount.php index 098a356..6badcc3 100644 --- a/src/Model/OrganizationExportAccount.php +++ b/src/Model/OrganizationExportAccount.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; } diff --git a/src/Model/OrganizationExportDomain.php b/src/Model/OrganizationExportDomain.php index d1a3de6..8181303 100644 --- a/src/Model/OrganizationExportDomain.php +++ b/src/Model/OrganizationExportDomain.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; } diff --git a/src/Model/OrganizationExportRequest.php b/src/Model/OrganizationExportRequest.php index e05a50e..6f7ebf6 100644 --- a/src/Model/OrganizationExportRequest.php +++ b/src/Model/OrganizationExportRequest.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; diff --git a/src/Model/OrganizationExportRequestorResponse.php b/src/Model/OrganizationExportRequestorResponse.php index 7e3fad6..1ed8c6d 100644 --- a/src/Model/OrganizationExportRequestorResponse.php +++ b/src/Model/OrganizationExportRequestorResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; diff --git a/src/Model/OrganizationExportResponse.php b/src/Model/OrganizationExportResponse.php index d7102cf..bc13ff0 100644 --- a/src/Model/OrganizationExportResponse.php +++ b/src/Model/OrganizationExportResponse.php @@ -252,7 +252,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; diff --git a/src/Model/OrganizationExportTaskResponse.php b/src/Model/OrganizationExportTaskResponse.php index f9e5909..b5ea4ad 100644 --- a/src/Model/OrganizationExportTaskResponse.php +++ b/src/Model/OrganizationExportTaskResponse.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/OrganizationExportsResponse.php b/src/Model/OrganizationExportsResponse.php index f572fc3..2be1971 100644 --- a/src/Model/OrganizationExportsResponse.php +++ b/src/Model/OrganizationExportsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['exports'] = isset($data['exports']) ? $data['exports'] : null; } diff --git a/src/Model/OrganizationImportResponse.php b/src/Model/OrganizationImportResponse.php index 645a155..b7e6edb 100644 --- a/src/Model/OrganizationImportResponse.php +++ b/src/Model/OrganizationImportResponse.php @@ -302,7 +302,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; diff --git a/src/Model/OrganizationImportResponseErrorRollup.php b/src/Model/OrganizationImportResponseErrorRollup.php index 423901c..09f6a6c 100644 --- a/src/Model/OrganizationImportResponseErrorRollup.php +++ b/src/Model/OrganizationImportResponseErrorRollup.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error_type'] = isset($data['error_type']) ? $data['error_type'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; diff --git a/src/Model/OrganizationImportResponseRequestor.php b/src/Model/OrganizationImportResponseRequestor.php index 806db33..3c4cf81 100644 --- a/src/Model/OrganizationImportResponseRequestor.php +++ b/src/Model/OrganizationImportResponseRequestor.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; diff --git a/src/Model/OrganizationImportResponseWarningRollup.php b/src/Model/OrganizationImportResponseWarningRollup.php index dc0e5b9..b097c6b 100644 --- a/src/Model/OrganizationImportResponseWarningRollup.php +++ b/src/Model/OrganizationImportResponseWarningRollup.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['warning_type'] = isset($data['warning_type']) ? $data['warning_type'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; diff --git a/src/Model/OrganizationImportsResponse.php b/src/Model/OrganizationImportsResponse.php index 809ecc5..6e47f4b 100644 --- a/src/Model/OrganizationImportsResponse.php +++ b/src/Model/OrganizationImportsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['imports'] = isset($data['imports']) ? $data['imports'] : null; } diff --git a/src/Model/OrganizationResponse.php b/src/Model/OrganizationResponse.php index cd6e962..82b912c 100644 --- a/src/Model/OrganizationResponse.php +++ b/src/Model/OrganizationResponse.php @@ -242,7 +242,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/OrganizationSalesforceAccountManagersResponse.php b/src/Model/OrganizationSalesforceAccountManagersResponse.php index 30259fa..0f54019 100644 --- a/src/Model/OrganizationSalesforceAccountManagersResponse.php +++ b/src/Model/OrganizationSalesforceAccountManagersResponse.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['account_name'] = isset($data['account_name']) ? $data['account_name'] : null; diff --git a/src/Model/OrganizationSimpleIdObject.php b/src/Model/OrganizationSimpleIdObject.php index 899aa33..bc859e1 100644 --- a/src/Model/OrganizationSimpleIdObject.php +++ b/src/Model/OrganizationSimpleIdObject.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; } diff --git a/src/Model/OrganizationSubscriptionResponse.php b/src/Model/OrganizationSubscriptionResponse.php index 5e1dae1..63ffe55 100644 --- a/src/Model/OrganizationSubscriptionResponse.php +++ b/src/Model/OrganizationSubscriptionResponse.php @@ -212,7 +212,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['plan_id'] = isset($data['plan_id']) ? $data['plan_id'] : null; $this->container['plan_name'] = isset($data['plan_name']) ? $data['plan_name'] : null; diff --git a/src/Model/OrganizationUserResponse.php b/src/Model/OrganizationUserResponse.php index 47e698e..1eb5a86 100644 --- a/src/Model/OrganizationUserResponse.php +++ b/src/Model/OrganizationUserResponse.php @@ -67,9 +67,16 @@ class OrganizationUserResponse implements ModelInterface, ArrayAccess 'membership_status' => '?string', 'email' => '?string', 'created_on' => '\DateTime', + 'closed_on' => '\DateTime', 'membership_created_on' => '\DateTime', + 'membership_closed_on' => '\DateTime', 'ds_groups' => '\DocuSign\Admin\Model\DSGroupResponse[]', - 'membership_id' => '?string' + 'membership_id' => '?string', + 'is_membership_managed_by_scim' => '?bool', + 'is_managed_by_scim' => '?bool', + 'license_type' => '?string', + 'subscription_id' => '?string', + 'plan_name' => '?string' ]; /** @@ -86,9 +93,16 @@ class OrganizationUserResponse implements ModelInterface, ArrayAccess 'membership_status' => null, 'email' => null, 'created_on' => 'date-time', + 'closed_on' => 'date-time', 'membership_created_on' => 'date-time', + 'membership_closed_on' => 'date-time', 'ds_groups' => null, - 'membership_id' => 'uuid' + 'membership_id' => 'uuid', + 'is_membership_managed_by_scim' => null, + 'is_managed_by_scim' => null, + 'license_type' => null, + 'subscription_id' => null, + 'plan_name' => null ]; /** @@ -126,9 +140,16 @@ public static function swaggerFormats() 'membership_status' => 'membership_status', 'email' => 'email', 'created_on' => 'created_on', + 'closed_on' => 'closed_on', 'membership_created_on' => 'membership_created_on', + 'membership_closed_on' => 'membership_closed_on', 'ds_groups' => 'ds_groups', - 'membership_id' => 'membership_id' + 'membership_id' => 'membership_id', + 'is_membership_managed_by_scim' => 'is_membership_managed_by_scim', + 'is_managed_by_scim' => 'is_managed_by_scim', + 'license_type' => 'license_type', + 'subscription_id' => 'subscription_id', + 'plan_name' => 'plan_name' ]; /** @@ -145,9 +166,16 @@ public static function swaggerFormats() 'membership_status' => 'setMembershipStatus', 'email' => 'setEmail', 'created_on' => 'setCreatedOn', + 'closed_on' => 'setClosedOn', 'membership_created_on' => 'setMembershipCreatedOn', + 'membership_closed_on' => 'setMembershipClosedOn', 'ds_groups' => 'setDsGroups', - 'membership_id' => 'setMembershipId' + 'membership_id' => 'setMembershipId', + 'is_membership_managed_by_scim' => 'setIsMembershipManagedByScim', + 'is_managed_by_scim' => 'setIsManagedByScim', + 'license_type' => 'setLicenseType', + 'subscription_id' => 'setSubscriptionId', + 'plan_name' => 'setPlanName' ]; /** @@ -164,9 +192,16 @@ public static function swaggerFormats() 'membership_status' => 'getMembershipStatus', 'email' => 'getEmail', 'created_on' => 'getCreatedOn', + 'closed_on' => 'getClosedOn', 'membership_created_on' => 'getMembershipCreatedOn', + 'membership_closed_on' => 'getMembershipClosedOn', 'ds_groups' => 'getDsGroups', - 'membership_id' => 'getMembershipId' + 'membership_id' => 'getMembershipId', + 'is_membership_managed_by_scim' => 'getIsMembershipManagedByScim', + 'is_managed_by_scim' => 'getIsManagedByScim', + 'license_type' => 'getLicenseType', + 'subscription_id' => 'getSubscriptionId', + 'plan_name' => 'getPlanName' ]; /** @@ -227,7 +262,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['user_name'] = isset($data['user_name']) ? $data['user_name'] : null; @@ -237,9 +272,16 @@ public function __construct(array $data = null) $this->container['membership_status'] = isset($data['membership_status']) ? $data['membership_status'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['closed_on'] = isset($data['closed_on']) ? $data['closed_on'] : null; $this->container['membership_created_on'] = isset($data['membership_created_on']) ? $data['membership_created_on'] : null; + $this->container['membership_closed_on'] = isset($data['membership_closed_on']) ? $data['membership_closed_on'] : null; $this->container['ds_groups'] = isset($data['ds_groups']) ? $data['ds_groups'] : null; $this->container['membership_id'] = isset($data['membership_id']) ? $data['membership_id'] : null; + $this->container['is_membership_managed_by_scim'] = isset($data['is_membership_managed_by_scim']) ? $data['is_membership_managed_by_scim'] : null; + $this->container['is_managed_by_scim'] = isset($data['is_managed_by_scim']) ? $data['is_managed_by_scim'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; + $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; + $this->container['plan_name'] = isset($data['plan_name']) ? $data['plan_name'] : null; } /** @@ -458,6 +500,30 @@ public function setCreatedOn($created_on) return $this; } + /** + * Gets closed_on + * + * @return \DateTime + */ + public function getClosedOn() + { + return $this->container['closed_on']; + } + + /** + * Sets closed_on + * + * @param \DateTime $closed_on closed_on + * + * @return $this + */ + public function setClosedOn($closed_on) + { + $this->container['closed_on'] = $closed_on; + + return $this; + } + /** * Gets membership_created_on * @@ -482,6 +548,30 @@ public function setMembershipCreatedOn($membership_created_on) return $this; } + /** + * Gets membership_closed_on + * + * @return \DateTime + */ + public function getMembershipClosedOn() + { + return $this->container['membership_closed_on']; + } + + /** + * Sets membership_closed_on + * + * @param \DateTime $membership_closed_on membership_closed_on + * + * @return $this + */ + public function setMembershipClosedOn($membership_closed_on) + { + $this->container['membership_closed_on'] = $membership_closed_on; + + return $this; + } + /** * Gets ds_groups * @@ -529,6 +619,126 @@ public function setMembershipId($membership_id) return $this; } + + /** + * Gets is_membership_managed_by_scim + * + * @return ?bool + */ + public function getIsMembershipManagedByScim() + { + return $this->container['is_membership_managed_by_scim']; + } + + /** + * Sets is_membership_managed_by_scim + * + * @param ?bool $is_membership_managed_by_scim is_membership_managed_by_scim + * + * @return $this + */ + public function setIsMembershipManagedByScim($is_membership_managed_by_scim) + { + $this->container['is_membership_managed_by_scim'] = $is_membership_managed_by_scim; + + return $this; + } + + /** + * Gets is_managed_by_scim + * + * @return ?bool + */ + public function getIsManagedByScim() + { + return $this->container['is_managed_by_scim']; + } + + /** + * Sets is_managed_by_scim + * + * @param ?bool $is_managed_by_scim is_managed_by_scim + * + * @return $this + */ + public function setIsManagedByScim($is_managed_by_scim) + { + $this->container['is_managed_by_scim'] = $is_managed_by_scim; + + return $this; + } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } + + /** + * Gets subscription_id + * + * @return ?string + */ + public function getSubscriptionId() + { + return $this->container['subscription_id']; + } + + /** + * Sets subscription_id + * + * @param ?string $subscription_id subscription_id + * + * @return $this + */ + public function setSubscriptionId($subscription_id) + { + $this->container['subscription_id'] = $subscription_id; + + return $this; + } + + /** + * Gets plan_name + * + * @return ?string + */ + public function getPlanName() + { + return $this->container['plan_name']; + } + + /** + * Sets plan_name + * + * @param ?string $plan_name plan_name + * + * @return $this + */ + public function setPlanName($plan_name) + { + $this->container['plan_name'] = $plan_name; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/OrganizationUsersResponse.php b/src/Model/OrganizationUsersResponse.php index 0185a91..be325d5 100644 --- a/src/Model/OrganizationUsersResponse.php +++ b/src/Model/OrganizationUsersResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['users'] = isset($data['users']) ? $data['users'] : null; $this->container['paging'] = isset($data['paging']) ? $data['paging'] : null; diff --git a/src/Model/OrganizationsResponse.php b/src/Model/OrganizationsResponse.php index 6683e47..9bda564 100644 --- a/src/Model/OrganizationsResponse.php +++ b/src/Model/OrganizationsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['organizations'] = isset($data['organizations']) ? $data['organizations'] : null; } diff --git a/src/Model/PagingResponseProperties.php b/src/Model/PagingResponseProperties.php index c07a9f1..c8f767d 100644 --- a/src/Model/PagingResponseProperties.php +++ b/src/Model/PagingResponseProperties.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['result_set_size'] = isset($data['result_set_size']) ? $data['result_set_size'] : null; $this->container['result_set_start_position'] = isset($data['result_set_start_position']) ? $data['result_set_start_position'] : null; diff --git a/src/Model/PermissionProfileRequest.php b/src/Model/PermissionProfileRequest.php index 9c2ec83..4c7a910 100644 --- a/src/Model/PermissionProfileRequest.php +++ b/src/Model/PermissionProfileRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/PermissionProfileResponse.php b/src/Model/PermissionProfileResponse.php index d3d7148..8d98957 100644 --- a/src/Model/PermissionProfileResponse.php +++ b/src/Model/PermissionProfileResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/PermissionProfileResponse21.php b/src/Model/PermissionProfileResponse21.php index b3e3887..66123bd 100644 --- a/src/Model/PermissionProfileResponse21.php +++ b/src/Model/PermissionProfileResponse21.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['permission_profile_id'] = isset($data['permission_profile_id']) ? $data['permission_profile_id'] : null; $this->container['permission_profile_name'] = isset($data['permission_profile_name']) ? $data['permission_profile_name'] : null; diff --git a/src/Model/PermissionsResponse.php b/src/Model/PermissionsResponse.php index d985a78..82c1219 100644 --- a/src/Model/PermissionsResponse.php +++ b/src/Model/PermissionsResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['permissions'] = isset($data['permissions']) ? $data['permissions'] : null; } diff --git a/src/Model/ProductPermissionProfileRequest.php b/src/Model/ProductPermissionProfileRequest.php index 373b2b9..4457bf8 100644 --- a/src/Model/ProductPermissionProfileRequest.php +++ b/src/Model/ProductPermissionProfileRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null; $this->container['permission_profile_id'] = isset($data['permission_profile_id']) ? $data['permission_profile_id'] : null; diff --git a/src/Model/ProductPermissionProfileResponse.php b/src/Model/ProductPermissionProfileResponse.php index 2fe4f20..f15fece 100644 --- a/src/Model/ProductPermissionProfileResponse.php +++ b/src/Model/ProductPermissionProfileResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['product_id'] = isset($data['product_id']) ? $data['product_id'] : null; $this->container['product_name'] = isset($data['product_name']) ? $data['product_name'] : null; diff --git a/src/Model/ProductPermissionProfilesRequest.php b/src/Model/ProductPermissionProfilesRequest.php index 37d3faa..357b8d3 100644 --- a/src/Model/ProductPermissionProfilesRequest.php +++ b/src/Model/ProductPermissionProfilesRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['product_permission_profiles'] = isset($data['product_permission_profiles']) ? $data['product_permission_profiles'] : null; } diff --git a/src/Model/ProductPermissionProfilesResponse.php b/src/Model/ProductPermissionProfilesResponse.php index e1cf04c..6fe1aac 100644 --- a/src/Model/ProductPermissionProfilesResponse.php +++ b/src/Model/ProductPermissionProfilesResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['product_permission_profiles'] = isset($data['product_permission_profiles']) ? $data['product_permission_profiles'] : null; } diff --git a/src/Model/RemoveDSGroupUsersResponse.php b/src/Model/RemoveDSGroupUsersResponse.php index c6dd7ba..98232d9 100644 --- a/src/Model/RemoveDSGroupUsersResponse.php +++ b/src/Model/RemoveDSGroupUsersResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['is_success'] = isset($data['is_success']) ? $data['is_success'] : null; $this->container['failed_users'] = isset($data['failed_users']) ? $data['failed_users'] : null; diff --git a/src/Model/RemoveUserProductsResponse.php b/src/Model/RemoveUserProductsResponse.php index 162da14..b6aa7a8 100644 --- a/src/Model/RemoveUserProductsResponse.php +++ b/src/Model/RemoveUserProductsResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['is_success'] = isset($data['is_success']) ? $data['is_success'] : null; $this->container['user_email'] = isset($data['user_email']) ? $data['user_email'] : null; diff --git a/src/Model/RequiredAttributeMappingResponse.php b/src/Model/RequiredAttributeMappingResponse.php index e42164d..cb2d217 100644 --- a/src/Model/RequiredAttributeMappingResponse.php +++ b/src/Model/RequiredAttributeMappingResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['required_attribute_id'] = isset($data['required_attribute_id']) ? $data['required_attribute_id'] : null; $this->container['required_attribute_name'] = isset($data['required_attribute_name']) ? $data['required_attribute_name'] : null; diff --git a/src/Model/Saml2IdentityProviderResponse.php b/src/Model/Saml2IdentityProviderResponse.php index 69c2a79..75c1d6f 100644 --- a/src/Model/Saml2IdentityProviderResponse.php +++ b/src/Model/Saml2IdentityProviderResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['issuer'] = isset($data['issuer']) ? $data['issuer'] : null; $this->container['settings'] = isset($data['settings']) ? $data['settings'] : null; diff --git a/src/Model/SettingResponse.php b/src/Model/SettingResponse.php index c34f20d..0e04667 100644 --- a/src/Model/SettingResponse.php +++ b/src/Model/SettingResponse.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['key'] = isset($data['key']) ? $data['key'] : null; $this->container['value'] = isset($data['value']) ? $data['value'] : null; diff --git a/src/Model/SubAccountCreateRequest.php b/src/Model/SubAccountCreateRequest.php index 5730398..d45aef1 100644 --- a/src/Model/SubAccountCreateRequest.php +++ b/src/Model/SubAccountCreateRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['subscription_details'] = isset($data['subscription_details']) ? $data['subscription_details'] : null; $this->container['target_account'] = isset($data['target_account']) ? $data['target_account'] : null; diff --git a/src/Model/SubAccountCreateRequestSubAccountCreationSubscription.php b/src/Model/SubAccountCreateRequestSubAccountCreationSubscription.php index 6f58791..a33702e 100644 --- a/src/Model/SubAccountCreateRequestSubAccountCreationSubscription.php +++ b/src/Model/SubAccountCreateRequestSubAccountCreationSubscription.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['plan_id'] = isset($data['plan_id']) ? $data['plan_id'] : null; diff --git a/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountAdmin.php b/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountAdmin.php index a683c8f..534871a 100644 --- a/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountAdmin.php +++ b/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountAdmin.php @@ -238,7 +238,7 @@ public function getLocaleAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['address'] = isset($data['address']) ? $data['address'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; diff --git a/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountDetails.php b/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountDetails.php index 4103cd8..34b5814 100644 --- a/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountDetails.php +++ b/src/Model/SubAccountCreateRequestSubAccountCreationTargetAccountDetails.php @@ -207,7 +207,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['address'] = isset($data['address']) ? $data['address'] : null; diff --git a/src/Model/SubAccountCreateSubscriptionDetails.php b/src/Model/SubAccountCreateSubscriptionDetails.php index 9316fa4..136c7f7 100644 --- a/src/Model/SubAccountCreateSubscriptionDetails.php +++ b/src/Model/SubAccountCreateSubscriptionDetails.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['plan_id'] = isset($data['plan_id']) ? $data['plan_id'] : null; diff --git a/src/Model/SubAccountCreateSubscriptionModuleDetails.php b/src/Model/SubAccountCreateSubscriptionModuleDetails.php index 0f3e05d..aa33e05 100644 --- a/src/Model/SubAccountCreateSubscriptionModuleDetails.php +++ b/src/Model/SubAccountCreateSubscriptionModuleDetails.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['module_id'] = isset($data['module_id']) ? $data['module_id'] : null; $this->container['module_name'] = isset($data['module_name']) ? $data['module_name'] : null; diff --git a/src/Model/SubAccountCreateTargetAccount.php b/src/Model/SubAccountCreateTargetAccount.php index dce42e7..24dbc65 100644 --- a/src/Model/SubAccountCreateTargetAccount.php +++ b/src/Model/SubAccountCreateTargetAccount.php @@ -202,7 +202,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/SubAccountCreateTargetAccountAdmin.php b/src/Model/SubAccountCreateTargetAccountAdmin.php index 803131a..246ecf6 100644 --- a/src/Model/SubAccountCreateTargetAccountAdmin.php +++ b/src/Model/SubAccountCreateTargetAccountAdmin.php @@ -233,7 +233,7 @@ public function getLocaleAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; diff --git a/src/Model/SubAccountCreateWorker.php b/src/Model/SubAccountCreateWorker.php index f21a62c..e6659f2 100644 --- a/src/Model/SubAccountCreateWorker.php +++ b/src/Model/SubAccountCreateWorker.php @@ -289,7 +289,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['target_account'] = isset($data['target_account']) ? $data['target_account'] : null; $this->container['subscription_details'] = isset($data['subscription_details']) ? $data['subscription_details'] : null; diff --git a/src/Model/SubAccountCreateWorkerResponse.php b/src/Model/SubAccountCreateWorkerResponse.php index 5253a40..0d982b8 100644 --- a/src/Model/SubAccountCreateWorkerResponse.php +++ b/src/Model/SubAccountCreateWorkerResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_works'] = isset($data['asset_group_works']) ? $data['asset_group_works'] : null; } diff --git a/src/Model/SubAccountErrorDetails.php b/src/Model/SubAccountErrorDetails.php index eb8cf45..5e69726 100644 --- a/src/Model/SubAccountErrorDetails.php +++ b/src/Model/SubAccountErrorDetails.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error'] = isset($data['error']) ? $data['error'] : null; $this->container['error_description'] = isset($data['error_description']) ? $data['error_description'] : null; diff --git a/src/Model/SubscriptionPlanItemResponse.php b/src/Model/SubscriptionPlanItemResponse.php index 161ff9f..333489c 100644 --- a/src/Model/SubscriptionPlanItemResponse.php +++ b/src/Model/SubscriptionPlanItemResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['plan_item_id'] = isset($data['plan_item_id']) ? $data['plan_item_id'] : null; $this->container['plan_item_name'] = isset($data['plan_item_name']) ? $data['plan_item_name'] : null; diff --git a/src/Model/SubscriptionProvisionModelAccountCreateAccountAdmin.php b/src/Model/SubscriptionProvisionModelAccountCreateAccountAdmin.php index 10062dd..a4f1fb6 100644 --- a/src/Model/SubscriptionProvisionModelAccountCreateAccountAdmin.php +++ b/src/Model/SubscriptionProvisionModelAccountCreateAccountAdmin.php @@ -238,7 +238,7 @@ public function getLocaleAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; diff --git a/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountDetails.php b/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountDetails.php index 44b710e..470f9b5 100644 --- a/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountDetails.php +++ b/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountDetails.php @@ -222,7 +222,7 @@ public function getBillingProfileTypeAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null; diff --git a/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountSubscriptionDetails.php b/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountSubscriptionDetails.php index 2af6a36..58c3753 100644 --- a/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountSubscriptionDetails.php +++ b/src/Model/SubscriptionProvisionModelAccountCreateCreateAccountSubscriptionDetails.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; $this->container['plan_id'] = isset($data['plan_id']) ? $data['plan_id'] : null; diff --git a/src/Model/SubscriptionProvisionModelAccountCreateCreateSubAccountDetails.php b/src/Model/SubscriptionProvisionModelAccountCreateCreateSubAccountDetails.php index bb49597..d45d5ac 100644 --- a/src/Model/SubscriptionProvisionModelAccountCreateCreateSubAccountDetails.php +++ b/src/Model/SubscriptionProvisionModelAccountCreateCreateSubAccountDetails.php @@ -227,7 +227,7 @@ public function getBillingProfileTypeAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['subscription_details'] = isset($data['subscription_details']) ? $data['subscription_details'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; diff --git a/src/Model/SubscriptionProvisionModelAssetGroupWork.php b/src/Model/SubscriptionProvisionModelAssetGroupWork.php index 3001563..d7da76c 100644 --- a/src/Model/SubscriptionProvisionModelAssetGroupWork.php +++ b/src/Model/SubscriptionProvisionModelAssetGroupWork.php @@ -420,7 +420,7 @@ public function getUpdatedByTypeAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_work_id'] = isset($data['asset_group_work_id']) ? $data['asset_group_work_id'] : null; $this->container['asset_group_id'] = isset($data['asset_group_id']) ? $data['asset_group_id'] : null; diff --git a/src/Model/SubscriptionProvisionModelAssetGroupWorkResult.php b/src/Model/SubscriptionProvisionModelAssetGroupWorkResult.php index 2294c49..b0af68a 100644 --- a/src/Model/SubscriptionProvisionModelAssetGroupWorkResult.php +++ b/src/Model/SubscriptionProvisionModelAssetGroupWorkResult.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['asset_group_work'] = isset($data['asset_group_work']) ? $data['asset_group_work'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; diff --git a/src/Model/SubscriptionProvisionModelChangeEvent.php b/src/Model/SubscriptionProvisionModelChangeEvent.php index 871b4d6..9a70cab 100644 --- a/src/Model/SubscriptionProvisionModelChangeEvent.php +++ b/src/Model/SubscriptionProvisionModelChangeEvent.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['event_date'] = isset($data['event_date']) ? $data['event_date'] : null; $this->container['action'] = isset($data['action']) ? $data['action'] : null; diff --git a/src/Model/SubscriptionProvisionModelServiceErrorDetails.php b/src/Model/SubscriptionProvisionModelServiceErrorDetails.php index a5e25c9..39fc4e3 100644 --- a/src/Model/SubscriptionProvisionModelServiceErrorDetails.php +++ b/src/Model/SubscriptionProvisionModelServiceErrorDetails.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['public_error_code'] = isset($data['public_error_code']) ? $data['public_error_code'] : null; diff --git a/src/Model/UpdateMembershipRequest.php b/src/Model/UpdateMembershipRequest.php index 916949a..b55cb03 100644 --- a/src/Model/UpdateMembershipRequest.php +++ b/src/Model/UpdateMembershipRequest.php @@ -65,7 +65,8 @@ class UpdateMembershipRequest implements ModelInterface, ArrayAccess 'company_name' => '?string', 'job_title' => '?string', 'send_activation' => '?bool', - 'access_code' => '?string' + 'access_code' => '?string', + 'license_type' => '?string' ]; /** @@ -80,7 +81,8 @@ class UpdateMembershipRequest implements ModelInterface, ArrayAccess 'company_name' => null, 'job_title' => null, 'send_activation' => null, - 'access_code' => null + 'access_code' => null, + 'license_type' => null ]; /** @@ -116,7 +118,8 @@ public static function swaggerFormats() 'company_name' => 'company_name', 'job_title' => 'job_title', 'send_activation' => 'send_activation', - 'access_code' => 'access_code' + 'access_code' => 'access_code', + 'license_type' => 'license_type' ]; /** @@ -131,7 +134,8 @@ public static function swaggerFormats() 'company_name' => 'setCompanyName', 'job_title' => 'setJobTitle', 'send_activation' => 'setSendActivation', - 'access_code' => 'setAccessCode' + 'access_code' => 'setAccessCode', + 'license_type' => 'setLicenseType' ]; /** @@ -146,7 +150,8 @@ public static function swaggerFormats() 'company_name' => 'getCompanyName', 'job_title' => 'getJobTitle', 'send_activation' => 'getSendActivation', - 'access_code' => 'getAccessCode' + 'access_code' => 'getAccessCode', + 'license_type' => 'getLicenseType' ]; /** @@ -207,7 +212,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; $this->container['permission_profile'] = isset($data['permission_profile']) ? $data['permission_profile'] : null; @@ -216,6 +221,7 @@ public function __construct(array $data = null) $this->container['job_title'] = isset($data['job_title']) ? $data['job_title'] : null; $this->container['send_activation'] = isset($data['send_activation']) ? $data['send_activation'] : null; $this->container['access_code'] = isset($data['access_code']) ? $data['access_code'] : null; + $this->container['license_type'] = isset($data['license_type']) ? $data['license_type'] : null; } /** @@ -412,6 +418,30 @@ public function setAccessCode($access_code) return $this; } + + /** + * Gets license_type + * + * @return ?string + */ + public function getLicenseType() + { + return $this->container['license_type']; + } + + /** + * Sets license_type + * + * @param ?string $license_type license_type + * + * @return $this + */ + public function setLicenseType($license_type) + { + $this->container['license_type'] = $license_type; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/UpdateResponse.php b/src/Model/UpdateResponse.php index 4400f32..479c971 100644 --- a/src/Model/UpdateResponse.php +++ b/src/Model/UpdateResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['status'] = isset($data['status']) ? $data['status'] : null; } diff --git a/src/Model/UpdateUserEmailRequest.php b/src/Model/UpdateUserEmailRequest.php index ae41faf..898022a 100644 --- a/src/Model/UpdateUserEmailRequest.php +++ b/src/Model/UpdateUserEmailRequest.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/UpdateUserRequest.php b/src/Model/UpdateUserRequest.php index 34833de..58d602e 100644 --- a/src/Model/UpdateUserRequest.php +++ b/src/Model/UpdateUserRequest.php @@ -237,7 +237,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/UpdateUsersEmailRequest.php b/src/Model/UpdateUsersEmailRequest.php index 27f493f..870bdeb 100644 --- a/src/Model/UpdateUsersEmailRequest.php +++ b/src/Model/UpdateUsersEmailRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['users'] = isset($data['users']) ? $data['users'] : null; } diff --git a/src/Model/UpdateUsersRequest.php b/src/Model/UpdateUsersRequest.php index d9aba6a..aec571f 100644 --- a/src/Model/UpdateUsersRequest.php +++ b/src/Model/UpdateUsersRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['users'] = isset($data['users']) ? $data['users'] : null; } diff --git a/src/Model/UserDrilldownResponse.php b/src/Model/UserDrilldownResponse.php index 1409f17..63b97ed 100644 --- a/src/Model/UserDrilldownResponse.php +++ b/src/Model/UserDrilldownResponse.php @@ -76,7 +76,11 @@ class UserDrilldownResponse implements ModelInterface, ArrayAccess 'last_login' => '\DateTime', 'memberships' => '\DocuSign\Admin\Model\MembershipResponse[]', 'identities' => '\DocuSign\Admin\Model\UserIdentityResponse[]', - 'device_verification_enabled' => '?bool' + 'device_verification_enabled' => '?bool', + 'require_two_step_verification' => '?bool', + 'allow_two_step_verification_snooze' => '?bool', + 'allow_extend_org_admin_rights_to_self' => '?bool', + 'is_managed_by_scim' => '?bool' ]; /** @@ -102,7 +106,11 @@ class UserDrilldownResponse implements ModelInterface, ArrayAccess 'last_login' => 'date-time', 'memberships' => null, 'identities' => null, - 'device_verification_enabled' => null + 'device_verification_enabled' => null, + 'require_two_step_verification' => null, + 'allow_two_step_verification_snooze' => null, + 'allow_extend_org_admin_rights_to_self' => null, + 'is_managed_by_scim' => null ]; /** @@ -149,7 +157,11 @@ public static function swaggerFormats() 'last_login' => 'last_login', 'memberships' => 'memberships', 'identities' => 'identities', - 'device_verification_enabled' => 'device_verification_enabled' + 'device_verification_enabled' => 'device_verification_enabled', + 'require_two_step_verification' => 'require_two_step_verification', + 'allow_two_step_verification_snooze' => 'allow_two_step_verification_snooze', + 'allow_extend_org_admin_rights_to_self' => 'allow_extend_org_admin_rights_to_self', + 'is_managed_by_scim' => 'is_managed_by_scim' ]; /** @@ -175,7 +187,11 @@ public static function swaggerFormats() 'last_login' => 'setLastLogin', 'memberships' => 'setMemberships', 'identities' => 'setIdentities', - 'device_verification_enabled' => 'setDeviceVerificationEnabled' + 'device_verification_enabled' => 'setDeviceVerificationEnabled', + 'require_two_step_verification' => 'setRequireTwoStepVerification', + 'allow_two_step_verification_snooze' => 'setAllowTwoStepVerificationSnooze', + 'allow_extend_org_admin_rights_to_self' => 'setAllowExtendOrgAdminRightsToSelf', + 'is_managed_by_scim' => 'setIsManagedByScim' ]; /** @@ -201,7 +217,11 @@ public static function swaggerFormats() 'last_login' => 'getLastLogin', 'memberships' => 'getMemberships', 'identities' => 'getIdentities', - 'device_verification_enabled' => 'getDeviceVerificationEnabled' + 'device_verification_enabled' => 'getDeviceVerificationEnabled', + 'require_two_step_verification' => 'getRequireTwoStepVerification', + 'allow_two_step_verification_snooze' => 'getAllowTwoStepVerificationSnooze', + 'allow_extend_org_admin_rights_to_self' => 'getAllowExtendOrgAdminRightsToSelf', + 'is_managed_by_scim' => 'getIsManagedByScim' ]; /** @@ -262,7 +282,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; @@ -282,6 +302,10 @@ public function __construct(array $data = null) $this->container['memberships'] = isset($data['memberships']) ? $data['memberships'] : null; $this->container['identities'] = isset($data['identities']) ? $data['identities'] : null; $this->container['device_verification_enabled'] = isset($data['device_verification_enabled']) ? $data['device_verification_enabled'] : null; + $this->container['require_two_step_verification'] = isset($data['require_two_step_verification']) ? $data['require_two_step_verification'] : null; + $this->container['allow_two_step_verification_snooze'] = isset($data['allow_two_step_verification_snooze']) ? $data['allow_two_step_verification_snooze'] : null; + $this->container['allow_extend_org_admin_rights_to_self'] = isset($data['allow_extend_org_admin_rights_to_self']) ? $data['allow_extend_org_admin_rights_to_self'] : null; + $this->container['is_managed_by_scim'] = isset($data['is_managed_by_scim']) ? $data['is_managed_by_scim'] : null; } /** @@ -739,6 +763,102 @@ public function setDeviceVerificationEnabled($device_verification_enabled) return $this; } + + /** + * Gets require_two_step_verification + * + * @return ?bool + */ + public function getRequireTwoStepVerification() + { + return $this->container['require_two_step_verification']; + } + + /** + * Sets require_two_step_verification + * + * @param ?bool $require_two_step_verification require_two_step_verification + * + * @return $this + */ + public function setRequireTwoStepVerification($require_two_step_verification) + { + $this->container['require_two_step_verification'] = $require_two_step_verification; + + return $this; + } + + /** + * Gets allow_two_step_verification_snooze + * + * @return ?bool + */ + public function getAllowTwoStepVerificationSnooze() + { + return $this->container['allow_two_step_verification_snooze']; + } + + /** + * Sets allow_two_step_verification_snooze + * + * @param ?bool $allow_two_step_verification_snooze allow_two_step_verification_snooze + * + * @return $this + */ + public function setAllowTwoStepVerificationSnooze($allow_two_step_verification_snooze) + { + $this->container['allow_two_step_verification_snooze'] = $allow_two_step_verification_snooze; + + return $this; + } + + /** + * Gets allow_extend_org_admin_rights_to_self + * + * @return ?bool + */ + public function getAllowExtendOrgAdminRightsToSelf() + { + return $this->container['allow_extend_org_admin_rights_to_self']; + } + + /** + * Sets allow_extend_org_admin_rights_to_self + * + * @param ?bool $allow_extend_org_admin_rights_to_self allow_extend_org_admin_rights_to_self + * + * @return $this + */ + public function setAllowExtendOrgAdminRightsToSelf($allow_extend_org_admin_rights_to_self) + { + $this->container['allow_extend_org_admin_rights_to_self'] = $allow_extend_org_admin_rights_to_self; + + return $this; + } + + /** + * Gets is_managed_by_scim + * + * @return ?bool + */ + public function getIsManagedByScim() + { + return $this->container['is_managed_by_scim']; + } + + /** + * Sets is_managed_by_scim + * + * @param ?bool $is_managed_by_scim is_managed_by_scim + * + * @return $this + */ + public function setIsManagedByScim($is_managed_by_scim) + { + $this->container['is_managed_by_scim'] = $is_managed_by_scim; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/UserIdentityRequest.php b/src/Model/UserIdentityRequest.php index 3fefa14..cf10b45 100644 --- a/src/Model/UserIdentityRequest.php +++ b/src/Model/UserIdentityRequest.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; } diff --git a/src/Model/UserIdentityResponse.php b/src/Model/UserIdentityResponse.php index 6e65b60..5e3d96d 100644 --- a/src/Model/UserIdentityResponse.php +++ b/src/Model/UserIdentityResponse.php @@ -197,7 +197,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['provider_id'] = isset($data['provider_id']) ? $data['provider_id'] : null; diff --git a/src/Model/UserProductPermissionProfilesRequest.php b/src/Model/UserProductPermissionProfilesRequest.php index 77c8fad..87bcde1 100644 --- a/src/Model/UserProductPermissionProfilesRequest.php +++ b/src/Model/UserProductPermissionProfilesRequest.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['product_permission_profiles'] = isset($data['product_permission_profiles']) ? $data['product_permission_profiles'] : null; diff --git a/src/Model/UserProductPermissionProfilesResponse.php b/src/Model/UserProductPermissionProfilesResponse.php index ef3fd07..83c9de3 100644 --- a/src/Model/UserProductPermissionProfilesResponse.php +++ b/src/Model/UserProductPermissionProfilesResponse.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; diff --git a/src/Model/UserProductProfileDeleteRequest.php b/src/Model/UserProductProfileDeleteRequest.php index 44a2991..fa51eba 100644 --- a/src/Model/UserProductProfileDeleteRequest.php +++ b/src/Model/UserProductProfileDeleteRequest.php @@ -187,7 +187,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['user_email'] = isset($data['user_email']) ? $data['user_email'] : null; $this->container['user_id'] = isset($data['user_id']) ? $data['user_id'] : null; diff --git a/src/Model/UserUpdateResponse.php b/src/Model/UserUpdateResponse.php index 156f491..fb0904a 100644 --- a/src/Model/UserUpdateResponse.php +++ b/src/Model/UserUpdateResponse.php @@ -192,7 +192,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['site_id'] = isset($data['site_id']) ? $data['site_id'] : null; diff --git a/src/Model/UsersDrilldownResponse.php b/src/Model/UsersDrilldownResponse.php index ca00956..bea6872 100644 --- a/src/Model/UsersDrilldownResponse.php +++ b/src/Model/UsersDrilldownResponse.php @@ -177,7 +177,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['users'] = isset($data['users']) ? $data['users'] : null; } diff --git a/src/Model/UsersUpdateResponse.php b/src/Model/UsersUpdateResponse.php index 5b4deb7..af50f98 100644 --- a/src/Model/UsersUpdateResponse.php +++ b/src/Model/UsersUpdateResponse.php @@ -182,7 +182,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['users'] = isset($data['users']) ? $data['users'] : null;