wallee-ruby-sdk 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +21 -11
  3. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +270 -0
  4. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +302 -0
  5. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +230 -0
  6. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +14 -4
  7. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +1 -0
  8. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +502 -0
  9. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +310 -0
  10. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +300 -0
  11. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +232 -0
  12. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +48 -0
  13. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +300 -0
  14. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +43 -0
  15. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +288 -0
  16. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +222 -0
  17. data/lib/wallee-ruby-sdk/models/debt_collector.rb +222 -0
  18. data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +258 -0
  19. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +222 -0
  20. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +302 -0
  21. data/lib/wallee-ruby-sdk/models/document_template_type.rb +1 -11
  22. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +215 -0
  23. data/lib/wallee-ruby-sdk/models/entity_query.rb +1 -1
  24. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +10 -0
  25. data/lib/wallee-ruby-sdk/models/environment.rb +43 -0
  26. data/lib/wallee-ruby-sdk/models/metric_usage.rb +232 -0
  27. data/lib/wallee-ruby-sdk/models/payment_connector.rb +23 -1
  28. data/lib/wallee-ruby-sdk/models/payment_contract.rb +338 -0
  29. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +46 -0
  30. data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +232 -0
  31. data/lib/wallee-ruby-sdk/models/payment_link.rb +382 -0
  32. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +342 -0
  33. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +337 -0
  34. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +43 -0
  35. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +332 -0
  36. data/lib/wallee-ruby-sdk/models/payment_method.rb +13 -1
  37. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +11 -1
  38. data/lib/wallee-ruby-sdk/models/refund.rb +11 -1
  39. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +234 -0
  40. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +51 -0
  41. data/lib/wallee-ruby-sdk/models/rest_country.rb +11 -1
  42. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  43. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +290 -0
  44. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +255 -0
  45. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +290 -0
  46. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +290 -0
  47. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +260 -0
  48. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +260 -0
  49. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +2 -2
  50. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +2 -2
  51. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +11 -1
  52. data/lib/wallee-ruby-sdk/models/tokenizationn_mode.rb +44 -0
  53. data/lib/wallee-ruby-sdk/models/transaction.rb +63 -3
  54. data/lib/wallee-ruby-sdk/models/transaction_create.rb +41 -1
  55. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +43 -0
  56. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +11 -1
  57. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +11 -1
  58. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +228 -0
  59. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +233 -0
  60. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +1 -11
  61. data/lib/wallee-ruby-sdk/services/account_service_api.rb +2 -2
  62. data/lib/wallee-ruby-sdk/services/application_user_service_api.rb +2 -2
  63. data/lib/wallee-ruby-sdk/services/card_processing_service_api.rb +176 -0
  64. data/lib/wallee-ruby-sdk/services/charge_attempt_service_api.rb +2 -2
  65. data/lib/wallee-ruby-sdk/services/charge_flow_level_service_api.rb +4 -4
  66. data/lib/wallee-ruby-sdk/services/charge_flow_service_api.rb +6 -6
  67. data/lib/wallee-ruby-sdk/services/condition_type_service_api.rb +4 -4
  68. data/lib/wallee-ruby-sdk/services/country_service_api.rb +2 -2
  69. data/lib/wallee-ruby-sdk/services/country_state_service_api.rb +4 -4
  70. data/lib/wallee-ruby-sdk/services/currency_service_api.rb +2 -2
  71. data/lib/wallee-ruby-sdk/services/debt_collection_case_service_api.rb +800 -0
  72. data/lib/wallee-ruby-sdk/services/debt_collector_configuration_service_api.rb +217 -0
  73. data/lib/wallee-ruby-sdk/services/debt_collector_service_api.rb +143 -0
  74. data/lib/wallee-ruby-sdk/services/delivery_indication_service_api.rb +6 -6
  75. data/lib/wallee-ruby-sdk/services/document_template_service_api.rb +2 -2
  76. data/lib/wallee-ruby-sdk/services/document_template_type_service_api.rb +4 -4
  77. data/lib/wallee-ruby-sdk/services/human_user_service_api.rb +59 -2
  78. data/lib/wallee-ruby-sdk/services/installment_payment_service_api.rb +4 -4
  79. data/lib/wallee-ruby-sdk/services/installment_payment_slice_service_api.rb +2 -2
  80. data/lib/wallee-ruby-sdk/services/installment_plan_calculation_service_api.rb +2 -2
  81. data/lib/wallee-ruby-sdk/services/installment_plan_configuration_service_api.rb +2 -2
  82. data/lib/wallee-ruby-sdk/services/installment_plan_slice_configuration_service_api.rb +2 -2
  83. data/lib/wallee-ruby-sdk/services/label_description_group_service_api.rb +4 -4
  84. data/lib/wallee-ruby-sdk/services/label_description_service_api.rb +4 -4
  85. data/lib/wallee-ruby-sdk/services/language_service_api.rb +2 -2
  86. data/lib/wallee-ruby-sdk/services/legal_organization_form_service_api.rb +201 -0
  87. data/lib/wallee-ruby-sdk/services/manual_task_service_api.rb +2 -2
  88. data/lib/wallee-ruby-sdk/services/mertic_usage_service_api.rb +100 -0
  89. data/lib/wallee-ruby-sdk/services/payment_connector_configuration_service_api.rb +2 -2
  90. data/lib/wallee-ruby-sdk/services/payment_connector_service_api.rb +4 -4
  91. data/lib/wallee-ruby-sdk/services/payment_link_service_api.rb +402 -0
  92. data/lib/wallee-ruby-sdk/services/payment_method_configuration_service_api.rb +2 -2
  93. data/lib/wallee-ruby-sdk/services/payment_method_service_api.rb +4 -4
  94. data/lib/wallee-ruby-sdk/services/payment_processor_configuration_service_api.rb +2 -2
  95. data/lib/wallee-ruby-sdk/services/payment_processor_service_api.rb +4 -4
  96. data/lib/wallee-ruby-sdk/services/permission_service_api.rb +4 -4
  97. data/lib/wallee-ruby-sdk/services/refund_service_api.rb +10 -10
  98. data/lib/wallee-ruby-sdk/services/space_service_api.rb +2 -2
  99. data/lib/wallee-ruby-sdk/services/static_value_service_api.rb +4 -4
  100. data/lib/wallee-ruby-sdk/services/subscriber_service_api.rb +2 -2
  101. data/lib/wallee-ruby-sdk/services/subscription_affiliate_service_api.rb +402 -0
  102. data/lib/wallee-ruby-sdk/services/subscription_charge_service_api.rb +4 -4
  103. data/lib/wallee-ruby-sdk/services/subscription_ledger_entry_service_api.rb +2 -2
  104. data/lib/wallee-ruby-sdk/services/subscription_metric_service_api.rb +2 -2
  105. data/lib/wallee-ruby-sdk/services/subscription_metric_usage_service_api.rb +2 -2
  106. data/lib/wallee-ruby-sdk/services/subscription_period_bill_service_api.rb +2 -2
  107. data/lib/wallee-ruby-sdk/services/subscription_product_component_group_service_api.rb +2 -2
  108. data/lib/wallee-ruby-sdk/services/subscription_product_component_service_api.rb +2 -2
  109. data/lib/wallee-ruby-sdk/services/subscription_product_fee_tier_service_api.rb +2 -2
  110. data/lib/wallee-ruby-sdk/services/subscription_product_metered_fee_service_api.rb +2 -2
  111. data/lib/wallee-ruby-sdk/services/subscription_product_period_fee_service_api.rb +2 -2
  112. data/lib/wallee-ruby-sdk/services/subscription_product_retirement_service_api.rb +2 -2
  113. data/lib/wallee-ruby-sdk/services/subscription_product_service_api.rb +2 -2
  114. data/lib/wallee-ruby-sdk/services/subscription_product_setup_fee_service_api.rb +2 -2
  115. data/lib/wallee-ruby-sdk/services/subscription_product_version_retirement_service_api.rb +2 -2
  116. data/lib/wallee-ruby-sdk/services/subscription_product_version_service_api.rb +2 -2
  117. data/lib/wallee-ruby-sdk/services/subscription_service_api.rb +12 -12
  118. data/lib/wallee-ruby-sdk/services/subscription_suspension_service_api.rb +2 -2
  119. data/lib/wallee-ruby-sdk/services/subscription_version_service_api.rb +2 -2
  120. data/lib/wallee-ruby-sdk/services/token_service_api.rb +2 -2
  121. data/lib/wallee-ruby-sdk/services/token_version_service_api.rb +4 -4
  122. data/lib/wallee-ruby-sdk/services/transaction_completion_service_api.rb +6 -6
  123. data/lib/wallee-ruby-sdk/services/transaction_invoice_service_api.rb +6 -6
  124. data/lib/wallee-ruby-sdk/services/transaction_service_api.rb +143 -18
  125. data/lib/wallee-ruby-sdk/services/transaction_void_service_api.rb +6 -6
  126. data/lib/wallee-ruby-sdk/services/user_account_role_service_api.rb +6 -6
  127. data/lib/wallee-ruby-sdk/services/user_space_role_service_api.rb +9 -9
  128. data/lib/wallee-ruby-sdk/services/webhook_listener_service_api.rb +2 -2
  129. data/lib/wallee-ruby-sdk/services/webhook_url_service_api.rb +2 -2
  130. data/lib/wallee-ruby-sdk/version.rb +1 -1
  131. data/lib/wallee-ruby-sdk.rb +47 -0
  132. metadata +50 -3
@@ -0,0 +1,800 @@
1
+ =begin
2
+ Wallee API: 1.0.0
3
+
4
+ The wallee API allows an easy interaction with the wallee web service.
5
+
6
+
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License.
19
+
20
+ =end
21
+
22
+ require "uri"
23
+
24
+ module Wallee
25
+ class DebtCollectionCaseService
26
+ attr_accessor :api_client
27
+
28
+ def initialize(api_client = ApiClient.default)
29
+ @api_client = api_client
30
+ end
31
+
32
+ # Add Collected Amount
33
+ # Adds a new collected amount to the case, creating a new payment receipt.
34
+ # @param space_id
35
+ # @param id The id of the debt collection case for which the amount should be added.
36
+ # @param collected_amount The amount that has been collected.
37
+ # @param external_id The unique external id of this payment receipt.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [DebtCollectionReceipt]
40
+ def debt_collection_case_service_add_collected_amount(space_id, id, collected_amount, external_id, opts = {})
41
+ data, _status_code, _headers = debt_collection_case_service_add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts)
42
+ return data
43
+ end
44
+
45
+ # Add Collected Amount
46
+ # Adds a new collected amount to the case, creating a new payment receipt.
47
+ # @param space_id
48
+ # @param id The id of the debt collection case for which the amount should be added.
49
+ # @param collected_amount The amount that has been collected.
50
+ # @param external_id The unique external id of this payment receipt.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [Array<(DebtCollectionReceipt, Fixnum, Hash)>] DebtCollectionReceipt data, response status code and response headers
53
+ def debt_collection_case_service_add_collected_amount_with_http_info(space_id, id, collected_amount, external_id, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_add_collected_amount ..."
56
+ end
57
+ # verify the required parameter 'space_id' is set
58
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_add_collected_amount" if space_id.nil?
59
+ # verify the required parameter 'id' is set
60
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_add_collected_amount" if id.nil?
61
+ # verify the required parameter 'collected_amount' is set
62
+ fail ArgumentError, "Missing the required parameter 'collected_amount' when calling DebtCollectionCaseService.debt_collection_case_service_add_collected_amount" if collected_amount.nil?
63
+ # verify the required parameter 'external_id' is set
64
+ fail ArgumentError, "Missing the required parameter 'external_id' when calling DebtCollectionCaseService.debt_collection_case_service_add_collected_amount" if external_id.nil?
65
+ # resource path
66
+ local_var_path = "/debt-collection-case/addCollectedAmount".sub('{format}','json')
67
+
68
+ # query parameters
69
+ query_params = {}
70
+ query_params[:'spaceId'] = space_id
71
+ query_params[:'id'] = id
72
+ query_params[:'collectedAmount'] = collected_amount
73
+ query_params[:'externalId'] = external_id
74
+
75
+ # header parameters
76
+ header_params = {}
77
+
78
+ # HTTP header 'Accept' (if needed)
79
+ local_header_accept = []
80
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
81
+
82
+ # HTTP header 'Content-Type'
83
+ local_header_content_type = []
84
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
85
+
86
+ # form parameters
87
+ form_params = {}
88
+
89
+ # http body (model)
90
+ post_body = nil
91
+ auth_names = []
92
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
93
+ :header_params => header_params,
94
+ :query_params => query_params,
95
+ :form_params => form_params,
96
+ :body => post_body,
97
+ :auth_names => auth_names,
98
+ :return_type => 'DebtCollectionReceipt')
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_add_collected_amount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
+ end
102
+ return data, status_code, headers
103
+ end
104
+
105
+ # Attach Document
106
+ # Attach an additional supporting document to the case.
107
+ # @param space_id
108
+ # @param id The id of the debt collection case.
109
+ # @param file_name The file name of the document that is uploaded.
110
+ # @param content_base64 The BASE64 encoded contents of the document.
111
+ # @param [Hash] opts the optional parameters
112
+ # @return [DebtCollectionCaseDocument]
113
+ def debt_collection_case_service_attach_document(space_id, id, file_name, content_base64, opts = {})
114
+ data, _status_code, _headers = debt_collection_case_service_attach_document_with_http_info(space_id, id, file_name, content_base64, opts)
115
+ return data
116
+ end
117
+
118
+ # Attach Document
119
+ # Attach an additional supporting document to the case.
120
+ # @param space_id
121
+ # @param id The id of the debt collection case.
122
+ # @param file_name The file name of the document that is uploaded.
123
+ # @param content_base64 The BASE64 encoded contents of the document.
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [Array<(DebtCollectionCaseDocument, Fixnum, Hash)>] DebtCollectionCaseDocument data, response status code and response headers
126
+ def debt_collection_case_service_attach_document_with_http_info(space_id, id, file_name, content_base64, opts = {})
127
+ if @api_client.config.debugging
128
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_attach_document ..."
129
+ end
130
+ # verify the required parameter 'space_id' is set
131
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_attach_document" if space_id.nil?
132
+ # verify the required parameter 'id' is set
133
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_attach_document" if id.nil?
134
+ # verify the required parameter 'file_name' is set
135
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling DebtCollectionCaseService.debt_collection_case_service_attach_document" if file_name.nil?
136
+ # verify the required parameter 'content_base64' is set
137
+ fail ArgumentError, "Missing the required parameter 'content_base64' when calling DebtCollectionCaseService.debt_collection_case_service_attach_document" if content_base64.nil?
138
+ # resource path
139
+ local_var_path = "/debt-collection-case/attachDocument".sub('{format}','json')
140
+
141
+ # query parameters
142
+ query_params = {}
143
+ query_params[:'spaceId'] = space_id
144
+ query_params[:'id'] = id
145
+ query_params[:'fileName'] = file_name
146
+ query_params[:'contentBase64'] = content_base64
147
+
148
+ # header parameters
149
+ header_params = {}
150
+
151
+ # HTTP header 'Accept' (if needed)
152
+ local_header_accept = []
153
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
154
+
155
+ # HTTP header 'Content-Type'
156
+ local_header_content_type = []
157
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
158
+
159
+ # form parameters
160
+ form_params = {}
161
+
162
+ # http body (model)
163
+ post_body = nil
164
+ auth_names = []
165
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
166
+ :header_params => header_params,
167
+ :query_params => query_params,
168
+ :form_params => form_params,
169
+ :body => post_body,
170
+ :auth_names => auth_names,
171
+ :return_type => 'DebtCollectionCaseDocument')
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_attach_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ end
175
+ return data, status_code, headers
176
+ end
177
+
178
+ # Close
179
+ # Closes the debt collection case, meaning no further money can be collected.
180
+ # @param space_id
181
+ # @param id The id of the debt collection case which should be closed.
182
+ # @param [Hash] opts the optional parameters
183
+ # @return [DebtCollectionCase]
184
+ def debt_collection_case_service_close(space_id, id, opts = {})
185
+ data, _status_code, _headers = debt_collection_case_service_close_with_http_info(space_id, id, opts)
186
+ return data
187
+ end
188
+
189
+ # Close
190
+ # Closes the debt collection case, meaning no further money can be collected.
191
+ # @param space_id
192
+ # @param id The id of the debt collection case which should be closed.
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
195
+ def debt_collection_case_service_close_with_http_info(space_id, id, opts = {})
196
+ if @api_client.config.debugging
197
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_close ..."
198
+ end
199
+ # verify the required parameter 'space_id' is set
200
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_close" if space_id.nil?
201
+ # verify the required parameter 'id' is set
202
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_close" if id.nil?
203
+ # resource path
204
+ local_var_path = "/debt-collection-case/close".sub('{format}','json')
205
+
206
+ # query parameters
207
+ query_params = {}
208
+ query_params[:'spaceId'] = space_id
209
+ query_params[:'id'] = id
210
+
211
+ # header parameters
212
+ header_params = {}
213
+
214
+ # HTTP header 'Accept' (if needed)
215
+ local_header_accept = []
216
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
217
+
218
+ # HTTP header 'Content-Type'
219
+ local_header_content_type = []
220
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
221
+
222
+ # form parameters
223
+ form_params = {}
224
+
225
+ # http body (model)
226
+ post_body = nil
227
+ auth_names = []
228
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
229
+ :header_params => header_params,
230
+ :query_params => query_params,
231
+ :form_params => form_params,
232
+ :body => post_body,
233
+ :auth_names => auth_names,
234
+ :return_type => 'DebtCollectionCase')
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
237
+ end
238
+ return data, status_code, headers
239
+ end
240
+
241
+ # Count
242
+ # Counts the number of items in the database as restricted by the given filter.
243
+ # @param space_id
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
246
+ # @return [Integer]
247
+ def debt_collection_case_service_count(space_id, opts = {})
248
+ data, _status_code, _headers = debt_collection_case_service_count_with_http_info(space_id, opts)
249
+ return data
250
+ end
251
+
252
+ # Count
253
+ # Counts the number of items in the database as restricted by the given filter.
254
+ # @param space_id
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
257
+ # @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
258
+ def debt_collection_case_service_count_with_http_info(space_id, opts = {})
259
+ if @api_client.config.debugging
260
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_count ..."
261
+ end
262
+ # verify the required parameter 'space_id' is set
263
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_count" if space_id.nil?
264
+ # resource path
265
+ local_var_path = "/debt-collection-case/count".sub('{format}','json')
266
+
267
+ # query parameters
268
+ query_params = {}
269
+ query_params[:'spaceId'] = space_id
270
+
271
+ # header parameters
272
+ header_params = {}
273
+
274
+ # HTTP header 'Accept' (if needed)
275
+ local_header_accept = ['application/json;charset=utf-8']
276
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
277
+
278
+ # HTTP header 'Content-Type'
279
+ local_header_content_type = ['application/json;charset=utf-8']
280
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
281
+
282
+ # form parameters
283
+ form_params = {}
284
+
285
+ # http body (model)
286
+ post_body = @api_client.object_to_http_body(opts[:'filter'])
287
+ auth_names = []
288
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
289
+ :header_params => header_params,
290
+ :query_params => query_params,
291
+ :form_params => form_params,
292
+ :body => post_body,
293
+ :auth_names => auth_names,
294
+ :return_type => 'Integer')
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
297
+ end
298
+ return data, status_code, headers
299
+ end
300
+
301
+ # Create
302
+ # Creates the entity with the given properties.
303
+ # @param space_id
304
+ # @param entity The debt collection case object with the properties which should be created.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [DebtCollectionCase]
307
+ def debt_collection_case_service_create(space_id, entity, opts = {})
308
+ data, _status_code, _headers = debt_collection_case_service_create_with_http_info(space_id, entity, opts)
309
+ return data
310
+ end
311
+
312
+ # Create
313
+ # Creates the entity with the given properties.
314
+ # @param space_id
315
+ # @param entity The debt collection case object with the properties which should be created.
316
+ # @param [Hash] opts the optional parameters
317
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
318
+ def debt_collection_case_service_create_with_http_info(space_id, entity, opts = {})
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_create ..."
321
+ end
322
+ # verify the required parameter 'space_id' is set
323
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_create" if space_id.nil?
324
+ # verify the required parameter 'entity' is set
325
+ fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.debt_collection_case_service_create" if entity.nil?
326
+ # resource path
327
+ local_var_path = "/debt-collection-case/create".sub('{format}','json')
328
+
329
+ # query parameters
330
+ query_params = {}
331
+ query_params[:'spaceId'] = space_id
332
+
333
+ # header parameters
334
+ header_params = {}
335
+
336
+ # HTTP header 'Accept' (if needed)
337
+ local_header_accept = ['application/json;charset=utf-8']
338
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
339
+
340
+ # HTTP header 'Content-Type'
341
+ local_header_content_type = ['application/json;charset=utf-8']
342
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
343
+
344
+ # form parameters
345
+ form_params = {}
346
+
347
+ # http body (model)
348
+ post_body = @api_client.object_to_http_body(entity)
349
+ auth_names = []
350
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
351
+ :header_params => header_params,
352
+ :query_params => query_params,
353
+ :form_params => form_params,
354
+ :body => post_body,
355
+ :auth_names => auth_names,
356
+ :return_type => 'DebtCollectionCase')
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
359
+ end
360
+ return data, status_code, headers
361
+ end
362
+
363
+ # Delete
364
+ # Deletes the entity with the given id.
365
+ # @param space_id
366
+ # @param id
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [nil]
369
+ def debt_collection_case_service_delete(space_id, id, opts = {})
370
+ debt_collection_case_service_delete_with_http_info(space_id, id, opts)
371
+ return nil
372
+ end
373
+
374
+ # Delete
375
+ # Deletes the entity with the given id.
376
+ # @param space_id
377
+ # @param id
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
380
+ def debt_collection_case_service_delete_with_http_info(space_id, id, opts = {})
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_delete ..."
383
+ end
384
+ # verify the required parameter 'space_id' is set
385
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_delete" if space_id.nil?
386
+ # verify the required parameter 'id' is set
387
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_delete" if id.nil?
388
+ # resource path
389
+ local_var_path = "/debt-collection-case/delete".sub('{format}','json')
390
+
391
+ # query parameters
392
+ query_params = {}
393
+ query_params[:'spaceId'] = space_id
394
+
395
+ # header parameters
396
+ header_params = {}
397
+
398
+ # HTTP header 'Accept' (if needed)
399
+ local_header_accept = ['application/json;charset=utf-8']
400
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
401
+
402
+ # HTTP header 'Content-Type'
403
+ local_header_content_type = ['application/json;charset=utf-8']
404
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
405
+
406
+ # form parameters
407
+ form_params = {}
408
+
409
+ # http body (model)
410
+ post_body = @api_client.object_to_http_body(id)
411
+ auth_names = []
412
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names)
418
+ if @api_client.config.debugging
419
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
420
+ end
421
+ return data, status_code, headers
422
+ end
423
+
424
+ # Documents
425
+ # Returns all documents that are attached to a debt collection case.
426
+ # @param space_id
427
+ # @param id The id of the debt collection case for which the attached documents are returned.
428
+ # @param [Hash] opts the optional parameters
429
+ # @return [Array<DebtCollectionCaseDocument>]
430
+ def debt_collection_case_service_documents(space_id, id, opts = {})
431
+ data, _status_code, _headers = debt_collection_case_service_documents_with_http_info(space_id, id, opts)
432
+ return data
433
+ end
434
+
435
+ # Documents
436
+ # Returns all documents that are attached to a debt collection case.
437
+ # @param space_id
438
+ # @param id The id of the debt collection case for which the attached documents are returned.
439
+ # @param [Hash] opts the optional parameters
440
+ # @return [Array<(Array<DebtCollectionCaseDocument>, Fixnum, Hash)>] Array<DebtCollectionCaseDocument> data, response status code and response headers
441
+ def debt_collection_case_service_documents_with_http_info(space_id, id, opts = {})
442
+ if @api_client.config.debugging
443
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_documents ..."
444
+ end
445
+ # verify the required parameter 'space_id' is set
446
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_documents" if space_id.nil?
447
+ # verify the required parameter 'id' is set
448
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_documents" if id.nil?
449
+ # resource path
450
+ local_var_path = "/debt-collection-case/documents".sub('{format}','json')
451
+
452
+ # query parameters
453
+ query_params = {}
454
+ query_params[:'spaceId'] = space_id
455
+ query_params[:'id'] = id
456
+
457
+ # header parameters
458
+ header_params = {}
459
+
460
+ # HTTP header 'Accept' (if needed)
461
+ local_header_accept = []
462
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
463
+
464
+ # HTTP header 'Content-Type'
465
+ local_header_content_type = []
466
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
467
+
468
+ # form parameters
469
+ form_params = {}
470
+
471
+ # http body (model)
472
+ post_body = nil
473
+ auth_names = []
474
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
475
+ :header_params => header_params,
476
+ :query_params => query_params,
477
+ :form_params => form_params,
478
+ :body => post_body,
479
+ :auth_names => auth_names,
480
+ :return_type => 'Array<DebtCollectionCaseDocument>')
481
+ if @api_client.config.debugging
482
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
483
+ end
484
+ return data, status_code, headers
485
+ end
486
+
487
+ # Mark Case As Prepared
488
+ # This operation will mark a debt collection case as prepared and allow the collection process to proceed.
489
+ # @param space_id
490
+ # @param id The id of the debt collection case which should be marked as prepared.
491
+ # @param [Hash] opts the optional parameters
492
+ # @return [DebtCollectionCase]
493
+ def debt_collection_case_service_mark_as_prepared(space_id, id, opts = {})
494
+ data, _status_code, _headers = debt_collection_case_service_mark_as_prepared_with_http_info(space_id, id, opts)
495
+ return data
496
+ end
497
+
498
+ # Mark Case As Prepared
499
+ # This operation will mark a debt collection case as prepared and allow the collection process to proceed.
500
+ # @param space_id
501
+ # @param id The id of the debt collection case which should be marked as prepared.
502
+ # @param [Hash] opts the optional parameters
503
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
504
+ def debt_collection_case_service_mark_as_prepared_with_http_info(space_id, id, opts = {})
505
+ if @api_client.config.debugging
506
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_mark_as_prepared ..."
507
+ end
508
+ # verify the required parameter 'space_id' is set
509
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_mark_as_prepared" if space_id.nil?
510
+ # verify the required parameter 'id' is set
511
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_mark_as_prepared" if id.nil?
512
+ # resource path
513
+ local_var_path = "/debt-collection-case/markAsPrepared".sub('{format}','json')
514
+
515
+ # query parameters
516
+ query_params = {}
517
+ query_params[:'spaceId'] = space_id
518
+ query_params[:'id'] = id
519
+
520
+ # header parameters
521
+ header_params = {}
522
+
523
+ # HTTP header 'Accept' (if needed)
524
+ local_header_accept = []
525
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
526
+
527
+ # HTTP header 'Content-Type'
528
+ local_header_content_type = []
529
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
530
+
531
+ # form parameters
532
+ form_params = {}
533
+
534
+ # http body (model)
535
+ post_body = nil
536
+ auth_names = []
537
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
538
+ :header_params => header_params,
539
+ :query_params => query_params,
540
+ :form_params => form_params,
541
+ :body => post_body,
542
+ :auth_names => auth_names,
543
+ :return_type => 'DebtCollectionCase')
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_mark_as_prepared\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
546
+ end
547
+ return data, status_code, headers
548
+ end
549
+
550
+ # Mark Case As Reviewed
551
+ # This operation will mark a debt collection case as reviewed and allow the collection process to proceed.
552
+ # @param space_id
553
+ # @param id The id of the debt collection case which should be reviewed.
554
+ # @param [Hash] opts the optional parameters
555
+ # @return [DebtCollectionCase]
556
+ def debt_collection_case_service_mark_as_reviewed(space_id, id, opts = {})
557
+ data, _status_code, _headers = debt_collection_case_service_mark_as_reviewed_with_http_info(space_id, id, opts)
558
+ return data
559
+ end
560
+
561
+ # Mark Case As Reviewed
562
+ # This operation will mark a debt collection case as reviewed and allow the collection process to proceed.
563
+ # @param space_id
564
+ # @param id The id of the debt collection case which should be reviewed.
565
+ # @param [Hash] opts the optional parameters
566
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
567
+ def debt_collection_case_service_mark_as_reviewed_with_http_info(space_id, id, opts = {})
568
+ if @api_client.config.debugging
569
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_mark_as_reviewed ..."
570
+ end
571
+ # verify the required parameter 'space_id' is set
572
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_mark_as_reviewed" if space_id.nil?
573
+ # verify the required parameter 'id' is set
574
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_mark_as_reviewed" if id.nil?
575
+ # resource path
576
+ local_var_path = "/debt-collection-case/markAsReviewed".sub('{format}','json')
577
+
578
+ # query parameters
579
+ query_params = {}
580
+ query_params[:'spaceId'] = space_id
581
+ query_params[:'id'] = id
582
+
583
+ # header parameters
584
+ header_params = {}
585
+
586
+ # HTTP header 'Accept' (if needed)
587
+ local_header_accept = []
588
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
589
+
590
+ # HTTP header 'Content-Type'
591
+ local_header_content_type = []
592
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
593
+
594
+ # form parameters
595
+ form_params = {}
596
+
597
+ # http body (model)
598
+ post_body = nil
599
+ auth_names = []
600
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
601
+ :header_params => header_params,
602
+ :query_params => query_params,
603
+ :form_params => form_params,
604
+ :body => post_body,
605
+ :auth_names => auth_names,
606
+ :return_type => 'DebtCollectionCase')
607
+ if @api_client.config.debugging
608
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_mark_as_reviewed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
609
+ end
610
+ return data, status_code, headers
611
+ end
612
+
613
+ # Read
614
+ # Reads the entity with the given 'id' and returns it.
615
+ # @param space_id
616
+ # @param id The id of the debt collection case which should be returned.
617
+ # @param [Hash] opts the optional parameters
618
+ # @return [DebtCollectionCase]
619
+ def debt_collection_case_service_read(space_id, id, opts = {})
620
+ data, _status_code, _headers = debt_collection_case_service_read_with_http_info(space_id, id, opts)
621
+ return data
622
+ end
623
+
624
+ # Read
625
+ # Reads the entity with the given &#39;id&#39; and returns it.
626
+ # @param space_id
627
+ # @param id The id of the debt collection case which should be returned.
628
+ # @param [Hash] opts the optional parameters
629
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
630
+ def debt_collection_case_service_read_with_http_info(space_id, id, opts = {})
631
+ if @api_client.config.debugging
632
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_read ..."
633
+ end
634
+ # verify the required parameter 'space_id' is set
635
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_read" if space_id.nil?
636
+ # verify the required parameter 'id' is set
637
+ fail ArgumentError, "Missing the required parameter 'id' when calling DebtCollectionCaseService.debt_collection_case_service_read" if id.nil?
638
+ # resource path
639
+ local_var_path = "/debt-collection-case/read".sub('{format}','json')
640
+
641
+ # query parameters
642
+ query_params = {}
643
+ query_params[:'spaceId'] = space_id
644
+ query_params[:'id'] = id
645
+
646
+ # header parameters
647
+ header_params = {}
648
+
649
+ # HTTP header 'Accept' (if needed)
650
+ local_header_accept = ['application/json;charset=utf-8']
651
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
652
+
653
+ # HTTP header 'Content-Type'
654
+ local_header_content_type = ['*/*']
655
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
656
+
657
+ # form parameters
658
+ form_params = {}
659
+
660
+ # http body (model)
661
+ post_body = nil
662
+ auth_names = []
663
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
664
+ :header_params => header_params,
665
+ :query_params => query_params,
666
+ :form_params => form_params,
667
+ :body => post_body,
668
+ :auth_names => auth_names,
669
+ :return_type => 'DebtCollectionCase')
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ end
673
+ return data, status_code, headers
674
+ end
675
+
676
+ # Search
677
+ # Searches for the entities as specified by the given query.
678
+ # @param space_id
679
+ # @param query The query restricts the cases which are returned by the search.
680
+ # @param [Hash] opts the optional parameters
681
+ # @return [Array<DebtCollectionCase>]
682
+ def debt_collection_case_service_search(space_id, query, opts = {})
683
+ data, _status_code, _headers = debt_collection_case_service_search_with_http_info(space_id, query, opts)
684
+ return data
685
+ end
686
+
687
+ # Search
688
+ # Searches for the entities as specified by the given query.
689
+ # @param space_id
690
+ # @param query The query restricts the cases which are returned by the search.
691
+ # @param [Hash] opts the optional parameters
692
+ # @return [Array<(Array<DebtCollectionCase>, Fixnum, Hash)>] Array<DebtCollectionCase> data, response status code and response headers
693
+ def debt_collection_case_service_search_with_http_info(space_id, query, opts = {})
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_search ..."
696
+ end
697
+ # verify the required parameter 'space_id' is set
698
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_search" if space_id.nil?
699
+ # verify the required parameter 'query' is set
700
+ fail ArgumentError, "Missing the required parameter 'query' when calling DebtCollectionCaseService.debt_collection_case_service_search" if query.nil?
701
+ # resource path
702
+ local_var_path = "/debt-collection-case/search".sub('{format}','json')
703
+
704
+ # query parameters
705
+ query_params = {}
706
+ query_params[:'spaceId'] = space_id
707
+
708
+ # header parameters
709
+ header_params = {}
710
+
711
+ # HTTP header 'Accept' (if needed)
712
+ local_header_accept = ['application/json;charset=utf-8']
713
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
714
+
715
+ # HTTP header 'Content-Type'
716
+ local_header_content_type = ['application/json;charset=utf-8']
717
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
718
+
719
+ # form parameters
720
+ form_params = {}
721
+
722
+ # http body (model)
723
+ post_body = @api_client.object_to_http_body(query)
724
+ auth_names = []
725
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
726
+ :header_params => header_params,
727
+ :query_params => query_params,
728
+ :form_params => form_params,
729
+ :body => post_body,
730
+ :auth_names => auth_names,
731
+ :return_type => 'Array<DebtCollectionCase>')
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
734
+ end
735
+ return data, status_code, headers
736
+ end
737
+
738
+ # Update
739
+ # 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.
740
+ # @param space_id
741
+ # @param entity The object with all the properties which should be updated. The id and the version are required properties.
742
+ # @param [Hash] opts the optional parameters
743
+ # @return [DebtCollectionCase]
744
+ def debt_collection_case_service_update(space_id, entity, opts = {})
745
+ data, _status_code, _headers = debt_collection_case_service_update_with_http_info(space_id, entity, opts)
746
+ return data
747
+ end
748
+
749
+ # Update
750
+ # This updates the entity with the given properties. Only those properties which should be updated can be provided. The &#39;id&#39; and &#39;version&#39; are required to identify the entity.
751
+ # @param space_id
752
+ # @param entity The object with all the properties which should be updated. The id and the version are required properties.
753
+ # @param [Hash] opts the optional parameters
754
+ # @return [Array<(DebtCollectionCase, Fixnum, Hash)>] DebtCollectionCase data, response status code and response headers
755
+ def debt_collection_case_service_update_with_http_info(space_id, entity, opts = {})
756
+ if @api_client.config.debugging
757
+ @api_client.config.logger.debug "Calling API: DebtCollectionCaseService.debt_collection_case_service_update ..."
758
+ end
759
+ # verify the required parameter 'space_id' is set
760
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling DebtCollectionCaseService.debt_collection_case_service_update" if space_id.nil?
761
+ # verify the required parameter 'entity' is set
762
+ fail ArgumentError, "Missing the required parameter 'entity' when calling DebtCollectionCaseService.debt_collection_case_service_update" if entity.nil?
763
+ # resource path
764
+ local_var_path = "/debt-collection-case/update".sub('{format}','json')
765
+
766
+ # query parameters
767
+ query_params = {}
768
+ query_params[:'spaceId'] = space_id
769
+
770
+ # header parameters
771
+ header_params = {}
772
+
773
+ # HTTP header 'Accept' (if needed)
774
+ local_header_accept = ['application/json;charset=utf-8']
775
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
776
+
777
+ # HTTP header 'Content-Type'
778
+ local_header_content_type = ['application/json;charset=utf-8']
779
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
780
+
781
+ # form parameters
782
+ form_params = {}
783
+
784
+ # http body (model)
785
+ post_body = @api_client.object_to_http_body(entity)
786
+ auth_names = []
787
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
788
+ :header_params => header_params,
789
+ :query_params => query_params,
790
+ :form_params => form_params,
791
+ :body => post_body,
792
+ :auth_names => auth_names,
793
+ :return_type => 'DebtCollectionCase')
794
+ if @api_client.config.debugging
795
+ @api_client.config.logger.debug "API called: DebtCollectionCaseService#debt_collection_case_service_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
796
+ end
797
+ return data, status_code, headers
798
+ end
799
+ end
800
+ end