class YousignClient::ConsentProcessesApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/yousign_client/api/consent_processes_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

consent_process_values_post(body, opts = {}) click to toggle source

Create a new Consent Process Value @param body @param [Hash] opts the optional parameters @return [ConsentProcessValueOutput]

# File lib/yousign_client/api/consent_processes_api.rb, line 134
def consent_process_values_post(body, opts = {})
  data, _status_code, _headers = consent_process_values_post_with_http_info(body, opts)
  data
end
consent_process_values_post_with_http_info(body, opts = {}) click to toggle source

Create a new Consent Process Value @param body @param [Hash] opts the optional parameters @return [Array<(ConsentProcessValueOutput, Fixnum, Hash)>] ConsentProcessValueOutput data, response status code and response headers

# File lib/yousign_client/api/consent_processes_api.rb, line 143
def consent_process_values_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling ConsentProcessesApi.consent_process_values_post"
  end
  # resource path
  local_var_path = '/consent_process_values'

  # query parameters
  query_params = {}

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

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['api_key']
  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 => 'ConsentProcessValueOutput')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_process_values_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
consent_processes_post(body, opts = {}) click to toggle source

Create a new Consent Process @param body @param [Hash] opts the optional parameters @return [ConsentProcessOutput]

# File lib/yousign_client/api/consent_processes_api.rb, line 402
def consent_processes_post(body, opts = {})
  data, _status_code, _headers = consent_processes_post_with_http_info(body, opts)
  data
end
consent_processes_post_with_http_info(body, opts = {}) click to toggle source

Create a new Consent Process @param body @param [Hash] opts the optional parameters @return [Array<(ConsentProcessOutput, Fixnum, Hash)>] ConsentProcessOutput data, response status code and response headers

# File lib/yousign_client/api/consent_processes_api.rb, line 411
def consent_processes_post_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_post ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling ConsentProcessesApi.consent_processes_post"
  end
  # resource path
  local_var_path = '/consent_processes'

  # query parameters
  query_params = {}

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

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['api_key']
  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 => 'ConsentProcessOutput')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_processes_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end