Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ 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.0.0] - eSignature API v2.1-26.1.02.00 - 2026-05-04
### Removed
- Removed the deprecated `list_recipient_names_by_email` endpoint (`/v2.1/accounts/{accountId}/recipient_names`).

### Added
- **Accounts API**: Template completion-rate methods (`get_completion_rate_for_template`, `get_completion_rate_for_template_owner`).
- **Connect API**: Secret key management methods (`create_connect_secret`, `get_connect_secret`, `delete_connect_secret`).
- **Models**: `SenderCompletionInfo`, `TemplateCompletionInfo`, `TemplateCompletionRateResponse`, `UserCompletionRateResponse`.

### Changed
- Added support for version v2.1-26.1.02.00 of the DocuSign ESignature API.
- Updated the SDK release version to 6.0.0.
- Added query parameters: `include_is_edited` and `link_configuration_id` for document listing methods.

## [v5.8.0] - eSignature API v2.1-26.1.00.00 - 2026-03-05
### Changed
- Added support for version v2.1-26.1.00.00 of the DocuSign ESignature API.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This client SDK is provided as open source, which enables you to customize its f
<a id="versionInformation"></a>
### Version Information
- **API version**: v2.1
- **Latest SDK version**: 5.8.0
- **Latest SDK version**: 6.0.0

<a id="requirements"></a>
## Requirements
Expand Down
5 changes: 4 additions & 1 deletion lib/docusign_esign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@
require 'docusign_esign/models/recipient_identity_input_option'
require 'docusign_esign/models/recipient_identity_phone_number'
require 'docusign_esign/models/recipient_identity_verification'
require 'docusign_esign/models/recipient_names_response'
require 'docusign_esign/models/recipient_option'
require 'docusign_esign/models/recipient_phone_authentication'
require 'docusign_esign/models/recipient_phone_number'
Expand All @@ -435,6 +434,7 @@
require 'docusign_esign/models/seal_sign'
require 'docusign_esign/models/seat_discount'
require 'docusign_esign/models/sender_company'
require 'docusign_esign/models/sender_completion_info'
require 'docusign_esign/models/sender_email_notifications'
require 'docusign_esign/models/sender_name'
require 'docusign_esign/models/server_template'
Expand Down Expand Up @@ -475,6 +475,8 @@
require 'docusign_esign/models/tabs'
require 'docusign_esign/models/template_auto_match'
require 'docusign_esign/models/template_auto_match_list'
require 'docusign_esign/models/template_completion_info'
require 'docusign_esign/models/template_completion_rate_response'
require 'docusign_esign/models/template_custom_fields'
require 'docusign_esign/models/template_document_visibility_list'
require 'docusign_esign/models/template_documents_result'
Expand Down Expand Up @@ -506,6 +508,7 @@
require 'docusign_esign/models/user_authorizations_delete_response'
require 'docusign_esign/models/user_authorizations_request'
require 'docusign_esign/models/user_authorizations_response'
require 'docusign_esign/models/user_completion_rate_response'
require 'docusign_esign/models/user_info'
require 'docusign_esign/models/user_info_list'
require 'docusign_esign/models/user_information'
Expand Down
163 changes: 102 additions & 61 deletions lib/docusign_esign/api/accounts_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,6 @@ def self.default
end
end

class ListRecipientNamesByEmailOptions
# The email address for the user
attr_accessor :email

def self.default
@@default ||= ListRecipientNamesByEmailOptions.new
end
end

class ListSharedAccessOptions
# Specifies maximum number of results included in the response. If no value is specified, this defaults to 1000.
attr_accessor :count
Expand Down Expand Up @@ -2142,6 +2133,108 @@ def get_brand_resources_by_content_type_with_http_info(account_id, brand_id, res
return data, status_code, headers
end

# Gets completion rate for the template
#
# @param account_id The external account number (int) or account ID Guid.
# @param template_id The ID of the template being accessed.
# @return [TemplateCompletionRateResponse]
def get_completion_rate_for_template(account_id, template_id)
data, _status_code, _headers = get_completion_rate_for_template_with_http_info(account_id, template_id)
return data
end

# Gets completion rate for the template
#
# @param account_id The external account number (int) or account ID Guid.
# @param template_id The ID of the template being accessed.
# @return [Array<(TemplateCompletionRateResponse, Fixnum, Hash)>] TemplateCompletionRateResponse data, response status code and response headers
def get_completion_rate_for_template_with_http_info(account_id, template_id)
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AccountsApi.get_completion_rate_for_template ..."
end
# verify the required parameter 'account_id' is set
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_completion_rate_for_template" if account_id.nil?
# verify the required parameter 'template_id' is set
fail ArgumentError, "Missing the required parameter 'template_id' when calling AccountsApi.get_completion_rate_for_template" if template_id.nil?
# resource path
local_var_path = "/v2.1/accounts/{accountId}/templates/{templateId}/insights/completionRate".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)

# query parameters
query_params = {}

# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

# form parameters
form_params = {}

# http body (model)
post_body = nil
auth_names = []
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'TemplateCompletionRateResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: AccountsApi#get_completion_rate_for_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Gets completion rate for the user
#
# @param account_id The external account number (int) or account ID Guid.
# @return [UserCompletionRateResponse]
def get_completion_rate_for_template_owner(account_id)
data, _status_code, _headers = get_completion_rate_for_template_owner_with_http_info(account_id)
return data
end

# Gets completion rate for the user
#
# @param account_id The external account number (int) or account ID Guid.
# @return [Array<(UserCompletionRateResponse, Fixnum, Hash)>] UserCompletionRateResponse data, response status code and response headers
def get_completion_rate_for_template_owner_with_http_info(account_id)
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AccountsApi.get_completion_rate_for_template_owner ..."
end
# verify the required parameter 'account_id' is set
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_completion_rate_for_template_owner" if account_id.nil?
# resource path
local_var_path = "/v2.1/accounts/{accountId}/templates/insights/completionRate".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)

# query parameters
query_params = {}

# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

# form parameters
form_params = {}

# http body (model)
post_body = nil
auth_names = []
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'UserCompletionRateResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: AccountsApi#get_completion_rate_for_template_owner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Gets the Electronic Record and Signature Disclosure.
# Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, for the requested envelope recipient. This might be different than the current account disclosure depending on account settings, such as branding, and when the account disclosure was last updated. An optional query string can be included to return the language for the disclosure.
# @param account_id The external account number (int) or account ID Guid.
Expand Down Expand Up @@ -3060,58 +3153,6 @@ def list_permissions_with_http_info(account_id, options = DocuSign_eSign::ListPe
return data, status_code, headers
end

# Gets recipient names associated with an email address.
# Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
# @param account_id The external account number (int) or account ID Guid.
# @param DocuSign_eSign::ListRecipientNamesByEmailOptions Options for modifying the behavior of the function.
# @return [RecipientNamesResponse]
def list_recipient_names_by_email(account_id, options = DocuSign_eSign::ListRecipientNamesByEmailOptions.default)
data, _status_code, _headers = list_recipient_names_by_email_with_http_info(account_id, options)
return data
end

# Gets recipient names associated with an email address.
# Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
# @param account_id The external account number (int) or account ID Guid.
# @param DocuSign_eSign::ListRecipientNamesByEmailOptions Options for modifying the behavior of the function.
# @return [Array<(RecipientNamesResponse, Fixnum, Hash)>] RecipientNamesResponse data, response status code and response headers
def list_recipient_names_by_email_with_http_info(account_id, options = DocuSign_eSign::ListRecipientNamesByEmailOptions.default)
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AccountsApi.list_recipient_names_by_email ..."
end
# verify the required parameter 'account_id' is set
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.list_recipient_names_by_email" if account_id.nil?
# resource path
local_var_path = "/v2.1/accounts/{accountId}/recipient_names".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)

# query parameters
query_params = {}
query_params[:'email'] = options.email if !options.email.nil?

# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

# form parameters
form_params = {}

# http body (model)
post_body = nil
auth_names = []
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RecipientNamesResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: AccountsApi#list_recipient_names_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Gets account settings information.
# Retrieves the account settings information for the specified account.
# @param account_id The external account number (int) or account ID Guid.
Expand Down
Loading
Loading