class DocuSign_eSign::BulkProcessDataSendApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = BulkProcessDataSendApi.default) click to toggle source
# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 20
def initialize(api_client = BulkProcessDataSendApi.default)
  @api_client = api_client
end

Public Instance Methods

create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, bulk_process_request) click to toggle source

Uses the specified bulk envelopes list to update the envelopes specified in the payload

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @param bulk_process_request (optional parameter) @return [BulkProcessResponse]

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 31
def create_bulk_process_request_to_queue(account_id, bulk_process_list_id, process_action, bulk_process_request)
  data, _status_code, _headers = create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action,  bulk_process_request)
  return data
end
create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, bulk_process_request) click to toggle source

Uses the specified bulk envelopes list to update the envelopes specified in the payload

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @param bulk_process_request (optional parameter) @return [Array<(BulkProcessResponse, Fixnum, Hash)>] BulkProcessResponse data, response status code and response headers

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 43
def create_bulk_process_request_to_queue_with_http_info(account_id, bulk_process_list_id, process_action, bulk_process_request)
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: BulkProcessDataSendApi.create_bulk_process_request_to_queue ..."
  end
  # verify the required parameter 'account_id' is set
  fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkProcessDataSendApi.create_bulk_process_request_to_queue" if account_id.nil?
  # verify the required parameter 'bulk_process_list_id' is set
  fail ArgumentError, "Missing the required parameter 'bulk_process_list_id' when calling BulkProcessDataSendApi.create_bulk_process_request_to_queue" if bulk_process_list_id.nil?
  # verify the required parameter 'process_action' is set
  fail ArgumentError, "Missing the required parameter 'process_action' when calling BulkProcessDataSendApi.create_bulk_process_request_to_queue" if process_action.nil?
  # resource path
  local_var_path = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkProcessListId' + '}', bulk_process_list_id.to_s).sub('{' + 'processAction' + '}', process_action.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_process_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 => 'BulkProcessResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BulkProcessDataSendApi#create_bulk_process_request_to_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
delete_bulk_process_list(account_id, bulk_process_list_id, process_action) click to toggle source

Deletes a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [BulkProcessResult]

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 89
def delete_bulk_process_list(account_id, bulk_process_list_id, process_action)
  data, _status_code, _headers = delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  return data
end
delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action) click to toggle source

Deletes a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [Array<(BulkProcessResult, Fixnum, Hash)>] BulkProcessResult data, response status code and response headers

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 100
def delete_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: BulkProcessDataSendApi.delete_bulk_process_list ..."
  end
  # verify the required parameter 'account_id' is set
  fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkProcessDataSendApi.delete_bulk_process_list" if account_id.nil?
  # verify the required parameter 'bulk_process_list_id' is set
  fail ArgumentError, "Missing the required parameter 'bulk_process_list_id' when calling BulkProcessDataSendApi.delete_bulk_process_list" if bulk_process_list_id.nil?
  # verify the required parameter 'process_action' is set
  fail ArgumentError, "Missing the required parameter 'process_action' when calling BulkProcessDataSendApi.delete_bulk_process_list" if process_action.nil?
  # resource path
  local_var_path = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkProcessListId' + '}', bulk_process_list_id.to_s).sub('{' + 'processAction' + '}', process_action.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 => 'BulkProcessResult')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BulkProcessDataSendApi#delete_bulk_process_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_bulk_process_list(account_id, bulk_process_list_id, process_action) click to toggle source

Gets a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [nil]

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 146
def get_bulk_process_list(account_id, bulk_process_list_id, process_action)
  get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  return nil
end
get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action) click to toggle source

Gets a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 157
def get_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: BulkProcessDataSendApi.get_bulk_process_list ..."
  end
  # verify the required parameter 'account_id' is set
  fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkProcessDataSendApi.get_bulk_process_list" if account_id.nil?
  # verify the required parameter 'bulk_process_list_id' is set
  fail ArgumentError, "Missing the required parameter 'bulk_process_list_id' when calling BulkProcessDataSendApi.get_bulk_process_list" if bulk_process_list_id.nil?
  # verify the required parameter 'process_action' is set
  fail ArgumentError, "Missing the required parameter 'process_action' when calling BulkProcessDataSendApi.get_bulk_process_list" if process_action.nil?
  # resource path
  local_var_path = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkProcessListId' + '}', bulk_process_list_id.to_s).sub('{' + 'processAction' + '}', process_action.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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BulkProcessDataSendApi#get_bulk_process_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_bulk_process_list(account_id, bulk_process_list_id, process_action) click to toggle source

Updates a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [nil]

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 202
def update_bulk_process_list(account_id, bulk_process_list_id, process_action)
  update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  return nil
end
update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action) click to toggle source

Updates a specific bulk process list

@param account_id The external account number (int) or account ID Guid. @param bulk_process_list_id @param process_action @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/docusign_esign/api/bulk_process_data_send_api.rb, line 213
def update_bulk_process_list_with_http_info(account_id, bulk_process_list_id, process_action)
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: BulkProcessDataSendApi.update_bulk_process_list ..."
  end
  # verify the required parameter 'account_id' is set
  fail ArgumentError, "Missing the required parameter 'account_id' when calling BulkProcessDataSendApi.update_bulk_process_list" if account_id.nil?
  # verify the required parameter 'bulk_process_list_id' is set
  fail ArgumentError, "Missing the required parameter 'bulk_process_list_id' when calling BulkProcessDataSendApi.update_bulk_process_list" if bulk_process_list_id.nil?
  # verify the required parameter 'process_action' is set
  fail ArgumentError, "Missing the required parameter 'process_action' when calling BulkProcessDataSendApi.update_bulk_process_list" if process_action.nil?
  # resource path
  local_var_path = "/v2.1/accounts/{accountId}/bulk_process_data/actions/{processAction}/{bulkProcessListId}/send".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'bulkProcessListId' + '}', bulk_process_list_id.to_s).sub('{' + 'processAction' + '}', process_action.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(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BulkProcessDataSendApi#update_bulk_process_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end