Skip to content

Commit

Permalink
Version 5.1.0-rc-v2.1-20.1.00 (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: Dhaval Brahmbhatt <[email protected]>
  • Loading branch information
dbbrahmbhatt and Dhaval Brahmbhatt authored Mar 18, 2020
1 parent 1eb80c1 commit f74bc24
Show file tree
Hide file tree
Showing 113 changed files with 15,609 additions and 1,627 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
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.
## [5.0.0] - eSignature API v2.1-19.2.02 - 2019-09-28
### BREAKING
* The SDK now supports version v2.1-19.2.02 of the DocuSign eSignature API.
* SDK Release Version updated.
## [5.1.0] - eSignature API v2.1-20.1.00 - 2020-03-13
### Changed
* The SDK now supports version v2.1-20.1.00 of the DocuSign eSignature API.
* SDK Release Version updated.git chec

## [5.0.0] - eSignature API v2-19.2.02 - 2019-09-28
### Changed
* The SDK now supports version 19.2.02 of the DocuSign eSignature API.
* SDK Release Version updated.git chec
### Fixed
* Number and Date serialization issues DCM-3210
* Updated phpdocs to point to new location of ApiException DCM-3372
Expand All @@ -23,7 +28,7 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
* OAuthTests.php for OAuth support test
### Fixed
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-2871)

## [3.0.1] - Fixed the composer version - 2017-10-25

## [3.0.0] - Published all the DocuSign API endpoints - 2017-03-15
Expand Down
56 changes: 47 additions & 9 deletions src/Api/AccountsApi.php

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions src/Api/AuthenticationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2
* OpenAPI spec version: v2.1
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
Expand Down Expand Up @@ -233,7 +233,7 @@ public function deleteSocialLoginWithHttpInfo($account_id, $user_id, $social_acc
throw new \InvalidArgumentException('Missing the required parameter $user_id when calling deleteSocialLogin');
}
// parse inputs
$resourcePath = "/v2/accounts/{accountId}/users/{userId}/social";
$resourcePath = "/v2.1/accounts/{accountId}/users/{userId}/social";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -285,7 +285,7 @@ public function deleteSocialLoginWithHttpInfo($account_id, $user_id, $social_acc
$httpBody,
$headerParams,
null,
'/v2/accounts/{accountId}/users/{userId}/social'
'/v2.1/accounts/{accountId}/users/{userId}/social'
);

return [null, $statusCode, $httpHeader];
Expand Down Expand Up @@ -326,7 +326,7 @@ public function getOAuthToken()
public function getOAuthTokenWithHttpInfo()
{
// parse inputs
$resourcePath = "/v2/oauth2/token";
$resourcePath = "/v2.1/oauth2/token";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -357,7 +357,7 @@ public function getOAuthTokenWithHttpInfo()
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\OauthAccess',
'/v2/oauth2/token'
'/v2.1/oauth2/token'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\OauthAccess', $httpHeader), $statusCode, $httpHeader];
Expand Down Expand Up @@ -414,7 +414,7 @@ public function listSocialLoginsWithHttpInfo($account_id, $user_id)
throw new \InvalidArgumentException('Missing the required parameter $user_id when calling listSocialLogins');
}
// parse inputs
$resourcePath = "/v2/accounts/{accountId}/users/{userId}/social";
$resourcePath = "/v2.1/accounts/{accountId}/users/{userId}/social";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -461,7 +461,7 @@ public function listSocialLoginsWithHttpInfo($account_id, $user_id)
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\UserSocialIdResult',
'/v2/accounts/{accountId}/users/{userId}/social'
'/v2.1/accounts/{accountId}/users/{userId}/social'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\UserSocialIdResult', $httpHeader), $statusCode, $httpHeader];
Expand Down Expand Up @@ -508,7 +508,7 @@ public function login(AuthenticationApi\LoginOptions $options = null)
public function loginWithHttpInfo(AuthenticationApi\LoginOptions $options = null)
{
// parse inputs
$resourcePath = "/v2/login_information";
$resourcePath = "/v2.1/login_information";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -559,7 +559,7 @@ public function loginWithHttpInfo(AuthenticationApi\LoginOptions $options = null
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\LoginInformation',
'/v2/login_information'
'/v2.1/login_information'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\LoginInformation', $httpHeader), $statusCode, $httpHeader];
Expand Down Expand Up @@ -604,7 +604,7 @@ public function revokeOAuthToken()
public function revokeOAuthTokenWithHttpInfo()
{
// parse inputs
$resourcePath = "/v2/oauth2/revoke";
$resourcePath = "/v2.1/oauth2/revoke";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -635,7 +635,7 @@ public function revokeOAuthTokenWithHttpInfo()
$httpBody,
$headerParams,
null,
'/v2/oauth2/revoke'
'/v2.1/oauth2/revoke'
);

return [null, $statusCode, $httpHeader];
Expand Down Expand Up @@ -684,7 +684,7 @@ public function updatePasswordWithHttpInfo($login_part, $user_password_informati
throw new \InvalidArgumentException('Missing the required parameter $login_part when calling updatePassword');
}
// parse inputs
$resourcePath = "/v2/login_information/{loginPart}";
$resourcePath = "/v2.1/login_information/{loginPart}";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -728,7 +728,7 @@ public function updatePasswordWithHttpInfo($login_part, $user_password_informati
$httpBody,
$headerParams,
null,
'/v2/login_information/{loginPart}'
'/v2.1/login_information/{loginPart}'
);

return [null, $statusCode, $httpHeader];
Expand Down Expand Up @@ -783,7 +783,7 @@ public function updateSocialLoginWithHttpInfo($account_id, $user_id, $social_acc
throw new \InvalidArgumentException('Missing the required parameter $user_id when calling updateSocialLogin');
}
// parse inputs
$resourcePath = "/v2/accounts/{accountId}/users/{userId}/social";
$resourcePath = "/v2.1/accounts/{accountId}/users/{userId}/social";
$httpBody = '';
$queryParams = [];
$headerParams = [];
Expand Down Expand Up @@ -835,7 +835,7 @@ public function updateSocialLoginWithHttpInfo($account_id, $user_id, $social_acc
$httpBody,
$headerParams,
null,
'/v2/accounts/{accountId}/users/{userId}/social'
'/v2.1/accounts/{accountId}/users/{userId}/social'
);

return [null, $statusCode, $httpHeader];
Expand Down
97 changes: 97 additions & 0 deletions src/Api/BillingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,103 @@ public function purchaseEnvelopesWithHttpInfo($account_id, $purchased_envelopes_
}
}

/**
* Operation updateDowngradeAccountBillingPlan
*
* Queues downgrade billing plan request for an account.
*
* @param string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\DowngradeBillingPlanInformation $downgrade_billing_plan_information (optional)
* @throws \DocuSign\eSign\Client\ApiException on non-2xx response
* @return \DocuSign\eSign\Model\DowngradePlanUpdateResponse
*/
public function updateDowngradeAccountBillingPlan($account_id, $downgrade_billing_plan_information = null)
{
list($response) = $this->updateDowngradeAccountBillingPlanWithHttpInfo($account_id, $downgrade_billing_plan_information);
return $response;
}

/**
* Operation updateDowngradeAccountBillingPlanWithHttpInfo
*
* Queues downgrade billing plan request for an account.
*
* @param string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\DowngradeBillingPlanInformation $downgrade_billing_plan_information (optional)
* @throws \DocuSign\eSign\Client\ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\DowngradePlanUpdateResponse, HTTP status code, HTTP response headers (array of strings)
*/
public function updateDowngradeAccountBillingPlanWithHttpInfo($account_id, $downgrade_billing_plan_information = null)
{
// verify the required parameter 'account_id' is set
if ($account_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling updateDowngradeAccountBillingPlan');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/billing_plan/downgrade";
$httpBody = '';
$queryParams = [];
$headerParams = [];
$formParams = [];
$_header_accept = $this->apiClient->selectHeaderAccept(['application/json']);
if (!is_null($_header_accept)) {
$headerParams['Accept'] = $_header_accept;
}
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);


// path params
if ($account_id !== null) {
$resourcePath = str_replace(
"{" . "accountId" . "}",
$this->apiClient->getSerializer()->toPathValue($account_id),
$resourcePath
);
}
// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);

// body params
$_tempBody = null;
if (isset($downgrade_billing_plan_information)) {
$_tempBody = $downgrade_billing_plan_information;
}

// for model (json/xml)
if (isset($_tempBody)) {
$httpBody = $_tempBody; // $_tempBody is the method argument, if present
} elseif (count($formParams) > 0) {
$httpBody = $formParams; // for HTTP post (form)
}
// make the API Call
try {
list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
$resourcePath,
'PUT',
$queryParams,
$httpBody,
$headerParams,
'\DocuSign\eSign\Model\DowngradePlanUpdateResponse',
'/v2.1/accounts/{accountId}/billing_plan/downgrade'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\DowngradePlanUpdateResponse', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\DowngradePlanUpdateResponse', $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 updatePlan
*
Expand Down
Loading

0 comments on commit f74bc24

Please sign in to comment.