class DocuSign_eSign::BulkEnvelopesApi
Attributes
Public Class Methods
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 77 def initialize(api_client = BulkEnvelopesApi.default) @api_client = api_client end
Public Instance Methods
Creates a new bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_sending_list (optional parameter) @return [BulkSendingList]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 86 def create_bulk_send_list(account_id, bulk_sending_list) data, _status_code, _headers = create_bulk_send_list_with_http_info(account_id, bulk_sending_list) return data end
Creates a new bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_sending_list (optional parameter) @return [Array<(BulkSendingList
, Fixnum, Hash)>] BulkSendingList
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 96 def create_bulk_send_list_with_http_info(account_id, bulk_sending_list) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.create_bulk_send_list ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.create_bulk_send_list" if account_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists".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 = @api_client.object_to_http_body(bulk_sending_list) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#create_bulk_send_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Uses the specified bulk send list to send the envelope specified in the payload
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_send_request (optional parameter) @return [BulkSendResponse]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 138 def create_bulk_send_request(account_id, bulk_send_list_id, bulk_send_request) data, _status_code, _headers = create_bulk_send_request_with_http_info(account_id, bulk_send_list_id, bulk_send_request) return data end
Uses the specified bulk send list to send the envelope specified in the payload
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_send_request (optional parameter) @return [Array<(BulkSendResponse
, Fixnum, Hash)>] BulkSendResponse
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 149 def create_bulk_send_request_with_http_info(account_id, bulk_send_list_id, bulk_send_request) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.create_bulk_send_request ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.create_bulk_send_request" if account_id.nil? # verify the required parameter 'bulk_send_list_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_list_id' when calling BulkEnvelopesApi.create_bulk_send_request" if bulk_send_list_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId}/send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendListId' + '}', bulk_send_list_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 = @api_client.object_to_http_body(bulk_send_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#create_bulk_send_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tests whether the specified bulk sending list can be used to send an envelope
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_send_request (optional parameter) @return [BulkSendTestResponse]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 193 def create_bulk_send_test_request(account_id, bulk_send_list_id, bulk_send_request) data, _status_code, _headers = create_bulk_send_test_request_with_http_info(account_id, bulk_send_list_id, bulk_send_request) return data end
Tests whether the specified bulk sending list can be used to send an envelope
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_send_request (optional parameter) @return [Array<(BulkSendTestResponse
, Fixnum, Hash)>] BulkSendTestResponse
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 204 def create_bulk_send_test_request_with_http_info(account_id, bulk_send_list_id, bulk_send_request) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.create_bulk_send_test_request ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.create_bulk_send_test_request" if account_id.nil? # verify the required parameter 'bulk_send_list_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_list_id' when calling BulkEnvelopesApi.create_bulk_send_test_request" if bulk_send_list_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId}/test".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendListId' + '}', bulk_send_list_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 = @api_client.object_to_http_body(bulk_send_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendTestResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#create_bulk_send_test_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Deletes an existing bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @return [BulkSendingListSummaries]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 247 def delete_bulk_send_list(account_id, bulk_send_list_id) data, _status_code, _headers = delete_bulk_send_list_with_http_info(account_id, bulk_send_list_id) return data end
Deletes an existing bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @return [Array<(BulkSendingListSummaries
, Fixnum, Hash)>] BulkSendingListSummaries
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 257 def delete_bulk_send_list_with_http_info(account_id, bulk_send_list_id) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.delete_bulk_send_list ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.delete_bulk_send_list" if account_id.nil? # verify the required parameter 'bulk_send_list_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_list_id' when calling BulkEnvelopesApi.delete_bulk_send_list" if bulk_send_list_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendListId' + '}', bulk_send_list_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(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendingListSummaries') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#delete_bulk_send_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Gets envelopes from a specific bulk send batch
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @param DocuSign_eSign::GetBulkSendBatchEnvelopesOptions
Options for modifying the behavior of the function. @return [EnvelopesInformation]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 301 def get_bulk_send_batch_envelopes(account_id, bulk_send_batch_id, options = DocuSign_eSign::GetBulkSendBatchEnvelopesOptions.default) data, _status_code, _headers = get_bulk_send_batch_envelopes_with_http_info(account_id, bulk_send_batch_id, options) return data end
Gets envelopes from a specific bulk send batch
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @param DocuSign_eSign::GetBulkSendBatchEnvelopesOptions
Options for modifying the behavior of the function. @return [Array<(EnvelopesInformation
, Fixnum, Hash)>] EnvelopesInformation
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 312 def get_bulk_send_batch_envelopes_with_http_info(account_id, bulk_send_batch_id, options = DocuSign_eSign::GetBulkSendBatchEnvelopesOptions.default) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.get_bulk_send_batch_envelopes ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.get_bulk_send_batch_envelopes" if account_id.nil? # verify the required parameter 'bulk_send_batch_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_batch_id' when calling BulkEnvelopesApi.get_bulk_send_batch_envelopes" if bulk_send_batch_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/envelopes".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendBatchId' + '}', bulk_send_batch_id.to_s) # query parameters query_params = {} query_params[:'count'] = options.count if !options.count.nil? query_params[:'include'] = options.include if !options.include.nil? query_params[:'order'] = options.order if !options.order.nil? query_params[:'order_by'] = options.order_by if !options.order_by.nil? query_params[:'search_text'] = options.search_text if !options.search_text.nil? query_params[:'start_position'] = options.start_position if !options.start_position.nil? query_params[:'status'] = options.status if !options.status.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 => 'EnvelopesInformation') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#get_bulk_send_batch_envelopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Gets a specific bulk send batch status
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @return [BulkSendBatchStatus]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 362 def get_bulk_send_batch_status(account_id, bulk_send_batch_id) data, _status_code, _headers = get_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id) return data end
Gets a specific bulk send batch status
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @return [Array<(BulkSendBatchStatus
, Fixnum, Hash)>] BulkSendBatchStatus
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 372 def get_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.get_bulk_send_batch_status ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.get_bulk_send_batch_status" if account_id.nil? # verify the required parameter 'bulk_send_batch_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_batch_id' when calling BulkEnvelopesApi.get_bulk_send_batch_status" if bulk_send_batch_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendBatchId' + '}', bulk_send_batch_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 => 'BulkSendBatchStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#get_bulk_send_batch_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Returns a list of bulk send batch satuses initiated by account.
@param account_id The external account number (int) or account ID Guid. @param DocuSign_eSign::GetBulkSendBatchesOptions
Options for modifying the behavior of the function. @return [BulkSendBatchSummaries]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 415 def get_bulk_send_batches(account_id, options = DocuSign_eSign::GetBulkSendBatchesOptions.default) data, _status_code, _headers = get_bulk_send_batches_with_http_info(account_id, options) return data end
Returns a list of bulk send batch satuses initiated by account.
@param account_id The external account number (int) or account ID Guid. @param DocuSign_eSign::GetBulkSendBatchesOptions
Options for modifying the behavior of the function. @return [Array<(BulkSendBatchSummaries
, Fixnum, Hash)>] BulkSendBatchSummaries
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 425 def get_bulk_send_batches_with_http_info(account_id, options = DocuSign_eSign::GetBulkSendBatchesOptions.default) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.get_bulk_send_batches ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.get_bulk_send_batches" if account_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_batch".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s) # query parameters query_params = {} query_params[:'batch_ids'] = options.batch_ids if !options.batch_ids.nil? query_params[:'count'] = options.count if !options.count.nil? query_params[:'from_date'] = options.from_date if !options.from_date.nil? query_params[:'search_text'] = options.search_text if !options.search_text.nil? query_params[:'start_position'] = options.start_position if !options.start_position.nil? query_params[:'status'] = options.status if !options.status.nil? query_params[:'to_date'] = options.to_date if !options.to_date.nil? query_params[:'user_id'] = options.user_id if !options.user_id.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 => 'BulkSendBatchSummaries') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#get_bulk_send_batches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Gets a specific bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @return [BulkSendingList]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 474 def get_bulk_send_list(account_id, bulk_send_list_id) data, _status_code, _headers = get_bulk_send_list_with_http_info(account_id, bulk_send_list_id) return data end
Gets a specific bulk send list
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @return [Array<(BulkSendingList
, Fixnum, Hash)>] BulkSendingList
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 484 def get_bulk_send_list_with_http_info(account_id, bulk_send_list_id) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.get_bulk_send_list ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.get_bulk_send_list" if account_id.nil? # verify the required parameter 'bulk_send_list_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_list_id' when calling BulkEnvelopesApi.get_bulk_send_list" if bulk_send_list_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendListId' + '}', bulk_send_list_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 => 'BulkSendingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#get_bulk_send_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Lists top-level details for all bulk send lists visible to the current user
@param account_id The external account number (int) or account ID Guid. @return [BulkSendingListSummaries]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 526 def get_bulk_send_lists(account_id) data, _status_code, _headers = get_bulk_send_lists_with_http_info(account_id) return data end
Lists top-level details for all bulk send lists visible to the current user
@param account_id The external account number (int) or account ID Guid. @return [Array<(BulkSendingListSummaries
, Fixnum, Hash)>] BulkSendingListSummaries
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 535 def get_bulk_send_lists_with_http_info(account_id) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.get_bulk_send_lists ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.get_bulk_send_lists" if account_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists".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 => 'BulkSendingListSummaries') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#get_bulk_send_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Initiate a specific bulk send batch action
@param account_id The external account number (int) or account ID Guid. @param bulk_action @param bulk_send_batch_id @param bulk_send_batch_action_request (optional parameter) @return [BulkSendBatchStatus]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 578 def update_bulk_send_batch_action(account_id, bulk_action, bulk_send_batch_id, bulk_send_batch_action_request) data, _status_code, _headers = update_bulk_send_batch_action_with_http_info(account_id, bulk_action, bulk_send_batch_id, bulk_send_batch_action_request) return data end
Initiate a specific bulk send batch action
@param account_id The external account number (int) or account ID Guid. @param bulk_action @param bulk_send_batch_id @param bulk_send_batch_action_request (optional parameter) @return [Array<(BulkSendBatchStatus
, Fixnum, Hash)>] BulkSendBatchStatus
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 590 def update_bulk_send_batch_action_with_http_info(account_id, bulk_action, bulk_send_batch_id, bulk_send_batch_action_request) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.update_bulk_send_batch_action ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.update_bulk_send_batch_action" if account_id.nil? # verify the required parameter 'bulk_action' is set fail ArgumentError, "Missing the required parameter 'bulk_action' when calling BulkEnvelopesApi.update_bulk_send_batch_action" if bulk_action.nil? # verify the required parameter 'bulk_send_batch_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_batch_id' when calling BulkEnvelopesApi.update_bulk_send_batch_action" if bulk_send_batch_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/{bulkAction}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkAction' + '}', bulk_action.to_s).sub('{' + 'bulkSendBatchId' + '}', bulk_send_batch_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 = @api_client.object_to_http_body(bulk_send_batch_action_request) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendBatchStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#update_bulk_send_batch_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Put/Update a specific bulk send batch status
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @param bulk_send_batch_request (optional parameter) @return [BulkSendBatchStatus]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 636 def update_bulk_send_batch_status(account_id, bulk_send_batch_id, bulk_send_batch_request) data, _status_code, _headers = update_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id, bulk_send_batch_request) return data end
Put/Update a specific bulk send batch status
@param account_id The external account number (int) or account ID Guid. @param bulk_send_batch_id @param bulk_send_batch_request (optional parameter) @return [Array<(BulkSendBatchStatus
, Fixnum, Hash)>] BulkSendBatchStatus
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 647 def update_bulk_send_batch_status_with_http_info(account_id, bulk_send_batch_id, bulk_send_batch_request) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.update_bulk_send_batch_status ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.update_bulk_send_batch_status" if account_id.nil? # verify the required parameter 'bulk_send_batch_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_batch_id' when calling BulkEnvelopesApi.update_bulk_send_batch_status" if bulk_send_batch_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendBatchId' + '}', bulk_send_batch_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 = @api_client.object_to_http_body(bulk_send_batch_request) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendBatchStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#update_bulk_send_batch_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Updates an existing bulk send list. If send_envelope query string value is provided, will accept an empty payload and try to send the specified envelope
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_sending_list (optional parameter) @return [BulkSendingList]
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 691 def update_bulk_send_list(account_id, bulk_send_list_id, bulk_sending_list) data, _status_code, _headers = update_bulk_send_list_with_http_info(account_id, bulk_send_list_id, bulk_sending_list) return data end
Updates an existing bulk send list. If send_envelope query string value is provided, will accept an empty payload and try to send the specified envelope
@param account_id The external account number (int) or account ID Guid. @param bulk_send_list_id @param bulk_sending_list (optional parameter) @return [Array<(BulkSendingList
, Fixnum, Hash)>] BulkSendingList
data, response status code and response headers
# File lib/docusign_esign/api/bulk_envelopes_api.rb, line 702 def update_bulk_send_list_with_http_info(account_id, bulk_send_list_id, bulk_sending_list) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: BulkEnvelopesApi.update_bulk_send_list ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkEnvelopesApi.update_bulk_send_list" if account_id.nil? # verify the required parameter 'bulk_send_list_id' is set fail ArgumentError, "Missing the required parameter 'bulk_send_list_id' when calling BulkEnvelopesApi.update_bulk_send_list" if bulk_send_list_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkSendListId' + '}', bulk_send_list_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 = @api_client.object_to_http_body(bulk_sending_list) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BulkSendingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: BulkEnvelopesApi#update_bulk_send_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end