Class: Kount::KountRisAppApi

Inherits:
Object
  • Object
show all
Defined in:
lib/kount/api/kount_ris_app_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ KountRisAppApi

Returns a new instance of KountRisAppApi.



19
20
21
# File 'lib/kount/api/kount_ris_app_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/kount/api/kount_ris_app_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#kount_ris_app_delete(id, opts = {}) ⇒ nil

Parameters:

  • id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


25
26
27
28
# 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 = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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 = {}) ⇒ String

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


69
70
71
72
# 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 = {}) ⇒ String

Parameters:

  • id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


112
113
114
115
# 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 = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# 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 = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# 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 = {}) ⇒ String

Parameters:

  • _product_details
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


160
161
162
163
# 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 = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • _product_details
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# 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 = {}) ⇒ nil

Parameters:

  • id
  • value
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


211
212
213
214
# 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 = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • id
  • value
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# 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