class Kount::KountRisAppApi

Attributes

api_client[RW]

Public Class Methods

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

Public Instance Methods

kount_ris_app_delete(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [nil]

# File lib/kount/api/kount_ris_app_api.rb, line 25
def kount_ris_app_delete(id, opts = {})
  kount_ris_app_delete_with_http_info(id, opts)
  nil
end
kount_ris_app_delete_with_http_info(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/kount/api/kount_ris_app_api.rb, line 33
def kount_ris_app_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: KountRisAppApi.kount_ris_app_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 KountRisAppApi.kount_ris_app_delete"
  end
  # resource path
  local_var_path = '/api/KountRisApp/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # 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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: KountRisAppApi#kount_ris_app_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
kount_ris_app_get(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [String]

# File lib/kount/api/kount_ris_app_api.rb, line 69
def kount_ris_app_get(opts = {})
  data, _status_code, _headers = kount_ris_app_get_with_http_info(opts)
  data
end
kount_ris_app_get_0(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [String]

# File lib/kount/api/kount_ris_app_api.rb, line 112
def kount_ris_app_get_0(id, opts = {})
  data, _status_code, _headers = kount_ris_app_get_0_with_http_info(id, opts)
  data
end
kount_ris_app_get_0_with_http_info(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers

# File lib/kount/api/kount_ris_app_api.rb, line 120
def kount_ris_app_get_0_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: KountRisAppApi.kount_ris_app_get_0 ...'
  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 KountRisAppApi.kount_ris_app_get_0"
  end
  # resource path
  local_var_path = '/api/KountRisApp/{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', 'text/json', 'application/xml', 'text/xml'])

  # 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 => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: KountRisAppApi#kount_ris_app_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
kount_ris_app_get_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers

# File lib/kount/api/kount_ris_app_api.rb, line 76
def kount_ris_app_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: KountRisAppApi.kount_ris_app_get ...'
  end
  # resource path
  local_var_path = '/api/KountRisApp'

  # query parameters
  query_params = {}

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

  # 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 => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: KountRisAppApi#kount_ris_app_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
kount_ris_app_post(_product_details, opts = {}) click to toggle source

@param _product_details @param [Hash] opts the optional parameters @return [String]

# File lib/kount/api/kount_ris_app_api.rb, line 160
def kount_ris_app_post(_product_details, opts = {})
  data, _status_code, _headers = kount_ris_app_post_with_http_info(_product_details, opts)
  data
end
kount_ris_app_post_with_http_info(_product_details, opts = {}) click to toggle source

@param _product_details @param [Hash] opts the optional parameters @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers

# File lib/kount/api/kount_ris_app_api.rb, line 168
def kount_ris_app_post_with_http_info(_product_details, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: KountRisAppApi.kount_ris_app_post ...'
  end
  # verify the required parameter '_product_details' is set
  if @api_client.config.client_side_validation && _product_details.nil?
    fail ArgumentError, "Missing the required parameter '_product_details' when calling KountRisAppApi.kount_ris_app_post"
  end
  # resource path
  local_var_path = '/api/KountRisApp'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(_product_details)
  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 => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: KountRisAppApi#kount_ris_app_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
kount_ris_app_put(id, value, opts = {}) click to toggle source

@param id @param value @param [Hash] opts the optional parameters @return [nil]

# File lib/kount/api/kount_ris_app_api.rb, line 211
def kount_ris_app_put(id, value, opts = {})
  kount_ris_app_put_with_http_info(id, value, opts)
  nil
end
kount_ris_app_put_with_http_info(id, value, opts = {}) click to toggle source

@param id @param value @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/kount/api/kount_ris_app_api.rb, line 220
def kount_ris_app_put_with_http_info(id, value, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: KountRisAppApi.kount_ris_app_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 KountRisAppApi.kount_ris_app_put"
  end
  # verify the required parameter 'value' is set
  if @api_client.config.client_side_validation && value.nil?
    fail ArgumentError, "Missing the required parameter 'value' when calling KountRisAppApi.kount_ris_app_put"
  end
  # resource path
  local_var_path = '/api/KountRisApp/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(value)
  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: KountRisAppApi#kount_ris_app_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end