Skip to content

Commit

Permalink
Version 6.7.0 release (#164)
Browse files Browse the repository at this point in the history
* Version 6.7.0-v2.1-21.4.02.00 release

* fixed unit test

Co-authored-by: root <root@devcenteradmin.docusigntest.com>
Co-authored-by: Dhaval <d>
  • Loading branch information
dbbrahmbhatt and root authored Feb 10, 2022
1 parent 337c149 commit 03c2305
Show file tree
Hide file tree
Showing 22 changed files with 1,164 additions and 22 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.7.0] - eSignature API v2.1-21.4.02.00 - 2022-02-08
### Changed
- Added support for version v2.1-21.4.02.00 of the DocuSign ESignature API.
- Updated the SDK release version.

## [v6.6.0] - eSignature API v2.1-21.4.01.00 - 2022-01-06
### Changed
- Added support for version v2.1-21.4.01.00 of the DocuSign ESignature API.
Expand Down
114 changes: 114 additions & 0 deletions src/Api/BulkEnvelopesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,120 @@ public function getBulkSendListsWithHttpInfo($account_id): array
}
}

/**
* Operation updateBulkSendBatchAction
*
* Initiate a specific bulk send batch action
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $bulk_action
* @param ?string $bulk_send_batch_id
* @param \DocuSign\eSign\Model\BulkSendBatchActionRequest $bulk_send_batch_action_request (optional)
*
* @throws ApiException on non-2xx response
* @return \DocuSign\eSign\Model\BulkSendBatchStatus
*/
public function updateBulkSendBatchAction($account_id, $bulk_action, $bulk_send_batch_id, $bulk_send_batch_action_request = null)
{
list($response) = $this->updateBulkSendBatchActionWithHttpInfo($account_id, $bulk_action, $bulk_send_batch_id, $bulk_send_batch_action_request);
return $response;
}

/**
* Operation updateBulkSendBatchActionWithHttpInfo
*
* Initiate a specific bulk send batch action
*
* @param ?string $account_id The external account number (int) or account ID Guid.
* @param ?string $bulk_action
* @param ?string $bulk_send_batch_id
* @param \DocuSign\eSign\Model\BulkSendBatchActionRequest $bulk_send_batch_action_request (optional)
*
* @throws ApiException on non-2xx response
* @return array of \DocuSign\eSign\Model\BulkSendBatchStatus, HTTP status code, HTTP response headers (array of strings)
*/
public function updateBulkSendBatchActionWithHttpInfo($account_id, $bulk_action, $bulk_send_batch_id, $bulk_send_batch_action_request = 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 updateBulkSendBatchAction');
}
// verify the required parameter 'bulk_action' is set
if ($bulk_action === null) {
throw new \InvalidArgumentException('Missing the required parameter $bulk_action when calling updateBulkSendBatchAction');
}
// verify the required parameter 'bulk_send_batch_id' is set
if ($bulk_send_batch_id === null) {
throw new \InvalidArgumentException('Missing the required parameter $bulk_send_batch_id when calling updateBulkSendBatchAction');
}
// parse inputs
$resourcePath = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/{bulkAction}";
$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);
}
// path params
if ($bulk_action !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "bulkAction", $bulk_action);
}
// path params
if ($bulk_send_batch_id !== null) {
$resourcePath = self::updateResourcePath($resourcePath, "bulkSendBatchId", $bulk_send_batch_id);
}

// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);
// body params
$_tempBody = null;
if (isset($bulk_send_batch_action_request)) {
$_tempBody = $bulk_send_batch_action_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\eSign\Model\BulkSendBatchStatus',
'/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/{bulkAction}'
);

return [$this->apiClient->getSerializer()->deserialize($response, '\DocuSign\eSign\Model\BulkSendBatchStatus', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\DocuSign\eSign\Model\BulkSendBatchStatus', $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 updateBulkSendBatchStatus
*
Expand Down
4 changes: 2 additions & 2 deletions src/Model/AccountSettingsInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4726,7 +4726,7 @@ public function getAllowDelayedRouting()
/**
* Sets allow_delayed_routing
*
* @param ?string $allow_delayed_routing
* @param ?string $allow_delayed_routing \"true\" if the account has permission to use the delayed routing feature to insert delays before routing an envelope to a recipient, \"false\" otherwise.
*
* @return $this
*/
Expand Down Expand Up @@ -6982,7 +6982,7 @@ public function getAllowScheduledSending()
/**
* Sets allow_scheduled_sending
*
* @param ?string $allow_scheduled_sending
* @param ?string $allow_scheduled_sending \"true\" if the account has permission to use the scheduled sending feature to send envelopes at a specified datetime in the future, \"false\" otherwise.
*
* @return $this
*/
Expand Down
30 changes: 30 additions & 0 deletions src/Model/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Agent implements ModelInterface, ArrayAccess
'email' => '?string',
'email_metadata' => '\DocuSign\eSign\Model\PropertyMetadata',
'email_notification' => '\DocuSign\eSign\Model\RecipientEmailNotification',
'email_recipient_post_signing_url' => '?string',
'embedded_recipient_start_url' => '?string',
'error_details' => '\DocuSign\eSign\Model\ErrorDetails',
'excluded_documents' => '?string[]',
Expand Down Expand Up @@ -159,6 +160,7 @@ class Agent implements ModelInterface, ArrayAccess
'email' => null,
'email_metadata' => null,
'email_notification' => null,
'email_recipient_post_signing_url' => null,
'embedded_recipient_start_url' => null,
'error_details' => null,
'excluded_documents' => null,
Expand Down Expand Up @@ -259,6 +261,7 @@ public static function swaggerFormats()
'email' => 'email',
'email_metadata' => 'emailMetadata',
'email_notification' => 'emailNotification',
'email_recipient_post_signing_url' => 'emailRecipientPostSigningURL',
'embedded_recipient_start_url' => 'embeddedRecipientStartURL',
'error_details' => 'errorDetails',
'excluded_documents' => 'excludedDocuments',
Expand Down Expand Up @@ -338,6 +341,7 @@ public static function swaggerFormats()
'email' => 'setEmail',
'email_metadata' => 'setEmailMetadata',
'email_notification' => 'setEmailNotification',
'email_recipient_post_signing_url' => 'setEmailRecipientPostSigningUrl',
'embedded_recipient_start_url' => 'setEmbeddedRecipientStartUrl',
'error_details' => 'setErrorDetails',
'excluded_documents' => 'setExcludedDocuments',
Expand Down Expand Up @@ -417,6 +421,7 @@ public static function swaggerFormats()
'email' => 'getEmail',
'email_metadata' => 'getEmailMetadata',
'email_notification' => 'getEmailNotification',
'email_recipient_post_signing_url' => 'getEmailRecipientPostSigningUrl',
'embedded_recipient_start_url' => 'getEmbeddedRecipientStartUrl',
'error_details' => 'getErrorDetails',
'excluded_documents' => 'getExcludedDocuments',
Expand Down Expand Up @@ -550,6 +555,7 @@ public function __construct(array $data = null)
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
$this->container['email_metadata'] = isset($data['email_metadata']) ? $data['email_metadata'] : null;
$this->container['email_notification'] = isset($data['email_notification']) ? $data['email_notification'] : null;
$this->container['email_recipient_post_signing_url'] = isset($data['email_recipient_post_signing_url']) ? $data['email_recipient_post_signing_url'] : null;
$this->container['embedded_recipient_start_url'] = isset($data['embedded_recipient_start_url']) ? $data['embedded_recipient_start_url'] : null;
$this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null;
$this->container['excluded_documents'] = isset($data['excluded_documents']) ? $data['excluded_documents'] : null;
Expand Down Expand Up @@ -1107,6 +1113,30 @@ public function setEmailNotification($email_notification)
return $this;
}

/**
* Gets email_recipient_post_signing_url
*
* @return ?string
*/
public function getEmailRecipientPostSigningUrl()
{
return $this->container['email_recipient_post_signing_url'];
}

/**
* Sets email_recipient_post_signing_url
*
* @param ?string $email_recipient_post_signing_url
*
* @return $this
*/
public function setEmailRecipientPostSigningUrl($email_recipient_post_signing_url)
{
$this->container['email_recipient_post_signing_url'] = $email_recipient_post_signing_url;

return $this;
}

/**
* Gets embedded_recipient_start_url
*
Expand Down
Loading

0 comments on commit 03c2305

Please sign in to comment.