-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Dhaval Brahmbhatt <[email protected]>
- Loading branch information
1 parent
aa957b0
commit e42e98d
Showing
436 changed files
with
70,217 additions
and
10,821 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
* OpenAPI spec version: v2.1 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
* | ||
* Swagger Codegen version: 2.4.13-SNAPSHOT | ||
*/ | ||
|
||
/** | ||
|
@@ -276,6 +276,10 @@ public function deleteSocialLoginWithHttpInfo($account_id, $user_id, $social_acc | |
} 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( | ||
|
@@ -348,6 +352,10 @@ public function getOAuthTokenWithHttpInfo() | |
} 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( | ||
|
@@ -452,6 +460,10 @@ public function listSocialLoginsWithHttpInfo($account_id, $user_id) | |
} 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( | ||
|
@@ -550,6 +562,10 @@ public function loginWithHttpInfo(AuthenticationApi\LoginOptions $options = null | |
} 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( | ||
|
@@ -626,6 +642,10 @@ public function revokeOAuthTokenWithHttpInfo() | |
} 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( | ||
|
@@ -719,6 +739,10 @@ public function updatePasswordWithHttpInfo($login_part, $user_password_informati | |
} 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( | ||
|
@@ -826,6 +850,10 @@ public function updateSocialLoginWithHttpInfo($account_id, $user_id, $social_acc | |
} 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( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
* OpenAPI spec version: v2.1 | ||
* Contact: [email protected] | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
* | ||
* Swagger Codegen version: 2.4.13-SNAPSHOT | ||
*/ | ||
|
||
/** | ||
|
@@ -364,6 +364,10 @@ public function getBillingPlanWithHttpInfo($billing_plan_id) | |
} 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( | ||
|
@@ -454,6 +458,10 @@ public function getCreditCardInfoWithHttpInfo($account_id) | |
} 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( | ||
|
@@ -483,6 +491,100 @@ public function getCreditCardInfoWithHttpInfo($account_id) | |
} | ||
} | ||
|
||
/** | ||
* Operation getDowngradeRequestBillingInfo | ||
* | ||
* Returns downgrade plan information for the specified account. | ||
* | ||
* @param string $account_id The external account number (int) or account ID Guid. | ||
* @throws \DocuSign\eSign\Client\ApiException on non-2xx response | ||
* @return \DocuSign\eSign\Model\DowngradRequestBillingInfoResponse | ||
*/ | ||
public function getDowngradeRequestBillingInfo($account_id) | ||
{ | ||
list($response) = $this->getDowngradeRequestBillingInfoWithHttpInfo($account_id); | ||
return $response; | ||
} | ||
|
||
/** | ||
* Operation getDowngradeRequestBillingInfoWithHttpInfo | ||
* | ||
* Returns downgrade plan information for the specified account. | ||
* | ||
* @param string $account_id The external account number (int) or account ID Guid. | ||
* @throws \DocuSign\eSign\Client\ApiException on non-2xx response | ||
* @return array of \DocuSign\eSign\Model\DowngradRequestBillingInfoResponse, HTTP status code, HTTP response headers (array of strings) | ||
*/ | ||
public function getDowngradeRequestBillingInfoWithHttpInfo($account_id) | ||
{ | ||
// verify the required parameter 'account_id' is set | ||
if ($account_id === null) { | ||
throw new \InvalidArgumentException('Missing the required parameter $account_id when calling getDowngradeRequestBillingInfo'); | ||
} | ||
// 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); | ||
|
||
|
||
// 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\DowngradRequestBillingInfoResponse', | ||
'/v2.1/accounts/{accountId}/billing_plan/downgrade' | ||
); | ||
|
||
return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\DowngradRequestBillingInfoResponse', $httpHeader), $statusCode, $httpHeader]; | ||
} catch (ApiException $e) { | ||
switch ($e->getCode()) { | ||
case 200: | ||
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\DowngradRequestBillingInfoResponse', $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 getInvoice | ||
* | ||
|
@@ -558,6 +660,10 @@ public function getInvoiceWithHttpInfo($account_id, $invoice_id) | |
} 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( | ||
|
@@ -662,6 +768,10 @@ public function getPaymentWithHttpInfo($account_id, $payment_id) | |
} 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( | ||
|
@@ -770,6 +880,10 @@ public function getPlanWithHttpInfo($account_id, BillingApi\GetPlanOptions $opti | |
} 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( | ||
|
@@ -846,6 +960,10 @@ public function listBillingPlansWithHttpInfo() | |
} 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( | ||
|
@@ -950,6 +1068,10 @@ public function listInvoicesWithHttpInfo($account_id, BillingApi\ListInvoicesOpt | |
} 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( | ||
|
@@ -1040,6 +1162,10 @@ public function listInvoicesPastDueWithHttpInfo($account_id) | |
} 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( | ||
|
@@ -1144,6 +1270,10 @@ public function listPaymentsWithHttpInfo($account_id, BillingApi\ListPaymentsOpt | |
} 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( | ||
|
@@ -1241,6 +1371,10 @@ public function makePaymentWithHttpInfo($account_id, $billing_payment_request = | |
} 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( | ||
|
@@ -1338,6 +1472,10 @@ public function purchaseEnvelopesWithHttpInfo($account_id, $purchased_envelopes_ | |
} 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( | ||
|
@@ -1431,6 +1569,10 @@ public function updateDowngradeAccountBillingPlanWithHttpInfo($account_id, $down | |
} 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( | ||
|
@@ -1538,6 +1680,10 @@ public function updatePlanWithHttpInfo($account_id, $billing_plan_information = | |
} 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( | ||
|
Oops, something went wrong.