Skip to content

Commit

Permalink
Version 6.11.0-v2.1-22.3.00.00 release (#179)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
harsharahul and root authored Sep 8, 2022
1 parent e074689 commit 0f19895
Show file tree
Hide file tree
Showing 291 changed files with 9,025 additions and 5,287 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.

## [v6.11.0] - eSignature API v2.1-22.3.00.00 - 2022-08-30
### Changed
- Added support for version v2.1-1.2.7 of the DocuSign DBTest API.
- Updated the SDK release version.

## [v6.10.0] - eSignature API v2.1-22.2.00.00 - 2022-06-17
### Changed
- Added support for version v2.1-22.2.00.00 of the DocuSign ESignature API.
Expand Down
264 changes: 264 additions & 0 deletions src/Api/ConnectApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,100 @@ public function createConfigurationWithHttpInfo($account_id, $connect_custom_con
}
}

/**
* Operation createConnectOAuthConfig
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\ConnectOAuthConfig $connect_o_auth_config (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ConnectOAuthConfig
*/
public function createConnectOAuthConfig($account_id, $connect_o_auth_config = null)
{
list($response) = $this->createConnectOAuthConfigWithHttpInfo($account_id, $connect_o_auth_config);
return $response;
}

/**
* Operation createConnectOAuthConfigWithHttpInfo
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\ConnectOAuthConfig $connect_o_auth_config (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ConnectOAuthConfig, HTTP status code, HTTP response headers (array of strings)
*/
public function createConnectOAuthConfigWithHttpInfo($account_id, $connect_o_auth_config = null): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling createConnectOAuthConfig');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/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([]);


// path params
if ($account_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_id);
}

// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);
// body params
$_tempBody = null;
if (isset($connect_o_auth_config)) {
$_tempBody = $connect_o_auth_config;
}

// for model (json/xml)
if (isset($_tempBody)) {
$httpBody = $_tempBody; // $_tempBody is the method argument, if present
} elseif (count($formParams) > 0) {
$httpBody = $formParams; // for HTTP post (form)
}
// this endpoint requires OAuth (access token)
if (strlen($this->apiClient->getConfig()->getAccessToken()) !== 0) {
$headerParams['Authorization'] = 'Bearer ' . $this->apiClient->getConfig()->getAccessToken();
}
// make the API Call
try {
list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
$resourcePath,
'POST',
$queryParams,
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\ConnectOAuthConfig',
'/v2.1/accounts/{accountId}/connect/oauth'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ConnectOAuthConfig', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 201:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ConnectOAuthConfig', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
case 400:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}

throw $e;
}
}

/**
* Operation deleteConfiguration
*
Expand Down Expand Up @@ -829,6 +923,89 @@ public function deleteConfigurationWithHttpInfo($account_id, $connect_id): array
}
}

/**
* Operation deleteConnectOAuthConfig
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
*
* @throws ApiException on non-2xx response
* @return mixed
*/
public function deleteConnectOAuthConfig($account_id)
{
list($response) = $this->deleteConnectOAuthConfigWithHttpInfo($account_id);
return $response;
}

/**
* Operation deleteConnectOAuthConfigWithHttpInfo
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
*
* @throws ApiException on non-2xx response
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
public function deleteConnectOAuthConfigWithHttpInfo($account_id): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling deleteConnectOAuthConfig');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/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([]);


// path params
if ($account_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_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,
null,
'/v2.1/accounts/{accountId}/connect/oauth'
);

return [null, $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 400:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}

throw $e;
}
}

/**
* Operation deleteEventFailureLog
*
Expand Down Expand Up @@ -1414,6 +1591,93 @@ public function getConnectAllUsersWithHttpInfo($account_id, $connect_id, \DocuSi
}
}

/**
* Operation getConnectOAuthConfig
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\ConnectOAuthConfig
*/
public function getConnectOAuthConfig($account_id)
{
list($response) = $this->getConnectOAuthConfigWithHttpInfo($account_id);
return $response;
}

/**
* Operation getConnectOAuthConfigWithHttpInfo
*
* Sets the Connect OAuth Config for the account.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\ConnectOAuthConfig, HTTP status code, HTTP response headers (array of strings)
*/
public function getConnectOAuthConfigWithHttpInfo($account_id): array
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getConnectOAuthConfig');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/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([]);


// path params
if ($account_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "accountId", $account_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\eSign\Model\ConnectOAuthConfig',
'/v2.1/accounts/{accountId}/connect/oauth'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\ConnectOAuthConfig', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ConnectOAuthConfig', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
case 400:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\ErrorDetails', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}

throw $e;
}
}

/**
* Operation getEventLog
*
Expand Down
Loading

0 comments on commit 0f19895

Please sign in to comment.