Class: Wallee::DebtCollectionCaseService

Inherits:
Object
  • Object
show all
Defined in:
lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ DebtCollectionCaseService

Returns a new instance of DebtCollectionCaseService.



24
25
26
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 24

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

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



22
23
24
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 22

def api_client
  @api_client
end

Instance Method Details

#add_collected_amount(space_id, id, collected_amount, external_id, opts = {}) ⇒ DebtCollectionReceipt

Add Collected Amount Adds a new collected amount to the case, creating a new payment receipt.

Parameters:

  • space_id
  • id

    The id of the debt collection case for which the amount should be added.

  • collected_amount

    The amount that has been collected.

  • external_id

    The unique external id of this payment receipt.

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

    the optional parameters

Returns:



36
37
38
39
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 36

def add_collected_amount(space_id, id, collected_amount, external_id, opts = {})
  data, _status_code, _headers = add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts)
  return data
end

#add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts = {}) ⇒ Array<(DebtCollectionReceipt, Fixnum, Hash)>

Returns DebtCollectionReceipt data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case for which the amount should be added.

  • collected_amount

    The amount that has been collected.

  • external_id

    The unique external id of this payment receipt.

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

    the optional parameters

Returns:

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

    DebtCollectionReceipt data, response status code and response headers



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 50

def add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.add_collected_amount ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.add_collected_amount" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.add_collected_amount" if id.nil?
  # verify the required parameter 'collected_amount' is set
  fail ArgumentError, "Missing the required parameter 'collected_amount' when calling DebtCollectionCaseService.add_collected_amount" if collected_amount.nil?
  # verify the required parameter 'external_id' is set
  fail ArgumentError, "Missing the required parameter 'external_id' when calling DebtCollectionCaseService.add_collected_amount" if external_id.nil?
  # resource path
  local_var_path = "/debt-collection-case/addCollectedAmount".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id
  query_params[:'collectedAmount'] = collected_amount
  query_params[:'externalId'] = external_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionReceipt')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#add_collected_amount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#attach_document(space_id, id, file_name, content_base64, opts = {}) ⇒ DebtCollectionCaseDocument

Attach Document Attach an additional supporting document to the case.

Parameters:

  • space_id
  • id

    The id of the debt collection case.

  • file_name

    The file name of the document that is uploaded.

  • content_base64

    The BASE64 encoded contents of the document.

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

    the optional parameters

Returns:



114
115
116
117
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 114

def attach_document(space_id, id, file_name, content_base64, opts = {})
  data, _status_code, _headers = attach_document_with_http_info(space_id, id, file_name, content_base64, opts)
  return data
end

#attach_document_with_http_info(space_id, id, file_name, content_base64, opts = {}) ⇒ Array<(DebtCollectionCaseDocument, Fixnum, Hash)>

Returns DebtCollectionCaseDocument data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case.

  • file_name

    The file name of the document that is uploaded.

  • content_base64

    The BASE64 encoded contents of the document.

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

    the optional parameters

Returns:

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

    DebtCollectionCaseDocument data, response status code and response headers



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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 128

def attach_document_with_http_info(space_id, id, file_name, content_base64, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.attach_document ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.attach_document" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.attach_document" if id.nil?
  # verify the required parameter 'file_name' is set
  fail ArgumentError, "Missing the required parameter 'file_name' when calling DebtCollectionCaseService.attach_document" if file_name.nil?
  # verify the required parameter 'content_base64' is set
  fail ArgumentError, "Missing the required parameter 'content_base64' when calling DebtCollectionCaseService.attach_document" if content_base64.nil?
  # resource path
  local_var_path = "/debt-collection-case/attachDocument".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id
  query_params[:'fileName'] = file_name
  query_params[:'contentBase64'] = content_base64

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCaseDocument')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#attach_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#close(space_id, id, opts = {}) ⇒ DebtCollectionCase

Close Closes the debt collection case, meaning no further money can be collected.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be closed.

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

    the optional parameters

Returns:



190
191
192
193
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 190

def close(space_id, id, opts = {})
  data, _status_code, _headers = close_with_http_info(space_id, id, opts)
  return data
end

#close_with_http_info(space_id, id, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be closed.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
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
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 202

def close_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.close ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.close" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.close" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/close".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#count(space_id, opts = {}) ⇒ Integer

Count Counts the number of items in the database as restricted by the given filter.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :filter (EntityQueryFilter)

    The filter which restricts the entities which are used to calculate the count.

Returns:

  • (Integer)


258
259
260
261
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 258

def count(space_id, opts = {})
  data, _status_code, _headers = count_with_http_info(space_id, opts)
  return data
end

#count_with_http_info(space_id, opts = {}) ⇒ Array<(Integer, Fixnum, Hash)>

Returns Integer data, response status code and response headers.

Parameters:

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

    the optional parameters

Options Hash (opts):

  • :filter (EntityQueryFilter)

    The filter which restricts the entities which are used to calculate the count.

Returns:

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

    Integer data, response status code and response headers



270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 270

def count_with_http_info(space_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.count ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.count" if space_id.nil?
  # resource path
  local_var_path = "/debt-collection-case/count".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json;charset=utf-8']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

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

#create(space_id, entity, opts = {}) ⇒ DebtCollectionCase

Create Creates the entity with the given properties.

Parameters:

  • space_id
  • entity

    The debt collection case object with the properties which should be created.

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

    the optional parameters

Returns:



323
324
325
326
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 323

def create(space_id, entity, opts = {})
  data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
  return data
end

#create_with_http_info(space_id, entity, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • entity

    The debt collection case object with the properties which should be created.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 335

def create_with_http_info(space_id, entity, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.create ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.create" if space_id.nil?
  # verify the required parameter 'entity' is set
  fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.create" if entity.nil?
  # resource path
  local_var_path = "/debt-collection-case/create".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json;charset=utf-8']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = @api_client.object_to_http_body(entity)
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete(space_id, id, opts = {}) ⇒ nil

Delete Deletes the entity with the given id.

Parameters:

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

    the optional parameters

Returns:

  • (nil)


390
391
392
393
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 390

def delete(space_id, id, opts = {})
  delete_with_http_info(space_id, id, opts)
  return nil
end

#delete_with_http_info(space_id, id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

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

    the optional parameters

Returns:

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

    nil, response status code and response headers



402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 402

def delete_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.delete ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.delete" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.delete" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/delete".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json;charset=utf-8']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

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

#documents(space_id, id, opts = {}) ⇒ Array<DebtCollectionCaseDocument>

Documents Returns all documents that are attached to a debt collection case.

Parameters:

  • space_id
  • id

    The id of the debt collection case for which the attached documents are returned.

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

    the optional parameters

Returns:



456
457
458
459
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 456

def documents(space_id, id, opts = {})
  data, _status_code, _headers = documents_with_http_info(space_id, id, opts)
  return data
end

#documents_with_http_info(space_id, id, opts = {}) ⇒ Array<(Array<DebtCollectionCaseDocument>, Fixnum, Hash)>

Returns Array<DebtCollectionCaseDocument> data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case for which the attached documents are returned.

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

    the optional parameters

Returns:

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

    Array<DebtCollectionCaseDocument> data, response status code and response headers



468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 468

def documents_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.documents ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.documents" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.documents" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/documents".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'Array<DebtCollectionCaseDocument>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#mark_as_prepared(space_id, id, opts = {}) ⇒ DebtCollectionCase

Mark Case As Prepared This operation will mark a debt collection case as prepared and allow the collection process to proceed.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be marked as prepared.

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

    the optional parameters

Returns:



524
525
526
527
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 524

def mark_as_prepared(space_id, id, opts = {})
  data, _status_code, _headers = mark_as_prepared_with_http_info(space_id, id, opts)
  return data
end

#mark_as_prepared_with_http_info(space_id, id, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be marked as prepared.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 536

def mark_as_prepared_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.mark_as_prepared ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.mark_as_prepared" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.mark_as_prepared" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/markAsPrepared".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#mark_as_prepared\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#mark_as_reviewed(space_id, id, opts = {}) ⇒ DebtCollectionCase

Mark Case As Reviewed This operation will mark a debt collection case as reviewed and allow the collection process to proceed.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be reviewed.

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

    the optional parameters

Returns:



592
593
594
595
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 592

def mark_as_reviewed(space_id, id, opts = {})
  data, _status_code, _headers = mark_as_reviewed_with_http_info(space_id, id, opts)
  return data
end

#mark_as_reviewed_with_http_info(space_id, id, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be reviewed.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 604

def mark_as_reviewed_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.mark_as_reviewed ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.mark_as_reviewed" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.mark_as_reviewed" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/markAsReviewed".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = []
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = []
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = nil
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#mark_as_reviewed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#read(space_id, id, opts = {}) ⇒ DebtCollectionCase

Read Reads the entity with the given ‘id’ and returns it.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be returned.

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

    the optional parameters

Returns:



660
661
662
663
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 660

def read(space_id, id, opts = {})
  data, _status_code, _headers = read_with_http_info(space_id, id, opts)
  return data
end

#read_with_http_info(space_id, id, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • id

    The id of the debt collection case which should be returned.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 672

def read_with_http_info(space_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.read ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.read" if space_id.nil?
  # verify the required parameter 'id' is set
  fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.read" if id.nil?
  # resource path
  local_var_path = "/debt-collection-case/read".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id
  query_params[:'id'] = id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['*/*']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # 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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#search(space_id, query, opts = {}) ⇒ Array<DebtCollectionCase>

Search Searches for the entities as specified by the given query.

Parameters:

  • space_id
  • query

    The query restricts the cases which are returned by the search.

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

    the optional parameters

Returns:



728
729
730
731
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 728

def search(space_id, query, opts = {})
  data, _status_code, _headers = search_with_http_info(space_id, query, opts)
  return data
end

#search_with_http_info(space_id, query, opts = {}) ⇒ Array<(Array<DebtCollectionCase>, Fixnum, Hash)>

Returns Array<DebtCollectionCase> data, response status code and response headers.

Parameters:

  • space_id
  • query

    The query restricts the cases which are returned by the search.

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

    the optional parameters

Returns:

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

    Array<DebtCollectionCase> data, response status code and response headers



740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 740

def search_with_http_info(space_id, query, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.search ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.search" if space_id.nil?
  # verify the required parameter 'query' is set
  fail ArgumentError, "Missing the required parameter 'query' when calling DebtCollectionCaseService.search" if query.nil?
  # resource path
  local_var_path = "/debt-collection-case/search".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json;charset=utf-8']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = @api_client.object_to_http_body(query)
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'Array<DebtCollectionCase>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update(space_id, entity, opts = {}) ⇒ DebtCollectionCase

Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The ‘id’ and ‘version’ are required to identify the entity.

Parameters:

  • space_id
  • entity

    The object with all the properties which should be updated. The id and the version are required properties.

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

    the optional parameters

Returns:



795
796
797
798
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 795

def update(space_id, entity, opts = {})
  data, _status_code, _headers = update_with_http_info(space_id, entity, opts)
  return data
end

#update_with_http_info(space_id, entity, opts = {}) ⇒ Array<(DebtCollectionCase, Fixnum, Hash)>

Returns DebtCollectionCase data, response status code and response headers.

Parameters:

  • space_id
  • entity

    The object with all the properties which should be updated. The id and the version are required properties.

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

    the optional parameters

Returns:

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

    DebtCollectionCase data, response status code and response headers



807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
# File 'lib/wallee-ruby-sdk/api/debt_collection_case_service_api.rb', line 807

def update_with_http_info(space_id, entity, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.update ..."
  end
  # verify the required parameter 'space_id' is set
  fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.update" if space_id.nil?
  # verify the required parameter 'entity' is set
  fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.update" if entity.nil?
  # resource path
  local_var_path = "/debt-collection-case/update".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'spaceId'] = space_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json;charset=utf-8']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json;charset=utf-8']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}
  
  # connection timeout
  timeout = @api_client.get_connection_timeout()

  # http body (model)
  post_body = @api_client.object_to_http_body(entity)
  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,
    :timeout => timeout,
    :auth_names => auth_names,
    :return_type => 'DebtCollectionCase')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DebtCollectionCaseService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end