Skip to content

Commit

Permalink
Version 6.10.0-v2.1-22.2.00.00 release (#176)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
harsharahul and root authored Jun 18, 2022
1 parent 0700f55 commit e074689
Show file tree
Hide file tree
Showing 21 changed files with 2,553 additions and 0 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.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.
- Updated the SDK release version.

## [v6.9.0] - eSignature API v2.1-22.1.02.00 - 2022-05-18
### Changed
- Added support for version v2.1-22.1.02.00 of the DocuSign ESignature API.
Expand Down
94 changes: 94 additions & 0 deletions src/Api/EnvelopesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4934,6 +4934,100 @@ public function createEnvelopeTransferRulesWithHttpInfo($account_id, $envelope_t
}
}

/**
* Operation createHistoricalEnvelopePublishTransaction
*
* Submits a batch of historical envelopes for republish to an adhoc config.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\ConnectHistoricalEnvelopeRepublish $connect_historical_envelope_republish (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\EnvelopePublishTransaction
*/
public function createHistoricalEnvelopePublishTransaction($account_id, $connect_historical_envelope_republish = null)
{
list($response) = $this->createHistoricalEnvelopePublishTransactionWithHttpInfo($account_id, $connect_historical_envelope_republish);
return $response;
}

/**
* Operation createHistoricalEnvelopePublishTransactionWithHttpInfo
*
* Submits a batch of historical envelopes for republish to an adhoc config.
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param \DocuSign\eSign\Model\ConnectHistoricalEnvelopeRepublish $connect_historical_envelope_republish (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\EnvelopePublishTransaction, HTTP status code, HTTP response headers (array of strings)
*/
public function createHistoricalEnvelopePublishTransactionWithHttpInfo($account_id, $connect_historical_envelope_republish = 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 createHistoricalEnvelopePublishTransaction');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/connect/envelopes/publish/historical";
$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_historical_envelope_republish)) {
$_tempBody = $connect_historical_envelope_republish;
}

// 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\EnvelopePublishTransaction',
'/v2.1/accounts/{accountId}/connect/envelopes/publish/historical'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\EnvelopePublishTransaction', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 201:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\EnvelopePublishTransaction', $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 createLock
*
Expand Down
60 changes: 60 additions & 0 deletions src/Api/PowerFormsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,60 @@ public function setOrderBy(?string $order_by): self
$this->order_by = $order_by;
return $this;
}
/**
* $search_fields
* @var ?string
*/
protected ?string $search_fields = null;

/**
* Gets search_fields
*
* @return ?string
*/
public function getSearchFields(): ?string
{
return $this->search_fields;
}

/**
* Sets search_fields
* @param ?string $search_fields
*
* @return self
*/
public function setSearchFields(?string $search_fields): self
{
$this->search_fields = $search_fields;
return $this;
}
/**
* $search_text
* @var ?string
*/
protected ?string $search_text = null;

/**
* Gets search_text
*
* @return ?string
*/
public function getSearchText(): ?string
{
return $this->search_text;
}

/**
* Sets search_text
* @param ?string $search_text
*
* @return self
*/
public function setSearchText(?string $search_text): self
{
$this->search_text = $search_text;
return $this;
}
/**
* $to_date
* @var ?string
Expand Down Expand Up @@ -1010,6 +1064,12 @@ public function listPowerFormsWithHttpInfo($account_id, \DocuSign\eSign\Api\Powe
if ($options->getOrderBy() != 'null') {
$queryParams['order_by'] = $this->apiClient->getSerializer()->toQueryValue($options->getOrderBy());
}
if ($options->getSearchFields() != 'null') {
$queryParams['search_fields'] = $this->apiClient->getSerializer()->toQueryValue($options->getSearchFields());
}
if ($options->getSearchText() != 'null') {
$queryParams['search_text'] = $this->apiClient->getSerializer()->toQueryValue($options->getSearchText());
}
if ($options->getToDate() != 'null') {
$queryParams['to_date'] = $this->apiClient->getSerializer()->toQueryValue($options->getToDate());
}
Expand Down
30 changes: 30 additions & 0 deletions src/Model/AccountInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class AccountInformation implements ModelInterface, ArrayAccess
'billing_period_envelopes_sent' => '?string',
'billing_period_start_date' => '?string',
'billing_profile' => '?string',
'brands' => '\DocuSign\eSign\Model\BrandsResponse',
'can_upgrade' => '?string',
'connect_permission' => '?string',
'created_date' => '?string',
Expand Down Expand Up @@ -115,6 +116,7 @@ class AccountInformation implements ModelInterface, ArrayAccess
'billing_period_envelopes_sent' => null,
'billing_period_start_date' => null,
'billing_profile' => null,
'brands' => null,
'can_upgrade' => null,
'connect_permission' => null,
'created_date' => null,
Expand Down Expand Up @@ -181,6 +183,7 @@ public static function swaggerFormats()
'billing_period_envelopes_sent' => 'billingPeriodEnvelopesSent',
'billing_period_start_date' => 'billingPeriodStartDate',
'billing_profile' => 'billingProfile',
'brands' => 'brands',
'can_upgrade' => 'canUpgrade',
'connect_permission' => 'connectPermission',
'created_date' => 'createdDate',
Expand Down Expand Up @@ -226,6 +229,7 @@ public static function swaggerFormats()
'billing_period_envelopes_sent' => 'setBillingPeriodEnvelopesSent',
'billing_period_start_date' => 'setBillingPeriodStartDate',
'billing_profile' => 'setBillingProfile',
'brands' => 'setBrands',
'can_upgrade' => 'setCanUpgrade',
'connect_permission' => 'setConnectPermission',
'created_date' => 'setCreatedDate',
Expand Down Expand Up @@ -271,6 +275,7 @@ public static function swaggerFormats()
'billing_period_envelopes_sent' => 'getBillingPeriodEnvelopesSent',
'billing_period_start_date' => 'getBillingPeriodStartDate',
'billing_profile' => 'getBillingProfile',
'brands' => 'getBrands',
'can_upgrade' => 'getCanUpgrade',
'connect_permission' => 'getConnectPermission',
'created_date' => 'getCreatedDate',
Expand Down Expand Up @@ -370,6 +375,7 @@ public function __construct(array $data = null)
$this->container['billing_period_envelopes_sent'] = isset($data['billing_period_envelopes_sent']) ? $data['billing_period_envelopes_sent'] : null;
$this->container['billing_period_start_date'] = isset($data['billing_period_start_date']) ? $data['billing_period_start_date'] : null;
$this->container['billing_profile'] = isset($data['billing_profile']) ? $data['billing_profile'] : null;
$this->container['brands'] = isset($data['brands']) ? $data['brands'] : null;
$this->container['can_upgrade'] = isset($data['can_upgrade']) ? $data['can_upgrade'] : null;
$this->container['connect_permission'] = isset($data['connect_permission']) ? $data['connect_permission'] : null;
$this->container['created_date'] = isset($data['created_date']) ? $data['created_date'] : null;
Expand Down Expand Up @@ -663,6 +669,30 @@ public function setBillingProfile($billing_profile)
return $this;
}

/**
* Gets brands
*
* @return \DocuSign\eSign\Model\BrandsResponse
*/
public function getBrands()
{
return $this->container['brands'];
}

/**
* Sets brands
*
* @param \DocuSign\eSign\Model\BrandsResponse $brands brands
*
* @return $this
*/
public function setBrands($brands)
{
$this->container['brands'] = $brands;

return $this;
}

/**
* Gets can_upgrade
*
Expand Down
Loading

0 comments on commit e074689

Please sign in to comment.