class YousignClient::ConsentProcessesApi
Attributes
Public Class Methods
# 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
Get list of Consent Process Value @param member id of member @param [Hash] opts the optional parameters @return [ConsentProcessValueOutput]
# File lib/yousign_client/api/consent_processes_api.rb, line 26 def consent_process_values_get(member, opts = {}) data, _status_code, _headers = consent_process_values_get_with_http_info(member, opts) data end
Get list of Consent Process Value @param member id of member @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 35 def consent_process_values_get_with_http_info(member, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_get ...' end # verify the required parameter 'member' is set if @api_client.config.client_side_validation && member.nil? fail ArgumentError, "Missing the required parameter 'member' when calling ConsentProcessesApi.consent_process_values_get" end # resource path local_var_path = '/consent_process_values' # query parameters query_params = {} query_params[:'member'] = member # 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 = nil auth_names = ['api_key'] 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 => 'ConsentProcessValueOutput') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_process_values_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get a Consent Process Value @param id @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @return [ConsentProcessValueOutput]
# File lib/yousign_client/api/consent_processes_api.rb, line 80 def consent_process_values_id_get(id, opts = {}) data, _status_code, _headers = consent_process_values_id_get_with_http_info(id, opts) data end
Get a Consent Process Value @param id @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @return [Array<(ConsentProcessValueOutput
, Fixnum, Hash)>] ConsentProcessValueOutput
data, response status code and response headers
# File lib/yousign_client/api/consent_processes_api.rb, line 90 def consent_process_values_id_get_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_id_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_process_values_id_get" end # resource path local_var_path = '/consent_process_values/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'member'] = opts[:'member'] if !opts[:'member'].nil? # 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 = nil auth_names = ['api_key'] 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 => 'ConsentProcessValueOutput') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_process_values_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
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
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
Get list of Consent Processes @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @option opts [String] :procedure id of procedure (required if the member attribut is not set) @return [Array<ConsentProcessOutput>]
# File lib/yousign_client/api/consent_processes_api.rb, line 187 def consent_processes_get(opts = {}) data, _status_code, _headers = consent_processes_get_with_http_info(opts) data end
Get list of Consent Processes @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @option opts [String] :procedure id of procedure (required if the member attribut is not set) @return [Array<(Array<ConsentProcessOutput>, Fixnum, Hash)>] Array<ConsentProcessOutput> data, response status code and response headers
# File lib/yousign_client/api/consent_processes_api.rb, line 197 def consent_processes_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_get ...' end # resource path local_var_path = '/consent_processes' # query parameters query_params = {} query_params[:'member'] = opts[:'member'] if !opts[:'member'].nil? query_params[:'procedure'] = opts[:'procedure'] if !opts[:'procedure'].nil? # 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 = nil auth_names = ['api_key'] 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 => 'Array<ConsentProcessOutput>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_processes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete a Consent Process @param id @param [Hash] opts the optional parameters @return [nil]
# File lib/yousign_client/api/consent_processes_api.rb, line 238 def consent_processes_id_delete(id, opts = {}) consent_processes_id_delete_with_http_info(id, opts) nil end
Delete a Consent Process @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/yousign_client/api/consent_processes_api.rb, line 247 def consent_processes_id_delete_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_delete" end # resource path local_var_path = '/consent_processes/{id}'.sub('{' + 'id' + '}', 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']) # 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 = nil auth_names = ['api_key'] 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) if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_processes_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get a Consent Process @param id @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @return [ConsentProcessOutput]
# File lib/yousign_client/api/consent_processes_api.rb, line 290 def consent_processes_id_get(id, opts = {}) data, _status_code, _headers = consent_processes_id_get_with_http_info(id, opts) data end
Get a Consent Process @param id @param [Hash] opts the optional parameters @option opts [String] :member id of member (required for anonymous) @return [Array<(ConsentProcessOutput
, Fixnum, Hash)>] ConsentProcessOutput
data, response status code and response headers
# File lib/yousign_client/api/consent_processes_api.rb, line 300 def consent_processes_id_get_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_get" end # resource path local_var_path = '/consent_processes/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'member'] = opts[:'member'] if !opts[:'member'].nil? # 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 = nil auth_names = ['api_key'] 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 => 'ConsentProcessOutput') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_processes_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update a Consent Process @param id @param body @param [Hash] opts the optional parameters @return [ConsentProcessOutput]
# File lib/yousign_client/api/consent_processes_api.rb, line 345 def consent_processes_id_put(id, body, opts = {}) data, _status_code, _headers = consent_processes_id_put_with_http_info(id, body, opts) data end
Update a Consent Process @param id @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 355 def consent_processes_id_put_with_http_info(id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_put" 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_id_put" end # resource path local_var_path = '/consent_processes/{id}'.sub('{' + 'id' + '}', 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']) # 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(: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 => 'ConsentProcessOutput') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConsentProcessesApi#consent_processes_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
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
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